Ansible Role linuxfabrik.lfops.monitoring_plugins_grafana_dashboards¶
This role deploys the Monitoring Plugins Grafana Dashboards for a Grafana Server using grizzly.
Available since LFOps 3.0.0.
Dependent Roles¶
Any LFOps playbook that installs this role runs these for you. Optional ones can be disabled via the playbook's skip variables.
- Grafana must be installed and configured with the required provisioning config (role: linuxfabrik.lfops.grafana).
- grizzly must be installed (role: linuxfabrik.lfops.grafana_grizzly).
Tags¶
monitoring_plugins_grafana_dashboards
- Deploys the Monitoring Plugins Grafana Dashboards.
- Triggers: none.
Mandatory Role Variables¶
monitoring_plugins_grafana_dashboard__grafana_service_account_login
- The login for a Grafana service account with a "Admin" token.
- Type: Dictionary.
monitoring_plugins_grafana_dashboard__influxdb_login
- The login for the InfluxDB database. Only needs to have read permissions.
- Type: Dictionary.
monitoring_plugins_grafana_dashboards__repo_version
-
Which version of the monitoring plugins should be deployed? Possible options:
- A specific release, for example
1.2.0.11. See the Releases. dev: The development version (main branch). Use with care. Only works withmonitoring_plugins__install_method: 'source'.
- A specific release, for example
-
Defaults to
lfops__monitoring_plugins_versionfor convenience. - Type: String.
Example:
# mandatory
monitoring_plugins_grafana_dashboard__grafana_service_account_login:
username: 'grizzly'
password: 'linuxfabrik'
monitoring_plugins_grafana_dashboard__influxdb_login:
username: 'dashboard'
password: 'linuxfabrik'
monitoring_plugins_grafana_dashboards__repo_version: '1.2.0.11'
Optional Role Variables¶
monitoring_plugins_grafana_dashboard__director_database_host
- The host of the Director SQL database.
- Type: String.
- Default:
'127.0.0.1'
monitoring_plugins_grafana_dashboard__director_database_name
- The name of the Director SQL database.
- Type: String.
- Default:
'{{ icingaweb2_module_director__database_name }}'
monitoring_plugins_grafana_dashboard__influxdb_database_name
- The name of the InfluxDB database.
- Type: String.
- Default:
'{{ icinga2_master__influxdb_database_name }}'
monitoring_plugins_grafana_dashboard__influxdb_host
- The host of the InfluxDB database.
- Type: String.
- Default:
'{{ icinga2_master__influxdb_host }}'
monitoring_plugins_grafana_dashboards__grafana_url
- The URL under which Grafana is reachable.
- Type: String.
- Default:
'{{ grafana__api_url }}'
Example:
# optional
monitoring_plugins_grafana_dashboard__director_database_host: 'localhost'
monitoring_plugins_grafana_dashboard__director_database_name: 'my-db'
monitoring_plugins_grafana_dashboard__influxdb_database_name: 'my-director-db'
monitoring_plugins_grafana_dashboard__influxdb_host: '127.0.0.1'
monitoring_plugins_grafana_dashboards__grafana_url: 'http://localhost:3000'