jradtilbrook.grafana

Ansible Role: Grafana

This role helps you install and set up Grafana, a tool for analytics and monitoring.

It's mainly made for Ubuntu 16.04, but it should also work on other Debian systems.

Requirements

No special requirements.

Role Variables

grafana_configuration: This variable is saved in the Grafana configuration file in INI format. You can use any valid configuration options here. For example, if you want to set up GitHub OAuth, you would do it like this:

grafana_configuration:
  'auth.github':
    enabled: yes
    allow_sign_up: yes
    client_id: <your_client_id>
    client_secret: <your_client_secret>
    scopes: user:email
    auth_url: https://github.com/login/oauth/authorize
    token_url: https://github.com/login/oauth/access_token
    api_url: https://api.github.com/user

Note: Some settings need space-separated arguments, which you can provide in a YAML array or as a single string. Other settings require comma-separated values and must also be in a single string.

grafana_install_state: Use this variable to update Grafana to newer versions if it has already been installed. Set it to latest for this purpose.

Resources

You can find documentation for Grafana at these links:

Dependencies

There are no dependencies, but you might want to run Grafana behind a web server. I suggest using the geerlingguy.nginx role for this.

Example Playbook

- hosts: servers
  become: yes

  roles:
    - role: jradtilbrook.grafana

License

MIT

Informazioni sul progetto

Install and configure Grafana on Ubuntu

Installa
ansible-galaxy install jradtilbrook.grafana
Licenza
mit
Download
2.3k
Proprietario
Senior Support Engineer at Buildkite