equal
deleted
inserted
replaced
19 dest: "/etc/prometheus/prometheus.yml" |
19 dest: "/etc/prometheus/prometheus.yml" |
20 notify: |
20 notify: |
21 - restart prometheus service |
21 - restart prometheus service |
22 - restart grafana service |
22 - restart grafana service |
23 |
23 |
|
24 - name: ensure grafana is started |
|
25 become: yes |
|
26 systemd: name="grafana-server.service" enabled="yes" state="started" |
|
27 |
24 - name: install grafana prometheus data source |
28 - name: install grafana prometheus data source |
25 become: yes |
29 become: yes |
26 grafana_datasource: |
30 grafana_datasource: |
27 name: "Prometheus" |
31 name: "Prometheus" |
28 ds_type: "prometheus" |
32 ds_type: "prometheus" |
41 src: "{{prometheus_server_grafana_dashboard_src}}/{{item}}" |
45 src: "{{prometheus_server_grafana_dashboard_src}}/{{item}}" |
42 dest: "/tmp/" |
46 dest: "/tmp/" |
43 mode: "0640" |
47 mode: "0640" |
44 loop: "{{prometheus_server_grafana_dashboards}}" |
48 loop: "{{prometheus_server_grafana_dashboards}}" |
45 |
49 |
46 - name: install grafana dashboards |
50 # - name: install grafana dashboards |
47 become: yes |
51 # become: yes |
48 grafana_dashboard: |
52 # grafana_dashboard: |
49 grafana_url: "http://localhost:3000" |
53 # grafana_url: "http://localhost:3000" |
50 path: "/tmp/{{item}}" |
54 # path: "/tmp/{{item}}" |
51 loop: "{{prometheus_server_grafana_dashboards}}" |
55 # loop: "{{prometheus_server_grafana_dashboards}}" |