Add monitoring role
This commit is contained in:
parent
dca17d5750
commit
d06406c9f4
17 changed files with 539 additions and 0 deletions
17
roles/monitoring/handlers/main.yaml
Normal file
17
roles/monitoring/handlers/main.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- import_tasks: ../../common/handlers/main.yaml
|
||||
|
||||
- name: restart mqtt_exporter
|
||||
systemd:
|
||||
name: mqtt_exporter
|
||||
state: restarted
|
||||
|
||||
- name: restart prometheus
|
||||
systemd:
|
||||
name: prometheus
|
||||
state: restarted
|
||||
|
||||
- name: restart grafana
|
||||
systemd:
|
||||
name: grafana-server
|
||||
state: restarted
|
Loading…
Add table
Add a link
Reference in a new issue