systemd_exporter

command module
v0.0.0-...-a299a54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

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: https://github.com/systemd/systemd/issues/9553. Use a different versoin of systemd.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL