Skip to content

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.

@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
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 <[email protected]>

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

Signed-off-by: gotjosh <[email protected]>

* Register the Alertmanager API metrics

Signed-off-by: gotjosh <[email protected]>

* Add a changelog entry

Signed-off-by: gotjosh <[email protected]>

* Fix tests

Signed-off-by: gotjosh <[email protected]>
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