Upgrade Prometheus Version

47 views
Skip to first unread message

Julian Ade Putra

unread,
Feb 25, 2020, 11:57:26 PM2/25/20
to Prometheus Users
Hello,

I am new in Prometheus and Grafana. 
How to upgrade Prometheus version. Currently i am using version 2.15.0-rc.0. I want to upgrade to latest version 2.16.0 without losing existing data. 

Existing process prometheus running with below parameters :

root      57545      1 11 Feb22 ?        10:43:01 ./prometheus --config.file=prometheus.yml --storage.tsdb.retention.time=30d --storage.tsdb.path=data/ --web.enable-admin-api --web.enable-lifecycle

Thanks,

Julian Ade Putra

unread,
Feb 26, 2020, 5:45:16 AM2/26/20
to Prometheus Users
Got it... I have updated prometheus version into latest version.

Thanks.

rs vas

unread,
Feb 26, 2020, 10:33:44 AM2/26/20
to Julian Ade Putra, Prometheus Users
Hi Julian, Can you please share the steps or share the references you followed for the upgrade!

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/8d664c32-9153-4cdb-b5b6-70bf17f1632d%40googlegroups.com.

Christian Hoffmann

unread,
Feb 26, 2020, 12:42:21 PM2/26/20
to Julian Ade Putra, Prometheus Users
Hi,

Side note:
Looks like you are running Prometheus as root. This should not be necessary and based on common security principles such as Least Privilege, you should probably look into changing this.

Just creating a user, chowning your data files and starting Prometheus with the new user should usually work.

Kind regards,
Christian

Julian Ade Putra

unread,
Feb 27, 2020, 8:09:55 AM2/27/20
to Prometheus Users
Hi rs vas,

In my case : 
  1. Download latest version
  2. Backup existing version
  3. Stop existing Prometheus
  4. Copy promethues.yml file and /data from existing version to latest version directory
  5. Start latest version

Good luck!


On Wednesday, 26 February 2020 22:33:44 UTC+7, rs vas wrote:
Hi Julian, Can you please share the steps or share the references you followed for the upgrade!

On Wed, Feb 26, 2020 at 3:45 AM Julian Ade Putra <jad...@gmail.com> wrote:
Got it... I have updated prometheus version into latest version.

Thanks.

On Wednesday, 26 February 2020 11:57:26 UTC+7, Julian Ade Putra wrote:
Hello,

I am new in Prometheus and Grafana. 
How to upgrade Prometheus version. Currently i am using version 2.15.0-rc.0. I want to upgrade to latest version 2.16.0 without losing existing data. 

Existing process prometheus running with below parameters :

root      57545      1 11 Feb22 ?        10:43:01 ./prometheus --config.file=prometheus.yml --storage.tsdb.retention.time=30d --storage.tsdb.path=data/ --web.enable-admin-api --web.enable-lifecycle

Thanks,

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.

Julian Ade Putra

unread,
Feb 27, 2020, 8:11:13 AM2/27/20
to Prometheus Users
Hi Christian,

Thank you so much for the recommendation! Appreciate it. I will do it :)

Regards,
Julian
Reply all
Reply to author
Forward
0 new messages