Easy to use collectd ansible role
Go to file
2021-12-06 09:22:00 +01:00
.github/workflows Add GitHub Actions 2021-03-25 16:22:25 +01:00
defaults first commit 2021-03-25 15:58:43 +01:00
handlers first commit 2021-03-25 15:58:43 +01:00
meta first commit 2021-03-25 15:58:43 +01:00
molecule/default Add GitHub Actions 2021-03-25 16:22:25 +01:00
tasks Add GitHub Actions 2021-03-25 16:22:25 +01:00
templates first commit 2021-03-25 15:58:43 +01:00
vars Add vars for Leap 15.3 2021-12-06 09:22:00 +01:00
.gitignore first commit 2021-03-25 15:58:43 +01:00
.yamllint first commit 2021-03-25 15:58:43 +01:00
README.md Extended example 2021-04-19 09:04:18 +02:00

Test deployment

geekoops-collectd

Easy ansible role to setup system metrics transmission to collectd. Currently only influxdb is supported by this role. This ansible role works with

  • openSUSE Leap 15.2

Role Variables

Value Description Default
nodename Name of the node that will be shown in grafana "localhost"
interval Report interval in seconds 10
overwrite Overwrite existing collectd.conf file false
enable_influx Enable InfluxDB false
influx_host InfluxDB host "127.0.0.1"
influx_port InfluxDB post 25826
enable_disk Enable disk plugin true
enable_cpu Enable CPU plugin true
enable_load Enable load plugin true
enable_memory Enable memory plugin true
enable_swap Enable swap plugin true
enable_df Enable df plugin false
disk_disks Disks added to the disk plugin []
df_disks Disks added to the df plugin []

If overwrite is true, any existing collectd.conf file will be overwritten by ansible. Use this with caution! The existing configuration will only be written, if collectd is installed.

Example Playbook

- hosts: jellyfish
  roles:
     - { role: geekoops-collectd }

Extended example

- hosts: jellyfish
  roles:
     - role: geekoops-collectd
       vars:
         nodename: "jellyfish"
         enable_influx: true
         influx_host: vinculum

License

MIT

Author Information

phoenix

Have a lot of fun!