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

Fixed metrics path and deprecated labels for the cadvisor job #3312

Merged
merged 3 commits into from
Jul 14, 2020

Conversation

ppatierno
Copy link
Member

@ppatierno ppatierno commented Jul 13, 2020

Fixed dashboards using the right label

Signed-off-by: Paolo Patierno [email protected]

Type of change

Select the type of your PR

  • Bugfix

Description

This PR fixes #3308.
Memory and CPU usage metrics are not working anymore on Kafka and ZooKeeper dashboards due to change on the path where cadvisor exposes the metrics and some deprecated and dropped labels on the related metrics.
Following the current not working metrics for Kafka and ZooKeeper dashboards.

without_metrics

and here the working ones using this PR.

with_metrics

Checklist

Please go through this checklist and make sure all applicable tasks have been done

  • Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
  • Reference relevant issue(s) and close them after merging

Fixed dashboards using the right label

Signed-off-by: Paolo Patierno <[email protected]>
@ppatierno ppatierno requested review from sknot-rh and a team July 13, 2020 13:52
@ppatierno ppatierno added this to the 0.19.0 milestone Jul 13, 2020
@tombentley
Copy link
Member

The referenced Kubernetes PR says

Duplicate labels were included in the 1.14 and 1.15 releases

Merging this PR would break support for Kubernetes 1.11–1.13. I know we're on the verge of dropping support for those versions ourselves, but we've not yet done so.

@ppatierno
Copy link
Member Author

ppatierno commented Jul 13, 2020

We have always said that they are examples right? We don't provide support for them so we are not breaking compatibility with something we don't actually support. What are you proposing? Having the metrics working only on older Kubernetes version and having them broken on new ones?

@tombentley
Copy link
Member

I'd forgotten that we've always said these were examples, rather than anything supported. However, it's probably worth mentioning in the changelog that we're dropping support for metrics in those older versions, and linking to this PR, so that it's more clear that we've done this on purpose, and users on older versions at least know how to fix things.

CHANGELOG.md Outdated Show resolved Hide resolved
Signed-off-by: Paolo Patierno <[email protected]>
@ppatierno ppatierno merged commit ee4e208 into strimzi:master Jul 14, 2020
@ppatierno ppatierno deleted the fix-cadvisor-job-dashboard branch July 14, 2020 06:44
klalafaryan pushed a commit to klalafaryan/strimzi-kafka-operator that referenced this pull request Oct 21, 2020
…i#3312)

* Fixed metrics path and deprecated labels for the cadvisor job
Fixed dashboards using the right label

Signed-off-by: Paolo Patierno <[email protected]>

* Updated CHANGELOG with breaking changes on Kubernetes < 1.14

Signed-off-by: Paolo Patierno <[email protected]>

* Fixed comment

Signed-off-by: Paolo Patierno <[email protected]>
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.

[Bug] Example Metric Dashboards and rules use deprecated "kubernetes_pod_name" and "container_name" labels
4 participants