June 4, 20224 yr I have prometheus and grafana running to record performance metrics for my unraid system according to this guide https://unraid.net/blog/prometheus I can only see 15 days history though, how can I extend that? Where is it configured? I had a look in the prometheus and grafana settings but couldn't find anything. Edited June 4, 20224 yr by rosydog double image removed
August 28Aug 28 I spent about an hour trying to get this to work. Google and the robots were no help and actually led me down several time-consuming and ultimately worthless rabbit holes.Here's the answer:Open your docker template for Prometheus, make sure advanced view is selected in the top right.Find the Post Arguments field and paste this in exactly as written:--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --storage.tsdb.retention.time=30d --storage.tsdb.retention.size=50GBThen click Apply.You can, of course, alter the retention sizes to meet your specific needs but the important thing to know (and that I did not know and finally found out) is that, once you specify the retention parameters in the Post Arguments field, the container will break unless you also specify the other two parameters (config.file and storage). I have no idea why that is, but that was my experience and it was making me crazy til it wasn't.Hopefully this will help the next person not struggle. Edited August 28Aug 28 by kcgodwins
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.