]> git.ipfire.org Git - thirdparty/systemd.git/commit
report: add cgroup metrics in a separate varlink service 41489/head
authorYaping Li <202858510+YapingLi04@users.noreply.github.com>
Fri, 3 Apr 2026 05:01:15 +0000 (22:01 -0700)
committerYaping Li <202858510+YapingLi04@users.noreply.github.com>
Thu, 9 Apr 2026 21:45:05 +0000 (14:45 -0700)
commit8c65fe4fa11d9476558aa6c54d9e26db8cc80f32
treeb056c45313ffb26d4a468e27134af389783b30af
parent6fe4a16f364ad268cb0717879d68a007cd7e652f
report: add cgroup metrics in a separate varlink service

Add CpuUsage, MemoryUsage, IOReadBytes, IOReadOperations, and
TasksCurrent in a standalone socket-activated varlink service.

The new systemd-report-cgroup service listens at
/run/systemd/report/io.systemd.CGroup and exposes:
  - io.systemd.CGroup.CpuUsage
  - io.systemd.CGroup.IOReadBytes
  - io.systemd.CGroup.IOReadOperations
  - io.systemd.CGroup.MemoryUsage (with type=current/available/peak)
  - io.systemd.CGroup.TasksCurrent
src/report/meson.build
src/report/report-cgroup-server.c [new file with mode: 0644]
src/report/report-cgroup.c [new file with mode: 0644]
src/report/report-cgroup.h [new file with mode: 0644]
test/units/TEST-74-AUX-UTILS.report.sh
units/meson.build
units/systemd-report-cgroup.socket [new file with mode: 0644]
units/systemd-report-cgroup@.service.in [new file with mode: 0644]