short time frame data in grafana
Roconda opened this issue · 2 comments
Roconda commented
Hi,
First of all, very nice work, and very easy installation.
Currently I did a setup but the data stored is a very short time frame. It seems like the data will be truncated each few hours.
Is there something I might be missing?
Many thanks!
dstroot commented
Two thoughts:
- Make sure you use persistent storage
- You can save data aa long as you want assuming you have enough storage:
spec:
containers:
- name: prometheus
image: prom/prometheus:v1.5.2
args:
- '-storage.local.retention=72h' # <++++ Edit this here
- '-storage.local.path=/prometheus'
- '-storage.local.memory-chunks=500000'
- '-config.file=/etc/prometheus/prometheus.yml'