Bootstrap grafana role
This commit is contained in:
commit
477446c348
7 changed files with 135 additions and 0 deletions
19
tasks/main.yml
Normal file
19
tasks/main.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
|
||||
# https://grafana.com/docs/installation/debian/
|
||||
|
||||
- name: Create InfluxDB datasource
|
||||
grafana_datasource:
|
||||
name: "{{ datasource_name }}"
|
||||
grafana_url: "{{ grafana_proto }}://{{ grafana_domain }}:{{ grafana_port }}"
|
||||
grafana_user: "{{ grafana_admin_user }}"
|
||||
grafana_password: "{{ grafana_admin_pass }}"
|
||||
org_id: "{{ grafana_org_id }}"
|
||||
ds_type: "influxdb"
|
||||
url: "{{ influx_proto }}://{{ influx_url }}:{{ influx_port }}"
|
||||
database: "{{ influx_db_name }}"
|
||||
basic_auth_user: "{{ influx_user }}"
|
||||
basic_auth_password: "{{ influx_pass }}"
|
||||
is_default: "{{ is_default }}"
|
||||
time_interval: ">10s"
|
||||
when: influx_datasource_setup
|
Reference in a new issue