Skip to content

connmgr: add prometheus metrics - #48394

Merged
jkarneges merged 2 commits into
mainfrom
jkarneges/connmgr-prometheus
Aug 4, 2026
Merged

connmgr: add prometheus metrics#48394
jkarneges merged 2 commits into
mainfrom
jkarneges/connmgr-prometheus

Conversation

@jkarneges

Copy link
Copy Markdown
Member

This adds Prometheus metrics to connmgr entirely in Rust and using the prometheus crate. It implements a Prometheus server using the http1 module, and adds one metric to start out with (total_requests). Metrics are declared per-component, in this case within connmgr::metrics, whereas the Prometheus server itself lives in core. This way each component can reuse the server but register distinct metrics.

Notably, these metrics are not implemented using the StatsManager C++ class which supports Prometheus. It also doesn't implement cross-component aggregation like StatsManager does. This is intentional and part of a plan of phasing out the use of StatsManager for operational metrics, in favor of having each component serve their own metrics without any internal aggregation. After this lands, we can consider porting other components to use it as well, and removing Prometheus support from StatsManager.

@jkarneges
jkarneges requested a review from a team August 3, 2026 19:35
@jkarneges
jkarneges merged commit 90c805e into main Aug 4, 2026
19 checks passed
@jkarneges
jkarneges deleted the jkarneges/connmgr-prometheus branch August 4, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants