-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Grafana dashboard isn't using the good label for querying prometheus #4380
Comments
I guess the labels changed, that's a bummer! We'll have to figure that dashboard out again. |
I would love to help on this one, i'm gonna do a pr to try to fix this |
That'd be awesome @aimbot31 ! I believe we got that dashboard off grafana hub fwiw. They might have a fix up there already. |
No update since 2 years :/ |
Change "pod_name" to "pod" linkerd#4380
Prometheus use a relabel rule to change pod_name to pod Change "pod_name" to "pod" in the grafana dashboard Run some tests on the Grafana dashboard Fixes linkerd#4380 Signed-off-by: Florian Davasse <aimbot31@gmail.com>
Prometheus use a relabel rule to change pod_name to pod Change "pod_name" to "pod" in the grafana dashboard Run some tests on the Grafana dashboard Fixes linkerd#4380 Signed-off-by: Florian Davasse <aimbot31@gmail.com>
Prometheus use a relabel rule that changed since 1.16 Use "pod_name" and "pod" to avoid breaking changes. Alse use "container" and "container_name" for the same reasons. Run some tests on the Grafana dashboard Fixes linkerd#4380 Signed-off-by: Florian Davasse <florian.davasse@stack-labs.com>
The pr associated has been updated as suggested. Can someone re-open it plz ? |
@aimbot31 GH won't let me re-open the old PR; it's complaining about your branch. I think the easiest thing to do is just to submit a new PR. Thanks! |
Prometheus use a relabel rule that changed since 1.16 Use "pod_name" and "pod" to avoid breaking changes. Alse use "container" and "container_name" for the same reasons. Run some tests on the Grafana dashboard Fixes linkerd#4380 Signed-off-by: Florian Davasse <florian.davasse@stack-labs.com>
Prometheus use a relabel rule that changed since 1.16 Use "pod_name" and "pod" to avoid breaking changes. Also use "container" and "container_name" for the same reasons. Fixes #4380 Signed-off-by: Florian Davasse <florian.davasse@stack-labs.com>
Bug Report
What is the issue?
The dashboard "Kubernetes cluster monitoring (via Prometheus) " isn't using the good label for querying prometheus.
https://github.com/linkerd/linkerd2/blob/master/grafana/dashboards/kubernetes.json
It uses
pod_name
but i do not have this label in my prometheus.How can it be reproduced?
I've just installed a new cluster in 1.16.8 with 3 nodes 1 master. I deployed ArgoCD, linkerd and a microservice app (bookinfo).
Logs, error output, etc
linkerd check
outputEnvironment
Server version: stable-2.7.1
Possible solution
Use
pod
orname
instead ofpod_name
.Additional context
This is what i got when i query
container_cpu_usage_seconds_total
in my prometheus :I think the problem is the same for
container_name
, haven't got the time to check this one.The text was updated successfully, but these errors were encountered: