prometheus.yml 2.2 KB

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