Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to extend Grafana/Prometheus history retention?

Featured Replies

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.

 

 

image.png

Edited by rosydog
double image removed

  • 4 years later...

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=50GB

Then 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.

2026-08-28 09_55_21-Window.png

Edited 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.