Skip to content

Decouple OPA Prometheus metrics from decision log plugin#11121

Closed
x418 wants to merge 1 commit into
zalando-incubator:devfrom
x418:opa-metrics-config
Closed

Decouple OPA Prometheus metrics from decision log plugin#11121
x418 wants to merge 1 commit into
zalando-incubator:devfrom
x418:opa-metrics-config

Conversation

@x418

@x418 x418 commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Introduce a separate config flag skipper_open_policy_agent_prometheus_metrics_enabled to control the OPA status.prometheus block independently of skipper_open_policy_agent_decision_log_export_enabled.

Why

Previously, the status: prometheus: true configuration was nested inside the same conditional branch as the eopa_dl decision log plugin. Given we still have some open question sregarding dl plugin, this enables us to at least already start receiving prometheus metrics from OPA

@x418 x418 force-pushed the opa-metrics-config branch from ecbf283 to 23c24b7 Compare April 27, 2026 16:00
Introduce a separate config flag `skipper_open_policy_agent_prometheus_metrics_enabled` to control the OPA `status.prometheus` block independently of `skipper_open_policy_agent_decision_log_export_enabled`.

### Why
Previously, the `status: prometheus: true` configuration was nested inside the same conditional branch as the `eopa_dl` decision log plugin. Given we still have some open question sregarding dl plugin, this enables us to at least already start receiving prometheus metrics from OPA
@x418 x418 force-pushed the opa-metrics-config branch from 23c24b7 to f2c2e03 Compare April 27, 2026 16:03
@demonCoder95 demonCoder95 added the minor Minor changes, e.g. low risk config updates, changes that do not introduce a new API call. label Apr 28, 2026
@demonCoder95 demonCoder95 reopened this Apr 28, 2026
@demonCoder95

Copy link
Copy Markdown
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Minor changes, e.g. low risk config updates, changes that do not introduce a new API call.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants