PVO11Y-5445 Exclude mintmaker from kube_pod_* federation filters in staging - #13503
Conversation
…taging MintMaker's high-volume Renovate bot pods cause significant series churn for kube_pod_* metrics. No alerts or dashboards consume these metrics for the mintmaker namespace — all pod alerts explicitly exclude it. Assisted-by: Claude Code (claude-opus-4-6)
Kustomize Render DiffComparing
Total: 5 components, +60 -30 lines 📋 Full diff available in the workflow summary and as a downloadable artifact. |
PR Summary by QodoExclude mintmaker from kube_pod_* federation filters in staging
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can route each action level your way: inline, summary, both, or drop Previous review resultsReview updated until commit 77cfe89 Results up to commit a6a815e
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13503 +/- ##
==========================================
+ Coverage 58.78% 60.38% +1.59%
==========================================
Files 24 24
Lines 1548 1628 +80
==========================================
+ Hits 910 983 +73
- Misses 559 563 +4
- Partials 79 82 +3
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
@kubasikus, thanks for bringing this up! I would like to propose a slight change to the current solution. We do have two groups of pods in MintMaker, the ones relative to the core service, and those from the temporary workloads. While removing the second group from the metrics won't be a problem for us, we'd prefer to keep the metrics for the first group (which fortunately is much much smaller). Since the temporary pods always have names starting with Container Metrics:
Pod Metrics:
Each of these would be placed right after the corresponding modified line. Since Do you think this would work, @kubasikus? I'll be happy to adjust the approach if needed! Disclaimer 1: it's important to mention that part of the load that MintMaker causes is not directlty from it's own resources, but from the CIs that it triggers in the component repos after proposing updates. Disclaimer 2: assisted by Claude Opus 4.6 |
|
Including I tried updating this branch in include the additional match entries but unfortunately I do not have permission. We'll wait for @kubasikus to be back to update this PR. |
|
Ran a query to see how much reduction will happen by filtering out the renovate pod series:
Looks like most of it, as @pacho-rh says. So let's do it this way :) |
Per mintmaker team feedback, re-include mintmaker namespace for non-renovate pods so core service metrics (controller, cache) remain visible in alerts and dashboards. Renovate bot pods are the source of cardinality churn and all have names starting with "renovate". Assisted-by: Claude Code (claude-opus-4-6)
|
Code review by qodo was updated up to the latest commit 77cfe89 |
|
Will this still monitor |
|
@rh-rsaar as mentioned in slack, yes, those metrics will still be available. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kubasikus, pumahaka The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
26887d1
into
redhat-appstudio:main

What
Exclude the
mintmakernamespace from broad kube_pod_* federation match filters in staging.Metrics excluded:
kube_pod_container_status_waiting_reasonkube_pod_container_status_restarts_totalkube_pod_container_infokube_pod_status_unschedulablekube_pod_status_phasekube_pod_container_status_terminated_reasonClusters affected: staging
PVO11Y-5445
Why
MintMaker runs high-volume, short-lived Renovate bot pods that generate significant series churn for kube_pod_* metrics forwarded to RHOBS. No alerts or dashboards consume these pod-level metrics for the mintmaker namespace — most pod alerts (
PodNotReady,PodOOMKilled,ControllerPodOOMKilled) already explicitly exclude it.Note: Two alerts —
UnschedulablePodsandCrashLoopBackOff— do not currently exclude mintmaker. Both areseverity: warningrouted to the mintmaker team viaalert_routing_key. This change will prevent those alerts from firing for mintmaker pods. MintMaker has its own dedicated controller availability alerts, so the impact should be minimal, but the mintmaker team should be aware.Validation
kustomize build --enable-helmpasses for staging federation overlay