Ansible Role icingaweb2_module_grafana
This role installs and configures the IcingaWeb2 Grafana Module.
Additionally, it deploys the the graph configuration for the Linuxfabrik Monitoring Plugins. This can be disabled using icingaweb2_module_grafana__skip_monitoring_plugins_graphs_config
.
This role is tested with the following IcingaWeb2 Grafana Module versions:
1.4.2
2.0.3
Mandatory Requirements
A configured IcingaWeb2. This can be done using the linuxfabrik.lfops.icingaweb2 role.
A configured Grafana. This can be done using the linuxfabrik.lfops.grafana role.
If you use the Setup Icinga2 Master Playbook, this is automatically done for you.
Mandatory Role Variables
Variable |
Description |
---|---|
|
The module version to install. Possible options: https://github.com/Mikesch-mp/icingaweb2-module-grafana/releases. |
Example:
# mandatory
icingaweb2_module_grafana__version: 'v1.4.2'
Optional Role Variables
Variable |
Description |
Default Value |
---|---|---|
|
Multiline string. Custom configuration for the Grafana Graphs, will be deployed to |
|
|
Name of the default Grafana dashboard |
|
|
The version of the monitoring plugins that will be used for generating the grafana graph configuration. Possible options: * |
|
|
Skip the deployment of the graph configuration for Linuxfabrik Monitoring Plugins. |
|
|
The theme for the Grafana graphs. Possible options: |
|
|
The Grafana URL. This should be reachable from both the IcingaWeb2 server and the client device. |
|
Example:
# optional
icingaweb2_module_grafana__custom_graphs_config: |-
[icingacli-x509]
dashboard = "Default"
panelId = "1"
orgId = ""
repeatable = "no"
dashboarduid = "default"
timerange = "7d"
icingaweb2_module_grafana__default_dashboard: 'Default'
icingaweb2_module_grafana__monitoring_plugins_version: 'latest'
icingaweb2_module_grafana__skip_monitoring_plugins_graphs_config: true
icingaweb2_module_grafana__theme: 'light'
icingaweb2_module_grafana__url: 'https://monitoring.example.com/grafana'