Increase Prometheus Server Retention Period || Windows Server
49 views
Skip to first unread message
Vivek Kumar Sinha
unread,
Jan 9, 2024, 8:12:34 AM1/9/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Prometheus Users
Hi Team,
I got a request to increase retention period of already installed/running Prometheus server from default to 60 days. Platform: Windows Server Execution: NSSM Prometheus Start Batch FIle: nssm.exe install Prometheus D:\Observability\Prometheus\prometheus.exe "--web.listen-address=:9191" nssm.exe set Prometheus Description "Prometheus metrics collection and monitoring service." nssm.exe start Prometheus What I have done so far as a Windows Administrator: a) nssm.exe restart Prometheus "--storage.tsdb.retention.time=60d". (In days) b) nssm.exe restart Prometheus "--storage.tsdb.retention.time=5184000" ( In seconds) c) Updated batch file and restarted the service nssm.exe install Prometheus D:\Observability\Prometheus\prometheus.exe "--web.listen-address=:9191 --storage.tsdb.retention.time=60d" nssm.exe set Prometheus Description "Prometheus metrics collection and monitoring service." nssm.exe start Prometheus But no changes in retention period Please help me to fix the issue as early as possible. Much Appreciated