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

Prepare requested resources visualizations for Kubernetes Observability #1014

Closed
eedugon opened this issue May 21, 2021 · 8 comments
Closed
Labels
enhancement New feature or request Integration:kubernetes Kubernetes Stalled Team:Integrations Label for the Integrations team

Comments

@eedugon
Copy link

eedugon commented May 21, 2021

On Kubernetes is very common to take a look at the overall resources requested / reserved (not in use) at different levels:

  • Cluster wide
  • Per node.

When doing kubectl describe node we can clearly see something like:

  Resource                   Requests      Limits
  --------                   --------      ------
  cpu                        1073m (27%)   2210m (56%)
  memory                     6924Mi (52%)  7324Mi (55%)
  ephemeral-storage          0 (0%)        0 (0%)
  hugepages-2Mi              0 (0%)        0 (0%)
  attachable-volumes-gce-pd  0             0

Today the majority of dashboards for Kubernetes monitoring allow the user to visualize quickly the overall (or per node) amount of CPU and memory requested.

In our current dashboards we focus on resource in use, which is nice but we don't have anything about requested resources or limits (maybe limits is not that interesting).

Taking a look at the documented metrics from our Metricbeat module and doing some tests I guess that we have defined the metrics:

  • kubernetes.container.cpu.request.cores
  • kubernetes.container.cpu.request.nanocores

But I believe (i could be wrong) we are not populating them.

So if we want to achieve this we probably need to solve both parts (receiving the metrics + preparing the UI at some level (dashboards, observability app, ...)

@eedugon eedugon added the Integration:kubernetes Kubernetes label May 21, 2021
@sorantis
Copy link

cc @ChrsMark

@sorantis sorantis added enhancement New feature or request Team:Integrations Label for the Integrations team labels May 24, 2021
@elasticmachine
Copy link

Pinging @elastic/integrations (Team:Integrations)

@MichaelKatsoulis
Copy link
Contributor

Taking a look at the documented metrics from our Metricbeat module and doing some tests I guess that we have defined the metrics:

  • kubernetes.container.cpu.request.cores
  • kubernetes.container.cpu.request.nanocores

But I believe (i could be wrong) we are not populating them.

@eedugon you are right that we are collecting these metrics but the reason you don't see them populated is probably the version of kube-state-metrics. Since v2.0.0 they deprecated those fields (they are replaced with new. Thy used to co-exist for some versions). breaking changes
There is an issue elastic/beats#21520 to support these changes and we will focus on that in the near future.
After the issue is fixed we could also add a visualisation

@eedugon
Copy link
Author

eedugon commented Aug 13, 2021 via email

@MichaelKatsoulis
Copy link
Contributor

Awesome! Great analysis, thanks! El El jue, 12 ago 2021 a las 15:43, Michael Katsoulis < @.***> escribió:

In matter of fact we are already working on elastic/beats#27552 to support the newer versions of kube-state-metrics and populate the fields.

@ChrsMark
Copy link
Member

ChrsMark commented Apr 4, 2022

We are in an effort to improve/optimise our dashboards at elastic/beats#31021. @MichaelKatsoulis maybe these metrics are some to consider too?

@MichaelKatsoulis
Copy link
Contributor

Yes indeed. These are useful metrics we could visualise.

@botelastic
Copy link

botelastic bot commented Apr 5, 2023

Hi! We just realized that we haven't looked into this issue in a while. We're sorry! We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Apr 5, 2023
@botelastic botelastic bot closed this as completed Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Integration:kubernetes Kubernetes Stalled Team:Integrations Label for the Integrations team
Projects
None yet
Development

No branches or pull requests

5 participants