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

Refactor Kubernetes performance metrics cache #10965

Closed
jsoriano opened this issue Feb 27, 2019 · 1 comment
Closed

Refactor Kubernetes performance metrics cache #10965

jsoriano opened this issue Feb 27, 2019 · 1 comment
Labels
containers Related to containers use case Metricbeat Metricbeat module refactoring Team:Integrations Label for the Integrations team

Comments

@jsoriano
Copy link
Member

Metricbeat module for kubernetes includes a cache for performance metrics that is used mostly to calculate percentages on memory and cpu usage. This cache maintains the container and node limits, values that are not collected by other performance metrics.

This cache expires values after they haven't been updated or read (#10946) during a timeout currently set to 120 seconds.

The main problem with this is that metricsets with greater periods would be missing metrics, and they wouldn't be recovered unless pods or nodes are updated.

Some possible solutions for this:

  • Allow cache consumers to set TTLs for the metrics they use.
  • Implement mechanisms to retrieve the missing values.

I wouldn't consider this so urgent as I don't think that periods of more than 120 seconds are so usual, if they are, a quick workaround would be to increase the default timeout.

@alvarolobato
Copy link

The most problematic situation is already fixed here: #10946 we will close this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Related to containers use case Metricbeat Metricbeat module refactoring Team:Integrations Label for the Integrations team
Projects
None yet
Development

No branches or pull requests

2 participants