Galaxy role to add an influx data source on Grafana
This repository has been archived on 2020-07-02. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Wilfried OLLIVIER ae4527161e Move LICENSE file 2019-07-25 20:34:22 +02:00
defaults Bootstrap grafana role 2019-07-10 17:12:40 +02:00
meta Bootstrap grafana role 2019-07-10 17:12:40 +02:00
tasks Bootstrap grafana role 2019-07-10 17:12:40 +02:00
tests Bootstrap grafana role 2019-07-10 17:12:40 +02:00
LICENSE Move LICENSE file 2019-07-25 20:34:22 +02:00
README.md Bootstrap grafana role 2019-07-10 17:12:40 +02:00

README.md

galaxy-grafana.ds.influx

Add an InfluxDB datasource to Grafana

Requirements

An InfluxDB service up and running

Role Variables

  • grafana_proto: https or http, used by grafana

  • grafana_domain: domain name used by grafana

  • grafana_port: port used by grafana

  • grafana_url_port: port used by grafana in url

  • grafana_admin_user: grafana admin user

  • grafana_admin_pass: grafana admin passwd

  • datasource_name: name of the datasource to link grafana with influx

  • influx_url: url of inluxdb

  • influx_proto: proto http or https used by influx

  • influx_port: port used influx

  • influx_db_name: influxdb name to link to grafana

  • influx_user: influxdb username

  • influx_pass: influxdb passe to link to grafana

  • grafana_org_id: org ig (number)

  • is_default: yes/no is this the default source

Dependencies

None

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
     - role: galaxy-grafana.ds.influx

Run tests

Ensure galaxy-vagrant is up

ansible-playbook -i tests/inventory tests/test.yml