Skip to content

Enable native OPA Prometheus metrics#3631

Merged
szuecs merged 6 commits intomasterfrom
opa_prometheus_metrics
Jan 22, 2026
Merged

Enable native OPA Prometheus metrics#3631
szuecs merged 6 commits intomasterfrom
opa_prometheus_metrics

Conversation

@mjungsbluth
Copy link
Collaborator

@mjungsbluth mjungsbluth commented Sep 19, 2025

This PR passes through existing Prometheus metrics from Open Policy Agent by prefixing them to fit with remainging Skipper metrics and labeling them per virtual OPA instance.

This can only be supported for the Prometheus metrics flavour and is breaking the metrics abstraction as it pulls the Prometheus Registerer to the outside but avoids maintaining and copying existing work that has happened upstream in Open Policy Agent.

Should only be merged after #3562 is merged

@mjungsbluth mjungsbluth added the major moderate risk, for example new API, small filter changes that have no risk like refactoring or logs label Sep 19, 2025
@mjungsbluth mjungsbluth marked this pull request as ready for review September 30, 2025 14:02
@szuecs
Copy link
Member

szuecs commented Oct 10, 2025

👍

@mjungsbluth
Copy link
Collaborator Author

@torwunder could you also have a look?

@szuecs szuecs force-pushed the opa_prometheus_metrics branch from d7888f6 to bde6d0d Compare January 15, 2026 18:27
test: add label validation

Signed-off-by: Sandor Szücs <[email protected]>
@szuecs szuecs force-pushed the opa_prometheus_metrics branch from f08bc6e to 2972e4f Compare January 15, 2026 18:31
@szuecs szuecs requested a review from MustafaSaber January 15, 2026 18:31
@szuecs
Copy link
Member

szuecs commented Jan 15, 2026

👍

1 similar comment
@mjungsbluth
Copy link
Collaborator Author

👍

@szuecs szuecs merged commit e97551d into master Jan 22, 2026
17 of 18 checks passed
@szuecs szuecs deleted the opa_prometheus_metrics branch January 22, 2026 19:38
x418 pushed a commit to x418/kubernetes-on-aws that referenced this pull request Jan 26, 2026
## What & Why?

Part of [Expose OPA Status Metrics](https://github.com/zalando-infosec/corporate-iam-issues/issues/1331)

This change to the OPA configmap ensures that the PrometheusOverride hook added via zalando/skipper#3631 enables the Status metrics that we plan to consume.
x418 added a commit to x418/skipper that referenced this pull request Jan 30, 2026
…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
x418 added a commit to x418/skipper that referenced this pull request Jan 30, 2026
…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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation major moderate risk, for example new API, small filter changes that have no risk like refactoring or logs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants