Ansible Role grafana_grizzly

This role installs grizzly, a tool for the management of Grafana dashboards.

Additionally, this role allows you to apply Grafana resources which are saved as {{ inventory_dir }}/host_vars/{{ inventory_hostname }}/files/grafana_grizzly/*.yml.

Mandatory Requirements

If you use the Grafana Grizzly Playbook this is automatically done for you.

Tags

grafana_grizzly

  • Installs grizzly and applies the given resources.

  • Triggers: none.

grafana_grizzly:apply

  • Applies the given resources.

  • Triggers: none.

Mandatory Role Variables

grafana_grizzly__grafana_service_account_login

  • The login for a Grafana service account with a „Admin“ token. The password will be automatically generated by Grafana and therefore cannot be set here. Set it manually according to the output during the Ansible run.

  • Type: Dictionary.

  • Default: none

Example:

# mandatory
grafana_grizzly__grafana_service_account_login:
  username: 'grizzly'
  password: 'linuxfabrik'

Optional Role Variables

grafana_grizzly__grafana_url

  • The URL under which Grafana is reachable.

  • Type: String.

  • Default: '{{ grafana__api_url }}'

grafana_grizzly__version

Hints:

  • 20240624 we can’t use „latest“, because then we get annoying errors like: "Providers: Grafana - active, Mimir - inactive (mimir address is not set), Synthetic Monitoring - inactive (stack id is not set)'"

  • v0.2.0 is the last known good version to use for the way we how we deploy grizzly dashboards and datasources

Example:

# optional
grafana_grizzly__grafana_url: 'http://localhost:3000'
grafana_grizzly__version: 'v0.2.0'

License

The Unlicense

Author Information

Linuxfabrik GmbH, Zurich