https://github.com/jcaesar/cgroup-memory-prometheus-ex
https://github.com/jcaesar/cgroup-memory-prometheus-ex
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jcaesar/cgroup-memory-prometheus-ex
- Owner: jcaesar
- Created: 2020-01-26T14:55:12.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-27T13:45:28.000Z (almost 6 years ago)
- Last Synced: 2025-04-04T01:12:08.960Z (10 months ago)
- Language: Rust
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CGroups
Exports a single vector of metrics for the exclusive memory use per cgroup (i.e. excluding the subgroups).
This makes for a neat stacking graph in Grafana.
I really hope I understood cgroups right and that makes sense.
```
# HELP cgroup_memory_bytes CGroup exclusive memory use
# TYPE cgroup_memory_bytes gauge
cgroup_memory_bytes{path="/"} 7991296
cgroup_memory_bytes{path="/init.scope"} 3821568
cgroup_memory_bytes{path="/system.slice"} 76275712
cgroup_memory_bytes{path="/system.slice/cgroup-memory-prometheus-exporter.service"} 1773568
cgroup_memory_bytes{path="/system.slice/cronie.service"} 228188160
cgroup_memory_bytes{path="/system.slice/dbus.service"} 1662976
cgroup_memory_bytes{path="/system.slice/dhcpcd.service"} 3055616
```
I originally wanted cadvisor, but for finding memory troubles on a small server that isn't even running docker… this is the cuter hack.