Prometheus installation on CentOS 7

  • Install Prometheus
cd /opt
tar -zxvf /root/prometheus-1.7.1.linux-amd64.tar.gz
ln -s prometheus-1.7.1.linux-amd64 prometheus
useradd prometheus
chown prometheus:prometheus /opt/prometheus-1.7.1.linux-amd64/ -R
  • Create Systemd script
  • # /etc/systemd/system/prometheus.service
    Description=Prometheus Server
    ExecStart=/opt/prometheus/prometheus \
      -config.file=/opt/prometheus/prometheus.yml \
  • Run prometheus
    ln -s /opt/prometheus/prometheus.yml /etc
    systemctl daemon-reload
    systemctl start prometheus
    systemctl enable prometheus
  • Disable firewall
  • systemctl stop firewalld
    systemctl disable firewalld
  • Access prometheus on http://prometheus_host:9090/ (Warning: please keep web browser and server time synchronized via ntp or you might be unable to see anything).
BTW - I (34 y old linux sysadmin from Prague - EU) is 
looking for a remote full-time job - My offer here:

(updated: July 2018)