feat(monitoring): add nginx, postgres, valkey dashboards
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user