cloudworkz / kube-eagle

A prometheus exporter created to provide a better overview of your resource allocation and utilization in a Kubernetes cluster.
MIT License
704 stars 46 forks source link

Cache of old pods #26

Closed mmarcouxcoveo closed 5 years ago

mmarcouxcoveo commented 5 years ago

Hi!!

Amazing stuff you got there. I have a question/problem.

When there's a pod dying and being replaced, there's still data in eagle and prometheus is still pushing it to my grafana so it's misleading how much resources is being used.

Is there a setting somewhere in eagle or if it's in prometheus where data is stored and for how long?

Thanks Math

weeco commented 5 years ago

Hi Math, yes there is in prometheus. It's caled "staleness" and defaults to 5min. Personally I leave it at 5minutes knowing that the reported metrics may not be 100% accurate due to that.