From e5d3aa0f012169d846782f406dd2d5b8f6628395 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 27 Nov 2025 11:19:46 -0400 Subject: [PATCH] MT#55283 add poller status to Prom Change-Id: I8f0bc1388dd0d6cbe28351896c062ed01d4f0b4c --- daemon/statistics.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/statistics.c b/daemon/statistics.c index d274014ca..07c8183eb 100644 --- a/daemon/statistics.c +++ b/daemon/statistics.c @@ -920,7 +920,11 @@ stats_metric_q *statistics_gather_metrics(struct interface_sampled_rate_stats *i METRICs("index", "%u", i); METRICs("pid", "%u", (unsigned int) pt->pid); METRICs("wakeups", "%" PRIu64, atomic64_get_na(&pt->wakeups)); + PROM("poller_wakeups", "counter"); + PROMLAB("index=\"%u\",pid=\"%u\"", i, (unsigned int) pt->pid); METRICs("items", "%" PRIu64, atomic64_get_na(&pt->items)); + PROM("poller_items", "counter"); + PROMLAB("index=\"%u\",pid=\"%u\"", i, (unsigned int) pt->pid); HEADER("}", ""); } HEADER("]", NULL);