Created
November 19, 2020 16:32
-
-
Save lucab/6b43b1d5afb0e67848667b7f16903bcd to your computer and use it in GitHub Desktop.
FCOS Zincati metrics local-exporter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/fcos-local-exporter.service | |
[Unit] | |
Description=Local metrics exporter | |
After=network.target | |
Wants=zincati.service | |
After=zincati.service | |
[Service] | |
ExecStart=/bin/podman run --rm --privileged -p 80:9598/tcp -v /etc/local_exporter:/etc/local_exporter -v /run:/host/run quay.io/lucab/local_exporter:master local_exporter serve | |
Restart=on-failure | |
RestartSec=10s | |
[Install] | |
WantedBy=multi-user.target | |
# /etc/local_exporter/config.toml | |
[service] | |
address = "0.0.0.0" | |
port = 9598 | |
tls = false | |
[bridge.selectors] | |
"zincati" = { kind = "uds", path = "/host/run/zincati/public/metrics.promsock" } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment