Skip to content

Conversation

@simu
Copy link
Member

@simu simu commented Oct 23, 2025

This is required in order to make the K8up metrics usable in OpenShift's user workload monitoring (UWM). Without this, the backup namespace is scraped as exported_namespace and namespace is the K8up namespace for all timeseries. This makes the metrics useless for UWM users, since UWM automatically restricts all queries with namespace="<query source namespace>" which can't match backups in the source namespace, if the backup namespace is exported as exported_namespace.

The commit also adjusts the component-managed alerting rules to work with the new namespace label setup. Additionally, the commit also fixes the alert expression for the K8upBackupNotRunning alert to actually fire for individual namespaces.

Checklist

  • The PR has a meaningful title. It will be used to auto-generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
  • Update the documentation.
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.

This is required in order to make the K8up metrics usable in OpenShift's
user workload monitoring (UWM). Without this, the backup namespace is
scraped as `exported_namespace` and `namespace` is the K8up namespace
for all timeseries. This makes the metrics useless for UWM users, since
UWM automatically restricts all queries with `namespace="<query source
namespace>"` which can't match backups in the source namespace, if the
backup namespace is exported as `exported_namespace`.

The commit also adjusts the component-managed alerting rules to work
with the new namespace label setup. Additionally, the commit also fixes
the alert expression for the `K8upBackupNotRunning` alert to actually
fire for individual namespaces.
@simu simu added bug Something isn't working bump:patch labels Oct 23, 2025
@github-actions
Copy link

github-actions bot commented Oct 23, 2025

🚀 Merging this PR will release v5.7.2

Merging will trigger workflows Release

🛠️ Auto tagging enabled with label bump:patch

message: No K8up jobs were run in {{ $labels.exported_namespace }} within the last 24 hours. Check the operator, there might be a deadlock
expr: sum(rate(k8up_jobs_total[25h])) == 0 and on(namespace) k8up_schedules_gauge > 0
message: No K8up jobs were run in {{ $labels.namespace }} within the last 24 hours. Check the operator, there might be a deadlock
expr: sum by (namespace) (rate(k8up_jobs_total[25h])) == 0 and on(namespace) k8up_schedules_gauge > 0
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: Figure out if we need to limit this to selected namespaces, currently we'd probably get paged for any stuck customer backups.

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

Labels

bug Something isn't working bump:patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants