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
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
Reply all
Reply to author
Forward
0 new messages