1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00
Commit graph

7 commits

Author SHA1 Message Date
brknkfr
46a483ed36
lxc_guests: Enhanced and fixed lxc_guests plugin (#1371)
* lxc_guests2: Enhanced and fixed lxc_guests plugin

- Working with systemd and cgroup version 2 (tested on debian bullseye and debian booksworm)
- Fixed processes (with cgroup version 2)
- Simplified labels
- Simplified memory usage graph
- Added CPU usage in percent (using systemd-cgtop)
- Added Tasks
- No cgrouppath guessing

* Rename lxc_guests2 to lxc_guests to replace old plugin

---------

Co-authored-by: Sebastian L <sl@momou.ch>
2023-04-29 10:38:44 -07:00
Lionel Sausin
ae7a2f6c65 LXC v3.1 compatibility
The cgroup data was (yet again) moved to a new location in recent LXC
releases, starting with v3.1.0 from what I could gather.

https://github.com/lxc/lxc/issues/2782 states:
> [The cgroup lxc.payload] exists to adhere to cgroup2 delegation requirements.
2021-07-14 21:28:17 +02:00
Sebastian L
137913e39d lxc_guests: Monitor randomly generated virtual ethernet devices 2020-11-19 01:47:40 +01:00
Sebastian L
b5f957268f lxc_guests: Make it work with unpriviliged containers 2020-11-19 01:47:00 +01:00
Marc SCHAEFER
748cf3b4ee - grep -EF is invalid
- SYSFS: buster has an existing /sys/fs/cgroup/systemd/lxc/$guest_name/tasks,
         which does not contain anything useful, so checking
         /sys/fs/cgroup/cpuacct/lxc/$guest_name/tasks first.
- spurious blank space for lxc_net and lxc_ram in here document
2019-08-19 15:07:16 +02:00
Lars Kruse
6e452ac6dc Plugin lxc: remove fieldname compatibility attempt with double underscores
The attempt of compatibility (introduced in c0fe6dc3c) did not work,
since the previous implementation *replaced* the first character
(if it was invalid - e.g. a digit) instead of prepending an underscore.
2019-08-12 02:36:01 +02:00
Lars Kruse
858f3e3af4 Plugin lxc: rename to "lxc_guests"
The plugin handles details of LXC guests.  Thus we should leave the
remainder of the namespace to other plugins.
2019-08-12 02:36:01 +02:00
Renamed from plugins/lxc/lxc-multigraph (Browse further)