Skip to content

Instantly share code, notes, and snippets.

@lucab
Created November 19, 2020 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucab/6b43b1d5afb0e67848667b7f16903bcd to your computer and use it in GitHub Desktop.
Save lucab/6b43b1d5afb0e67848667b7f16903bcd to your computer and use it in GitHub Desktop.
FCOS Zincati metrics local-exporter
# /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