Skip to content

fix(kube-monitoring): incorporate PrometheusRule with thanos-ruler label for absent-metrics-operator#1598

Open
sjentzschsap wants to merge 1 commit intocloudoperators:mainfrom
sjentzschsap:fix/kube-monitoring-absent-metrics-thanos-ruler-labels
Open

fix(kube-monitoring): incorporate PrometheusRule with thanos-ruler label for absent-metrics-operator#1598
sjentzschsap wants to merge 1 commit intocloudoperators:mainfrom
sjentzschsap:fix/kube-monitoring-absent-metrics-thanos-ruler-labels

Conversation

@sjentzschsap
Copy link
Copy Markdown
Contributor

Pull Request Details

The absent-metrics-operator logs errors and has issues processing PrometheusRules that include thanos-ruler labels, and neither plugin nor prometheus. This is the case, when PrometheusRules are processed by Thanos Rule.

According to the docs this is already the default, so let's not deviate here, and respect the thanos-ruler labels here too if present.

Copilot AI review requested due to automatic review settings May 7, 2026 21:35
@sjentzschsap sjentzschsap requested a review from a team as a code owner May 7, 2026 21:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the kube-monitoring plugin to handle PrometheusRules that are selected/managed by Thanos Ruler (i.e., labeled with thanos-ruler) by adjusting the default absentMetricsOperator.promRuleName template so it can derive the rule name from thanos-ruler when plugin/prometheus labels are absent.

Changes:

  • Bump kube-monitoring PluginDefinition version from 12.1.0 to 12.1.1.
  • Extend absentMetricsOperator.promRuleName fallback order to: pluginthanos-rulerprometheus.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
kube-monitoring/plugindefinition.yaml Bumps plugin version to reflect the behavior change.
kube-monitoring/charts/values.yaml Updates the default rule-name template to support thanos-ruler-labeled PrometheusRules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…bel for absent-metrics-operator

Signed-off-by: Soeren Jentzsch <soeren.jentzsch@sap.com>
@sjentzschsap sjentzschsap force-pushed the fix/kube-monitoring-absent-metrics-thanos-ruler-labels branch from 98063a8 to 18f6e11 Compare May 7, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants