-
Notifications
You must be signed in to change notification settings - Fork 537
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
Mimir mixin Disk space utilization panels broken for mimir helm chart #7515
Comments
Keeping the kube_persistentvolumeclaim_labels metric just for the pods from mimir looks tricky. Can we use the 'app.kubernetess.io/name: mimir' inside the relabelling config to pick this up? To avoid scraping other mimir clusters in the same k8s cluster we can add another 'keep' relabelling which checks the namespace label (and need to make sure it's present on all currently collected metrics) Regarding the second problem of using different labels - is it possible to use label_replace in the panel query so we take either 'label_rollout_group' or 'label_name' - whichever is present? I.e. replace label_name woth the other only if the other is non-empty, maybe theres something with regex we can do? |
@dimitarvdimitrov I'm just facing this issue and would using the |
using |
I think the issue with using |
See PR here #7968 |
Let me know how I can speed things up :) |
Using a common label on the
|
app.kubernetes.io/name: {{ include "mimir.name" .ctx }} | |
app.kubernetes.io/instance: {{ .ctx.Release.Name }} | |
{{- if .component }} | |
app.kubernetes.io/component: {{ .component }} | |
{{- end }} | |
{{- if .memberlist }} | |
app.kubernetes.io/part-of: memberlist | |
{{- end }} | |
{{- if .ctx.Chart.AppVersion }} | |
app.kubernetes.io/version: {{ .ctx.Chart.AppVersion | quote }} | |
{{- end }} | |
app.kubernetes.io/managed-by: {{ .ctx.Release.Service }} |
@dimitarvdimitrov I'm not sure what you mean by adding the label to the jsonnet mixin, I'm fine implementing a working solution though :D The main issue with using the |
I meant adding the label to the resources created by the jsonnet library to deploy Mimir. This will help with having a single label selector in the promQL query because it will match both jsonnet and helm deployments because they will have some label in common
That doesn't sound great. So the metric is just empty by default? I couldn't find this change in the changelog. Do you have a link to the PR or changelog entry? |
I was wrong, this happened in kube-state-metrics 2.10 https://github.com/kubernetes/kube-state-metrics/releases/tag/v2.10.0 (cf. the top message) |
Regarding the fix I would assume this would be needed under |
@dimitarvdimitrov what do you think about using something like
instead of relying on the kube-state-metrics labels metric? |
That's a neat idea and is much simpler too. I don't see a reason why it won't work. Happy to review a PR to carry out that change |
PR to fix it #8212 |
Describe the bug
The disk space utilization panels in the mimir mixin don't work with mimir deployed using the mimir-distributed helm chart.
Query example from:
Problematic part is
label_name=~"(ingester).*"
on thekube_persistentvolumeclaim_labels
metric coming from.There are 2 issues with it;
kube_persistentvolumeclaim_labels
metric due to this metric relabeling ruleTo Reproduce
Steps to reproduce the behavior:
Expected behavior
For Disk space utilization panels to work.
Environment
Additional Context
Not sure what would be the best way to fix this.
Things that come to mind
label_name
in those panelsWilling to submit a PR to address this after feedback.
The text was updated successfully, but these errors were encountered: