Skip to content

control&daemon: rework metrics throughout the code#4879

Open
lukedirtwalker wants to merge 1 commit into
scionproto:masterfrom
lukedirtwalker:metrics-rework
Open

control&daemon: rework metrics throughout the code#4879
lukedirtwalker wants to merge 1 commit into
scionproto:masterfrom
lukedirtwalker:metrics-rework

Conversation

@lukedirtwalker
Copy link
Copy Markdown
Collaborator

Switch to use metrics/v2 everywhere in control&daemon code and in all the libraries they use. Don't have any internal package magically create metrics, instead inject all metrics from the outside, so that the user of a library is in full control of what metrics get exposed.

With the newly introduced option pattern for metrics it's also possible to select the registry as well as customizing the collector for certain metrics, this can for example be leveraged to only expose certain metrics on demand.

@lukedirtwalker lukedirtwalker requested review from a team and oncilla as code owners February 9, 2026 06:15
lukedirtwalker added a commit to Anapaya/os-scion that referenced this pull request Feb 12, 2026
Switch to use metrics/v2 everywhere in control&daemon code and in all
the libraries they use. Don't have any internal magically create
metrics, instead inject all metrics from the outside, so that the user
of a library is in full control of what metrics get exposed.

With the newly introduced option pattern for metrics it's also possible
to select the registry as well as customizing the collector for certain
metrics, this can for example be leveraged to only expose certain
metrics on demand.

Upstream PR: scionproto#4879
Switch to use metrics/v2 everywhere in control&daemon code and in all
the libraries they use. Don't have any internal magically create
metrics, instead inject all metrics from the outside, so that the user
of a library is in full control of what metrics get exposed.

With the newly introduced option pattern for metrics it's also possible
to select the registry as well as customizing the collector for certain
metrics, this can for example be leveraged to only expose certain
metrics on demand.
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.

1 participant