diff options
| author | Hazel Atkinson <yellowsink@riseup.net> | 2025-04-04 13:24:22 +0100 |
|---|---|---|
| committer | Hazel Atkinson <yellowsink@riseup.net> | 2025-04-04 13:24:22 +0100 |
| commit | 5f80f7c877bf08be7abc4288a9c1a50fffecf0c5 (patch) | |
| tree | 734ec22c5e540570294b4bf966503044eca36a4d /README.md | |
| download | containerspy-5f80f7c877bf08be7abc4288a9c1a50fffecf0c5.tar.gz containerspy-5f80f7c877bf08be7abc4288a9c1a50fffecf0c5.tar.bz2 containerspy-5f80f7c877bf08be7abc4288a9c1a50fffecf0c5.zip | |
init
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..38aa11f --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +# ContainerSpy + +ContainerSpy is a lightweight daemon that connects to Docker, collects metrics (CPU%, RAM, etc.), and outputs those +via OpenTelemetry OTLP. + +You can then send that to a metrics store such as Prometheus, a collection agent such as Grafana Alloy, +or a cloud observability platform. + +Note that containerspy currently targets only Docker, not Kubernetes or any other orchestration systems. +It outputs the same traces as cAdvisor for drop-in compatibility with existing data series and dashboards. + +## Why make this? + +ContainerSpy is intended to replace [cAdvisor](https://github.com/google/cadvisor) in a Prometheus/Grafana monitoring +setup. It takes inspiration from [Beszel](https://www.beszel.dev/) in its approach. +The main reason for this to exist is my personal difficulties deploying cAdvisor. + +cAdvisor is rather RAM-heavy, and it really does not need to be so. +It also requires a plethora of different mounts to get working inside of a container, including /sys, or even the entire +/ filesystem, and in some cases must be ran as a privileged user! +Even with this, it can often just completely fail to collect CPU usage data depending on your distro. + +I have previously used Beszel for my monitoring, and it's agent runs as an unprivileged user, +needs access to only the docker socket, collects all data out of the box, and has a lightweight footprint. + +ContainerSpy aims to do what beszel-agent does, but instead of outputting to an opinionated AIO system, +outputs to (e.g.) Prometheus for a more heavyweight setup. + +**I can highly recommend Beszel** as an easy to setup monitoring solution for Docker. +It will give you CPU use, RAM use, disk and bandwidth use, swap use, both system-wide and per-container, with +configurable email alerting OOTB with very little setup. It is a great piece of software. + +My motivation to move to a Prometheus/Grafana setup is that I want the centralised rich logging that Loki can give me. + +## How to set up + +TODO: will write once it actually works |
