Commit Graph

2 Commits (5862ff4cc2fc9d505a1ab75f5f38b92061e2df68)

Author SHA1 Message Date
Dustin dd3be7a24a collectd: Restart service automatically
The *collectd.service* unit may fail for various reasons.  Notably, if
the container image is not present, it may fail to start if it is
activated before the network is fully available.  Using systemd's
automatic restart mechanism will help ensure *collectd* is running
whenever possible.
2023-10-04 20:50:30 -05:00
Dustin 4048e5cc0a collectd: Run collectd in privileged container
Installing packages with `rpm-ostree` is somewhat problematic.  Notably,
if a new package needs an update of an already-installed package (e.g.
shared library), the new package cannot be installed until a new version
of CoreOS is published with the updated dependency.

In order for collectd to be effective, the container it runs in has to
have most isolation features disabled.  Most importantly, the PID, UTS,
and network namespaces need to be shared with the host, so that
*collectd* can "see" the actual values.  Additionally, the default
SELinux policy for containerized processes denies practically all of the
instrumentation syscalls *collectd* needs, so it needs to run in the
unconfined `spc_t` domain.  Finally, the `/run` directory needs to be
shared with the host, so *collectd* can communicate with various daemons
via UNIX sockets.
2023-10-03 20:03:21 -05:00