Skip to content

fix: implement ConfigDiscoveryHook for PrometheusOverride to enable OPA status metrics#3851

Draft
x418 wants to merge 1 commit intozalando:masterfrom
x418:opa-config-discovery-hoook
Draft

fix: implement ConfigDiscoveryHook for PrometheusOverride to enable OPA status metrics#3851
x418 wants to merge 1 commit intozalando:masterfrom
x418:opa-config-discovery-hoook

Conversation

@x418
Copy link
Copy Markdown

@x418 x418 commented Jan 30, 2026

What & Why?

Implement ConfigDiscoveryHook.OnConfigDiscovery() for PrometheusOverride to enable Prometheus status metrics when using discovery bundles.

#3631 added support to also expose native OPA metrics via Skipper's metrics endpoint. This PR extends it by also ensuring that we also enable it when using discovery bundles

TODO: Extract some reusable methods if this is the way we want to go

…PA status metrics

## What & Why?

Implement ConfigDiscoveryHook.OnConfigDiscovery() for PrometheusOverride to enable Prometheus status metrics when using discovery bundles.

zalando#3631 added support to also expose native OPA metrics via Skipper's metrics endpoint. This PR extends it by also ensuring that we also enable it when using discovery bundles
Signed-off-by: Santhosh Kannan <29794224+x418@users.noreply.github.com>
@zalando-robot
Copy link
Copy Markdown

Cannot start a pipeline due to:

No accountable user for this pipeline: no Zalando employee associated to this GitHub username

Click on pipeline status check Details link below for more information.

@x418 x418 changed the title fix: implement ConfigDiscoveryHook for PrometheusOverride to enable O… fix: implement ConfigDiscoveryHook for PrometheusOverride to enable OPA status metrics Jan 30, 2026
@mjungsbluth
Copy link
Copy Markdown
Collaborator

@x418 is this still relevant? Looks like a good approach to capture more metrics that already exist.

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.

3 participants