new-site/infra/ansible/roles
justin a4a5500bfc Add Prometheus + Grafana + Alertmanager monitoring stack
Full observability stack with Telegram alerting:

Components:
- Prometheus: metrics collection, 90-day retention
- Grafana: dashboards at monitoring.performancewest.net
- Alertmanager: routes alerts to Telegram bot
- node-exporter: OS metrics (CPU, RAM, disk, network)
- cAdvisor: container metrics (CPU, memory, restarts)
- postgres-exporter: PostgreSQL connection/query metrics
- nginx-exporter: request rate, 5xx errors, connections
- blackbox-exporter: HTTP/TCP endpoint probing + SSL cert checks

Alert rules:
- Service down (HTTP probe, TCP port, container missing)
- Container restart loops
- High CPU/memory/disk/load
- PostgreSQL down or high connections
- SSL cert expiring (14d warning, 3d critical)
- Slow HTTP responses, high 5xx rate

Blackbox probes all public endpoints:
  performancewest.net, api, dev, crm, lists, analytics,
  minio, crypto, pay

Telegram alerts: critical=1h repeat, warning=6h repeat,
  auto-resolve notifications

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-01 02:08:39 -05:00
..
app Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
common Add security-updates Ansible role for automated patching 2026-04-30 01:24:57 -05:00
docker Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
erpnext Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
minio Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
monitoring Add Prometheus + Grafana + Alertmanager monitoring stack 2026-05-01 02:08:39 -05:00
nginx Add Prometheus + Grafana + Alertmanager monitoring stack 2026-05-01 02:08:39 -05:00
postgresql Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
security-updates Add security-updates Ansible role for automated patching 2026-04-30 01:24:57 -05:00
sftpgo Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
shkeeper Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
site Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
worker-crons Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
workers Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00