Skip to content

Commit

Permalink
[infra] fix: enable wal for grafana database to reduce errors about l…
Browse files Browse the repository at this point in the history
…ocked db (#2062)
  • Loading branch information
amatissart authored Feb 13, 2025
1 parent c3de7c4 commit 62fcd27
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions infra/ansible/roles/monitoring/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,16 @@
notify:
- Enable and restart Grafana

- name: Setup Grafana database parameters
blockinfile:
path: /etc/grafana/grafana.ini
insertafter: "\\[database\\]"
marker: "# {mark} ANSIBLE MANAGED BLOCK DATABASE"
block: |
wal = true
notify:
- Enable and restart Grafana

- name: Create Grafana Prometheus datasource
template:
dest: /etc/grafana/provisioning/datasources/prometheus.yaml
Expand Down

0 comments on commit 62fcd27

Please sign in to comment.