1

I have set up a Grafana dashboard, to monitor Kubernetes. It's working as expected but there's an issue of losing metrics/history at some point of time. See the attached screenshot. In the screenshot, no metrics are shown between 21:00 PM to 23:00 PM.

https://i.sstatic.net/BcMHT.jpg

From the above image, is that behavior normal? Thanks.

I'm using Grafana as an addon on Istio.

Part of the Istio helm chart configuration:

grafana:
  enabled: true
  persist: true  
  accessMode: ReadWriteMany

My expectation is that no history/metrics should be lost at any specific time.

1
  • Did you add persistentVolume for your prometheus? Commented Aug 13, 2019 at 7:51

1 Answer 1

2

Istio uses Prometheus to collect the metrics. What you want to do, is to change a Prometheus data retention.

For example, if you are installing it with Helm, just change this parameter in the chart

--set prometheus.retention=2d

source: https://github.com/istio/istio/issues/12567

Sign up to request clarification or add additional context in comments.

1 Comment

This was very useful. Marked it an answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.