From d22a65c1bd9d182a9fac00250d1d8192468eae83 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 21 Sep 2023 16:38:30 -0500 Subject: [PATCH] collectd: Install and configure collectd The `collectd.yaml` Butane configuration fragment configures the machine to install *collectd* and its various plugin packages directly on the host using `rpm-ostree` (via *install-packages.service*). --- collectd.yaml | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 collectd.yaml diff --git a/collectd.yaml b/collectd.yaml new file mode 100644 index 0000000..8ed3177 --- /dev/null +++ b/collectd.yaml @@ -0,0 +1,57 @@ +variant: fcos +version: 1.4.0 + +ignition: + config: + merge: + - local: packages.yaml + +storage: + files: + - path: /etc/ignition/packages.d/collectd + mode: 0644 + contents: + inline: | + collectd + collectd-chrony + collectd-disk + collectd-sensors + collectd-write_prometheus + - path: /etc/collectd.d/df.conf + mode: 0644 + contents: + inline: | + LoadPlugin df + + + FSType overlay + IgnoreSelected true + + - path: /etc/collectd.d/plugins.conf + mode: 0644 + contents: + inline: | + LoadPlugin chrony + LoadPlugin cpufreq + LoadPlugin disk + LoadPlugin entropy + LoadPlugin processes + LoadPlugin swap + LoadPlugin tcpconns + LoadPlugin thermal + LoadPlugin uptime + + - path: /etc/collectd.d/prometheus.conf + mode: 0644 + contents: + inline: | + LoadPlugin write_prometheus + + + Port 9103 + + +systemd: + units: + - name: collectd.service + enabled: true