Commit Graph

3 Commits (61973c94cff59d08ec627b9118d3c8841aa2aa52)

Author SHA1 Message Date
Dustin 910c7c56c9 local_exporter: Start after network online
The *local_exporter.service* cannot start on first boot without the
network, as it needs to pull the container image from.
2024-01-06 19:49:41 -06:00
Dustin 5862ff4cc2 local_exporter: Remove After=zincati dependency
For some reason, the *zincati.service* unit has an `After=` dependency
on *multi-user.target*.  This creates a dependency loop between
*local_exporter.service* and *zincati.service* if the former has an
`After=` dependency on the latter an an (implicit) `Before=` dependency
on *multi-user.target*.  systemd will resolve this loop by removing one
or the other units from the bootup sequence, so either Zincati or the
local exporter will not start at boot.

We can avoid this dependency loop by removing the `After=` dependency
from *local_exporter.service*.  This may cause requests for Zincati
metrics to fail if it happens to come in after the local exporter starts
but before Zincati does, but this is unlikely to actually be an issue.
2023-10-04 20:50:30 -05:00
Dustin ebdf587de1 local_exporter: Exporter for Zincati metrics
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.
2023-10-03 15:29:58 -05:00