Skip to content

dashpole/systemd_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a299a54 · Oct 1, 2020

History

25 Commits
Jul 2, 2020
Sep 17, 2020
Sep 17, 2020
Jul 2, 2020
Jul 2, 2020
Jul 2, 2020
Jul 2, 2020
Oct 1, 2020
Aug 16, 2020
Sep 17, 2020
Aug 16, 2020

Repository files navigation

systemd_exporter

It turns out someone already made something like this! Check out https://github.com/povilasv/systemd_exporter.

Proof of concept systemd monitor daemon. It is modeled as a cross between https://github.com/prometheus/node_exporter and https://github.com/google/cadvisor. In kubernetes, I usually just want to monitor Kubelet, docker, the Node Problem Detector, journald, and maybe a few others. cAdvisor is hard to configure, since everything is in terms of cgroups.

Run Locally

make docker
SHA=<sha>
docker run -p 8080:8080 --volume=/run/systemd:/run/systemd:ro --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro $SHA
curl localhost:8080/metrics

Deploy to kubernetes

make docker
# Tag and push your image
# Edit deploy/kubernetes/daemonset.yaml to specify your pushed image
kubectl apply -f deploy/kubernetes/daemonset.yaml
kubectl get po
# pick a systemd-exporter pod to query
POD=systemd-exporter-12345
kubectl get --raw /api/v1/namespaces/default/pods/$POD/proxy/metrics

Known Issues

"authentication protocol error" Systemd 239 has a regression: systemd/systemd#9553. Use a different versoin of systemd.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published