prometheus.yml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. global:
  2. scrape_interval: 5s
  3. evaluation_interval: 10s
  4. # F2: alerting rules for NATS resource limits + publish-path health.
  5. # See deploy/prometheus/rules/nats.yml and M11_NATS_INVESTIGATION.md.
  6. rule_files:
  7. - /etc/prometheus/rules/*.yml
  8. scrape_configs:
  9. # ── M0–M9 ingest tier ────────────────────────────────────
  10. - job_name: ingestd
  11. static_configs:
  12. - targets: ['ingestd:8800']
  13. # ── M0–M2 router tier ────────────────────────────────────
  14. - job_name: routerd
  15. static_configs:
  16. - targets: ['routerd:8801']
  17. # ── M1–M9 delivery tier ───────────────────────────────────
  18. # M9: split by channel so channel label in
  19. # ba_deliverd_delivery_attempts_total is meaningful.
  20. - job_name: deliverd-fcm
  21. static_configs:
  22. - targets: ['deliverd-fcm:8802']
  23. - job_name: deliverd-telegram
  24. static_configs:
  25. - targets: ['deliverd-telegram:8821']
  26. # ── M8 DLQ + operator API ────────────────────────────────
  27. - job_name: admind
  28. static_configs:
  29. - targets: ['admind:8803']
  30. # ── M7 data-tier archiver ────────────────────────────────
  31. - job_name: archiverd
  32. static_configs:
  33. - targets: ['archiverd:8804']
  34. # ── Loadgen (one-shot; useful to see if it's running) ────
  35. - job_name: loadgen
  36. static_configs:
  37. - targets: ['loadgen-http:8891']
  38. # M10: 3-instance cluster + 1 rogue (loadgen-m10 profile)
  39. # loadgen-http-4 is the rogue: same company+source as loadgen-http-1
  40. # but at 10× per-source cap. Added to scrape targets so Prometheus
  41. # scrapes its /metrics even though it is not started by default.
  42. - job_name: loadgen-m10
  43. static_configs:
  44. - targets: ['loadgen-http-1:8891', 'loadgen-http-2:8891', 'loadgen-http-3:8891', 'loadgen-http-4:8891']
  45. # M10-bench: 2-instance 50k/s cluster (bench profile)
  46. - job_name: loadgen-bench
  47. static_configs:
  48. - targets: ['loadgen-bench-1:8891', 'loadgen-bench-2:8891']
  49. # ── Prometheus self-monitoring ────────────────────────────
  50. - job_name: prometheus
  51. static_configs:
  52. - targets: ['localhost:9090']