Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow defining config name for runtime config metric #405

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

replay
Copy link
Contributor

@replay replay commented Oct 16, 2023

This is necessary when one process wants to instantiate multiple instances of the runtime config manager.
Without this, they'd have to wrap the registerer that gets passed into New() with a prefix, but this means that alerts on the metric exported by the runtime config manager can't be re-used.

When updating the vendored dskit, we'll define a name in each place that uses it.

Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
@replay replay marked this pull request as ready for review October 16, 2023 11:21
@replay replay changed the title Allow defining name for runtime config metric Allow defining config name for runtime config metric Oct 16, 2023
@replay replay merged commit 441003e into main Oct 16, 2023
3 checks passed
@replay replay deleted the allow_defining_name_for_runtime_config_metric branch October 16, 2023 11:50
ying-jeanne pushed a commit that referenced this pull request Nov 2, 2023
* set config label on runtime config manager metrics

Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>

* pass runtime config name into runtime config manager

Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>

---------

Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
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.

None yet

2 participants