CNV-87536: Scrape monitoring plugin backend metrics #3175
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.35) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 162 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.305
Real PR Conversation Timeline
1 comments
"Review active on #3175"
general
weight: 0.35
sradco
Enable Prometheus scraping of the monitoring plugin's backend metrics independently of the alert management API feature.
Mount the
metrics-client-caConfigMap read-only at/etc/tls/clientand configure the plugin with--client-ca-file=/etc/tls/client/client-ca.crt. Reconcile a ServiceMonitor using the sharedtls-client-certificate-authscrape class with serving-certificate verification. Generate the deployment and ServiceMonitor assets from Jsonnet.Include
monitoring-pluginin the existingtestTargetsUpchecks, which verify target health before and after Prometheus client certificate rotation.Depends on https://github.com/openshift/monitoring-plugin/pull/1406 being included in the monitoring-plugin image. This remains a draft pending live E2E validation with that image.
Validation passed:
make jsonnet-fmt generatego test -p 2 ./pkg/...golangci-lint run(0 issues)make verifygo test -p 2 -c ./test/e2e)Live cluster E2E tests have not been run.
Telemetry report
Not applicable: this change does not modify telemetry collection selectors in
manifests/0000_50_cluster-monitoring-operator_04-config.yaml.Signed-off-by: Shirly Radco <sradco@redhat.com>
Co-authored-by: Codex <noreply@openai.com>