Skip to content

Decouple OPA Prometheus metrics from decision log plugin#11131

Merged
demonCoder95 merged 1 commit into
devfrom
opa-metrics-config
Apr 29, 2026
Merged

Decouple OPA Prometheus metrics from decision log plugin#11131
demonCoder95 merged 1 commit into
devfrom
opa-metrics-config

Conversation

@mjungsbluth

Copy link
Copy Markdown
Collaborator

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

Recreated to supersede #11121

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
@mjungsbluth mjungsbluth 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

Copy link
Copy Markdown
Member

👍

@mjungsbluth

Copy link
Copy Markdown
Collaborator Author

👍

@demonCoder95 demonCoder95 merged commit 953a16e into dev Apr 29, 2026
15 checks passed
@demonCoder95 demonCoder95 deleted the opa-metrics-config branch April 29, 2026 08:49
This was referenced Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/alpha merged/beta merged/stable 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