Zincati provides Prometheus metrics via a Unix socket. In order for these to be scraped by `vmagent`, they need to be exposed over HTTP. The `local_exporter` is designed to do specifically this. Unfortunately, the Zincati metrics socket is only accessible by the *zincati* user, so the `local_exporter` also needs to run as that user. Hopefully, the user ID will remain consistent in future versions of CoreOS.
22 lines
396 B
YAML
22 lines
396 B
YAML
variant: fcos
|
|
version: 1.4.0
|
|
|
|
storage:
|
|
directories:
|
|
- path: /etc/local_exporter
|
|
|
|
files:
|
|
- path: /etc/containers/systemd/local_exporter.container
|
|
mode: 0644
|
|
contents:
|
|
local: local_exporter.container
|
|
- path: /etc/local_exporter/config.toml
|
|
mode: 0644
|
|
contents:
|
|
local: local_exporter.config
|
|
|
|
systemd:
|
|
units:
|
|
- name: local_exporter.service
|
|
enabled: true
|