Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd cgroup decoder to map cgroup id to cgroup path #70
Conversation
Metrics from the example:
```
$ curl -s http://localhost:9435/metrics | grep ebpf_exporter_cgroup_open_calls_total
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/init.scope"} 29163
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/system.slice/conntrack-stats-exporter.service"} 100
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/system.slice/cron.service"} 20439
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/system.slice/dbus.service"} 88
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/system.slice/docker.service"} 51
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/system.slice/lldpd.service"} 2
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/system.slice/salt-minion.service"} 67
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/system.slice/syslog-ng.service"} 42
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/system.slice/systemd-journald.service"} 2547
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/system.slice/systemd-networkd.service"} 20
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/system.slice/systemd-resolved.service"} 5
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/user.slice/user-4076.slice/session-271566.scope"} 165
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/user.slice/user-4076.slice/user@4076.service/init.scope"} 523
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/user.slice/user-4079.slice/user@4079.service/init.scope"} 523
ebpf_exporter_cgroup_open_calls_total{cgroup="/sys/fs/cgroup/unified/user.slice/user-4406.slice/user@4406.service/init.scope"} 523
```
This requires Linux 4.18 and newer:
* torvalds/linux@bf6fa2c
Closes #13
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
bobrik commentedJan 21, 2020
•
edited
Metrics from the example:
This requires Linux 4.18 and newer:
Closes #13