SIENTIAPDE-1083: add prometheus metrics to ingestor.

This commit is contained in:
Bruno Domingues
2025-05-28 17:54:44 -03:00
parent fff52acf79
commit 8e332da597
5 changed files with 87 additions and 52 deletions

View File

@@ -34,17 +34,17 @@ APP_UP = Gauge(
)
# --- Ingestor Manager Metrics ---
INGESTORS_ATIVOS = Gauge(
ACTIVE_INGESTORS = Gauge(
"ingestor_active_total",
"Number of active ingestors reported by Redis",
# No pod_id here, as it's a global view from Redis
)
SLOTS_TOTAIS = Gauge(
SLOTS_TOTAL = Gauge(
"ingestor_slots_total",
"Total number of slots configured in Redis",
# No pod_id here, as it's a global view from Redis
)
LEASES_TOTAIS = Gauge(
LEASES_TOTAL = Gauge(
"ingestor_leases_total",
"Total number of leases (allocated slots) in Redis",
# No pod_id here, as it's a global view from Redis