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

Fixed dispatcher metrics registration #2200

Merged
merged 1 commit into from
Mar 6, 2020

Conversation

pracucci
Copy link
Contributor

@pracucci pracucci commented Mar 6, 2020

The new dispatcher metrics are not registered on the provided registerer, but on the default one. This PR fixes it, as well as handle the case the input registerer is nil.

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@roidelapluie roidelapluie merged commit 99e5cbf into prometheus:master Mar 6, 2020
@roidelapluie
Copy link
Member

Thanks!

@simonpasquier
Copy link
Member

Not supporting nil registries was on purpose. It allows to detect when you accidentally forgot to pass a registry.

See #2202

gotjosh added a commit to gotjosh/cortex that referenced this pull request Aug 24, 2020
Signed-off-by: gotjosh <josue@grafana.com>
gouthamve pushed a commit to cortexproject/cortex that referenced this pull request Aug 24, 2020
#3065)

* Remove TODO about prometheus/alertmanager#2182 as it got merged

Signed-off-by: gotjosh <josue@grafana.com>

* Remove TODO about prometheus/alertmanager#2200 as it got merged

Signed-off-by: gotjosh <josue@grafana.com>

* Register the Alertmanager API metrics

Signed-off-by: gotjosh <josue@grafana.com>

* Add a changelog entry

Signed-off-by: gotjosh <josue@grafana.com>

* Fix tests

Signed-off-by: gotjosh <josue@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants