Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

kubelet dashboard: Remove the cluster label #474

Merged
merged 1 commit into from
May 28, 2020

Conversation

surajssd
Copy link
Member

Kubelet Dashboard was not showing any information because it was
querying using the cluster label which was missing on the metrics. This
commit removes the cluster label query.

Fixes #453

@surajssd
Copy link
Member Author

The dashboard looks like this with this PR:

Screenshot from 2020-05-22 18-40-56

Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

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

Hm, I don't think we should be using the dashboard for Kubernetes 1.14

@surajssd
Copy link
Member Author

But then do we have an option until we update the chart to the latest version?

@surajssd surajssd force-pushed the surajssd/add-cluster-label branch from c6e88a3 to 5b1126f Compare May 22, 2020 13:52
@invidian
Copy link
Member

Hm, could we just update to the latest version with helm/charts#22338 included on top? As I guess this is the issue? Instead of this PR.

@surajssd
Copy link
Member Author

I am not sure how that PR can be implemented. Because it is supposed to maintain two appVersions, not sure how that can be achieved.

@invidian
Copy link
Member

I am not sure how that PR can be implemented. Because it is supposed to maintain two appVersions, not sure how that can be achieved.

Maybe you can fallback to value different than appVersion if K8s version is lower than X?

@iaguis
Copy link
Contributor

iaguis commented May 25, 2020

I don't have all the context but it seems helm/charts#22338 is closed so are you ok with having this as a stop-gap solution and consider updating to a newer chart once it's available upstream, @invidian?

@invidian
Copy link
Member

I don't have all the context but it seems helm/charts#22338 is closed so are you ok with having this as a stop-gap solution and consider updating to a newer chart once it's available upstream, @invidian?

As far as I understand, we ship dashboards, which is suppose to be used with Kubernetes 1.14, when Lokomotive ships 1.18. There might be other things broken in those dashboards because of that, not only this. We might be also missing some interesting graphs etc.

For me, maintaining/fixing the dashboards which shouldn't be used anyway and should be replaced makes a little sense, I would rather move forward and catch up with upstream. Also, as far as I see, upstream is not willing to do the upgrades, as the repository is deprecated.

@surajssd surajssd force-pushed the surajssd/add-cluster-label branch 2 times, most recently from 75952ce to d3ac234 Compare May 26, 2020 23:18
Kubelet Dashboard was not showing any information because it was
querying using the cluster label which was missing on the metrics. This
commit removes the cluster label query.

Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
@surajssd surajssd force-pushed the surajssd/add-cluster-label branch from d3ac234 to cf6cb24 Compare May 27, 2020 00:25
@surajssd surajssd requested a review from invidian May 27, 2020 09:17
@invidian invidian requested review from iaguis and ipochi May 27, 2020 10:02
@iaguis
Copy link
Contributor

iaguis commented May 27, 2020

As far as I understand, we ship dashboards, which is suppose to be used with Kubernetes 1.14, when Lokomotive ships 1.18. There might be other things broken in those dashboards because of that, not only this. We might be also missing some interesting graphs etc.

For me, maintaining/fixing the dashboards which shouldn't be used anyway and should be replaced makes a little sense, I would rather move forward and catch up with upstream. Also, as far as I see, upstream is not willing to do the upgrades, as the repository is deprecated.

I agree with the general idea. However, things are broken right now so I'd say:

  • If we need this fixed right away, and since updating to current dashboards seems like a fair amount of work, let's fix the issues we found and keep using 1.14 dashboards and create an issue to update to the latest Prometheus-operator/dashboards.
  • If we don't need it right away let's invest in updating Prometheus-operator in this PR.

@surajssd
Copy link
Member Author

If we don't need it right away let's invest in updating Prometheus-operator in this PR.

It is a huge effort since upstream for the sake for backwards compatibility does not want to make much changes as mentioned in that closed PR.

I suggest we move forward with this because things work fine for now. And we revisit things as they are broken.

@surajssd
Copy link
Member Author

@invidian @iaguis PTAL

Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

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

🙈

@iaguis iaguis merged commit 85b82fa into master May 28, 2020
@iaguis iaguis deleted the surajssd/add-cluster-label branch May 28, 2020 11:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grafana Kubelet dashboard does not show any data
3 participants