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