Setup of a grafana instance with a custom backend
Go to file
2023-01-30 16:43:42 +01:00
.github/workflows Add GitHub Actions, including grafana and influxdb tests 2021-03-25 15:37:12 +01:00
defaults first commit 2021-03-25 14:06:16 +01:00
handlers first commit 2021-03-25 14:06:16 +01:00
meta Revive role 2022-06-27 16:45:31 +02:00
molecule/default Fix molecule for Leap 15.4 2023-01-30 16:38:31 +01:00
tasks Merge branch 'main' of github.com:GeekOops/geekoops-grafana 2021-03-25 15:43:35 +01:00
templates first commit 2021-03-25 14:06:16 +01:00
vars Revive role 2022-06-27 16:45:31 +02:00
.gitignore Add gitignore and yamllint 2021-03-25 14:10:09 +01:00
.yamllint Add gitignore and yamllint 2021-03-25 14:10:09 +01:00
README.md Revive role 2022-06-27 16:45:31 +02:00

Test deployment

geekoops-grafana

Easy ansible role for setup of grafana with a custom backend. Currently only influxdb is supported. This ansible role works with

  • openSUSE Leap 15.3
  • openSUSE Leap 15.4

Role Variables

Value Description Default
config_firewall Configure firewalld false
firewall_zone Firewall zone which should be configured public
open_grafana_port If the role should open the grafana port false
grafana_port Port for grafana 3000
influxdb Configure influxdb false
influxdb_port InfluxDB port, if enabled 8086
influxdb_bind InfluxDB address to bind to, if enabled ""
open_influxdb_port Open the InfluxDB port, if config_firewall is true false
influxdb_collectd Configure collecd for InfluxDB false
influxdb_collectd_database Name of the collectd database for InfluxDB, if enabled "collectd"
influxdb_collectd_port collectd port to be used, if enabled 25826
influxdb_collectd_bind collectd bind address, if enabled ""
open_collectd_port Open the collectd port, if config_firewall is true false

Example Playbook

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

And a more extended example, configure grafana with influxdb and enable collectd

- hosts: jellyfish
  roles:
     - role: geekoops-grafana
       vars:
         config_firewall: true
         firewall_zone: "public"
         open_grafana_port: true
         influxdb: true
         influxdb_collectd: true
         open_influxdb_port: true
         open_collectd_port: true

License

MIT

Author Information

phoenix

Have a lot of fun!