How do I install the latest version of Prometheus on 16.04?

mwinfie

I'm having trouble installing the latest version of Prometheus on a fresh install of Ubuntu 16.04. All the guides that I can find are for 14.04 and the move from systemV to systemd makes these guides incompatible (or at least incomplete) when setting it up on 16.04.

I can install Prometheus from apt, but it installs version 0.16.2 and the current version is 1.0.2.

I've been using the official prometheus.io install guide and this guide on Digital Ocean.

Can anyone help me with the systemd setup? I'm relatively experienced with Ubuntu, but the systemd change is throwing me a curve ball.

lander2k2

The following unit file worked for me when installing the prometheus server version 1.x (as opposed to an exporter).

# /etc/systemd/system/prometheus.service
[Unit]
Description=Prometheus Server
Documentation=https://prometheus.io/docs/introduction/overview/
After=network-online.target

[Service]
User=prometheus
Restart=on-failure
ExecStart=/usr/local/bin/prometheus-1.1.2.linux-amd64/prometheus \
                                -config.file=/etc/prometheus/prometheus.yml \
                                -storage.local.path=/var/lib/prometheus/data

[Install]
WantedBy=multi-user.target

This assumes, of course, that you've created a prometheus user and granted necessary permissions.

Then use the commands mentioned by WInfly.

$ sudo systemctl daemon-reload
$ sudo systemctl enable prometheus
$ sudo systemctl start prometheus
$ sudo systemctl status prometheus

I have found the following helpful:

Prometheus: https://blog.svedr.in/posts/prometheus-quick-start.html

Man pages for unit file directives: https://www.freedesktop.org/software/systemd/man/systemd.directives.html

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I install the latest version of Matlab?

From Dev

How do I install the latest version of rgl?

From Dev

How do I install the latest version of Matlab?

From Dev

How do I install the latest version of cmake from the command line?

From Dev

How do I install the latest version of Git with apt?

From Dev

How do I install the latest version of Git with apt?

From Dev

How do I install the latest version of packages in Ubuntu?

From Dev

How do I install the latest version of cmake from the command line?

From Dev

How do I install the latest version of node.js?

From Dev

How do I install and use the latest version of GNOME?

From Dev

How do I install the latest version of Java on Ubuntu 12.04 LTS?

From Dev

How do I install the latest stable version of Firefox?

From Dev

How can I install the latest version of Tor?

From Dev

How can I install the latest version of Tor?

From Dev

How can I install the latest version of libmtp?

From Dev

How do I download always the latest version of the programs when I use apt-get install [program]?

From Java

How do I update zsh to the latest version?

From Dev

How do I upgrade to the latest version of Shotwell?

From Dev

How do I update to the latest version of SASS?

From Dev

How do I get Portage to always select to install and upgrade to the latest available version of selected software?

From Dev

How do I install the latest version of VirtualBox on Ubuntu 14.04 (Trusty Tahr) LTS?

From Dev

How do I install latest latte-dock development version 0.10?

From Dev

How do I install latest Graphviz?

From Dev

How do I install latest Graphviz?

From Dev

How do I install the latest gcc on FreeBSD?

From Dev

How do I install Muvizu on Ubuntu 14,04 LTS?

From Dev

How do you install the latest version of GNU Octave?

From Dev

How do you install the latest version of GNU Octave?

From Dev

How do I upgrade PHP version to the latest stable released version?

Related Related

  1. 1

    How do I install the latest version of Matlab?

  2. 2

    How do I install the latest version of rgl?

  3. 3

    How do I install the latest version of Matlab?

  4. 4

    How do I install the latest version of cmake from the command line?

  5. 5

    How do I install the latest version of Git with apt?

  6. 6

    How do I install the latest version of Git with apt?

  7. 7

    How do I install the latest version of packages in Ubuntu?

  8. 8

    How do I install the latest version of cmake from the command line?

  9. 9

    How do I install the latest version of node.js?

  10. 10

    How do I install and use the latest version of GNOME?

  11. 11

    How do I install the latest version of Java on Ubuntu 12.04 LTS?

  12. 12

    How do I install the latest stable version of Firefox?

  13. 13

    How can I install the latest version of Tor?

  14. 14

    How can I install the latest version of Tor?

  15. 15

    How can I install the latest version of libmtp?

  16. 16

    How do I download always the latest version of the programs when I use apt-get install [program]?

  17. 17

    How do I update zsh to the latest version?

  18. 18

    How do I upgrade to the latest version of Shotwell?

  19. 19

    How do I update to the latest version of SASS?

  20. 20

    How do I get Portage to always select to install and upgrade to the latest available version of selected software?

  21. 21

    How do I install the latest version of VirtualBox on Ubuntu 14.04 (Trusty Tahr) LTS?

  22. 22

    How do I install latest latte-dock development version 0.10?

  23. 23

    How do I install latest Graphviz?

  24. 24

    How do I install latest Graphviz?

  25. 25

    How do I install the latest gcc on FreeBSD?

  26. 26

    How do I install Muvizu on Ubuntu 14,04 LTS?

  27. 27

    How do you install the latest version of GNU Octave?

  28. 28

    How do you install the latest version of GNU Octave?

  29. 29

    How do I upgrade PHP version to the latest stable released version?

HotTag

Archive