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:
Ruslan Piatrovich
2026-06-05 16:33:57 +03:00
parent 85cecf78f6
commit c492399300
11 changed files with 307 additions and 1 deletions
+12
View File
@@ -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) }'"