Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8950e97

Browse files
committed
Only reload Prometheus on config change
Since it supports hot-reload of config, there's no need for a full restart.
1 parent 0d8b28a commit 8950e97

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

matplotlib.org.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
dest: /etc/prometheus/prometheus.yml
247247
mode: 0644
248248
notify:
249-
- Restart Prometheus
249+
- Reload Prometheus
250250

251251
- name: Enable prometheus node exporter service
252252
ansible.builtin.systemd:
@@ -322,6 +322,11 @@
322322
name: caddy
323323
state: reloaded
324324

325+
- name: Reload Prometheus
326+
ansible.builtin.systemd:
327+
name: prometheus
328+
state: reloaded
329+
325330
- name: Restart Prometheus
326331
ansible.builtin.systemd:
327332
name: prometheus

0 commit comments

Comments
 (0)