1 2 3 4 5 6 7 8 9 10 11
[Unit] Description=Prometheus service After=network.target [Service] User=prometheus Group=prometheus ExecStart=/usr/bin/prometheus -storage.local.path=/var/lib/prometheus -config.file=/etc/prometheus.yml [Install] WantedBy=multi-user.target