feat(monitoring): add nginx, postgres, valkey dashboards

This commit is contained in:
Clément Désiles
2026-09-06 23:43:50 +02:00
parent aa78e238aa
commit 304a3fae12
4 changed files with 270 additions and 0 deletions
+19
View File
@@ -209,6 +209,25 @@
mode: "0644"
notify: Restart grafana
- name: Remove legacy combined services dashboard
ansible.builtin.file:
path: "{{ grafana_provisioning_path }}/dashboards/services.json"
state: absent
notify: Restart grafana
- name: Deploy services dashboards (nginx, postgres, valkey)
ansible.builtin.copy:
src: "{{ item }}"
dest: "{{ grafana_provisioning_path }}/dashboards/{{ item }}"
owner: "{{ grafana_user }}"
group: "{{ grafana_group }}"
mode: "0644"
loop:
- nginx-dashboard.json
- postgres-dashboard.json
- valkey-dashboard.json
notify: Restart grafana
# Service management
- name: Enable and start Grafana service
ansible.builtin.systemd: