geekoops-grafana/README.md

60 lines
1.9 KiB
Markdown
Raw Permalink Normal View History

2021-03-25 14:44:22 +00:00
[![Test deployment](https://github.com/GeekOops/geekoops-grafana/actions/workflows/CI.yml/badge.svg)](https://github.com/GeekOops/geekoops-grafana/actions/workflows/CI.yml)
2021-03-25 12:39:17 +00:00
# geekoops-grafana
2021-03-25 14:44:07 +00:00
Easy ansible role for setup of `grafana` with a custom backend. Currently only `influxdb` is supported. This ansible role works with
2022-01-27 10:21:33 +00:00
- openSUSE Leap 15.3
- openSUSE Leap 15.4
2021-03-25 12:39:17 +00:00
## Role Variables
2021-03-25 14:44:07 +00:00
| 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 |
2021-03-25 12:39:17 +00:00
## Example Playbook
- hosts: jellyfish
roles:
- { role: geekoops-grafana }
2021-03-25 14:45:48 +00:00
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
2021-03-25 15:40:21 +00:00
influxdb_collectd: true
2021-03-25 14:45:48 +00:00
open_influxdb_port: true
open_collectd_port: true
2021-03-25 12:39:17 +00:00
## License
MIT
## Author Information
phoenix
2021-03-25 14:44:07 +00:00
Have a lot of fun!