Hi All,
I am new to Prometheus and noticed that the data in my Prometheus Server is defaulted to 15days and we would like to have the data for more than 1Y.
I have updated my configuration to ,
[Unit]
Description=Prometheus Monitoring
Wants=network-online.target
After=network-online.target
[Service]
User=prometheus
Group=prometheus
Type=simple
ExecStart=/usr/local/bin/prometheus \
--config.file /etc/prometheus/prometheus.yml \
--storage.tsdb.path /var/lib/prometheus/ \
--web.console.templates=/etc/prometheus/consoles \
--web.console.libraries=/etc/prometheus/console_libraries
ExecReload=/bin/kill -HUP $MAINPID
--storage.tsdb.retention.time=1y
[Install]
WantedBy=multi-user.target
~
~
Then i restarted Prometheus Service in Ubuntu
Navigated to status >> Runtime and Build Information i see
Storage Retention as 15 Days
Also, navigated to command line flags and i still see
storage.tsdb.retention : 0s
storage.tsdb.retention.size : 0s
storage.tsdb.retention.time : 0s.
Is there something that i am missing?
Regards
Aravind Viswanathan.