Add configuration for Prometheus node exporter and SMTP monitoring in PMG. Updated README and added verification checks for new metrics.
This commit is contained in:
@@ -13,3 +13,15 @@ pmg-verify-cluster:
|
||||
pmg-verify-sshd-config:
|
||||
cmd.run:
|
||||
- name: sshd -t
|
||||
|
||||
pmg-verify-blackbox-service:
|
||||
cmd.run:
|
||||
- name: systemctl is-active --quiet prometheus-blackbox-exporter
|
||||
|
||||
pmg-verify-smtp-metrics-timer:
|
||||
cmd.run:
|
||||
- name: systemctl is-active --quiet pmg-smtp-metrics.timer
|
||||
|
||||
pmg-verify-smtp-metrics-exposed:
|
||||
cmd.run:
|
||||
- name: "curl -fsS http://127.0.0.1:9100/metrics | awk 'BEGIN { ok=0 } /^pmg_smtp_sent_recent / { ok=1 } END { exit(ok ? 0 : 1) }'"
|
||||
|
||||
Reference in New Issue
Block a user