Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extensible "Rollout progress" workload grouping #7228

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

colega
Copy link
Contributor

@colega colega commented Jan 26, 2024

What this PR does

We have some cells where we have multiple deployments (10+) for the same workload. They make the rollout progress dashboard unreadable.

In this PR I'm extracting the label_replace(...) calls from the "Rollout progress" panel into an array in the config, so users can extend that with their workload matchers.

I also used this opportunity to:

  • Replace cortex_service label with workload.
  • Change query from regexp-matching on the metric name to kube_statefulset_... or kube_deployment_...: this is required for Adaptive Metrics to correctly process this metric name lookup.

With default configuration, this doesn't make any user-facing change.

Which issue(s) this PR fixes or relates to

Fixes an internal report.

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

We have some cells where we have multiple deployments (10+) for the same
workload. They make the rollout progress dashboard unreadable.

In this PR I'm extracting the `label_replace(...)` calls from the
"Rollout progress" panel into an array in the config, so users can
extend that with their workload matchers.

I also used this opportunity to:
- Replace `cortex_service` label with `workload`.
- Change query from regexp-matching on the metric name to
  kube_statefulset_... or kube_deployment_...: this is required for
  Adaptive Metrics to correctly process this metric name lookup.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
@colega colega marked this pull request as ready for review January 26, 2024 12:22
@colega colega requested a review from a team as a code owner January 26, 2024 12:22
@colega
Copy link
Contributor Author

colega commented Jan 26, 2024

There's no user-facing change with the default config, so I'm not sure if this worth a CHANGELOG.md entry. 🤔

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
Copy link
Contributor

@replay replay left a comment

Choose a reason for hiding this comment

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

Nice, thx for fixing it

@colega colega merged commit 3c098d9 into main Jan 26, 2024
30 checks passed
@colega colega deleted the extensible-rollout-dashboard-workload-grouping branch January 26, 2024 12:49
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.

None yet

2 participants