You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
haproxy-wi/app/scripts/ansible/roles/grafana.yml

35 lines
909 B

- hosts: localhost
become: yes
become_method: sudo
roles:
- role: cloudalchemy.prometheus
environment:
http_proxy: "{{PROXY}}"
https_proxy: "{{PROXY}}"
vars:
prometheus_targets:
node:
- targets:
- "{{ansible_hostname}}:9100"
- role: cloudalchemy.grafana
environment:
http_proxy: "{{PROXY}}"
https_proxy: "{{PROXY}}"
vars:
grafana_security:
admin_user: admin
admin_password: admin
grafana_datasources:
- name: prometheus
type: prometheus
url: "http://{{ansible_default_ipv4.address}}:9090"
basicAuth: false
grafana_dashboards:
- dashboard_id: 2428
revision_id: 7
datasource: prometheus
- dashboard_id: 11879
revision_id: 3
datasource: prometheus