[Unit] Description=Prometheus Server Documentation=https://prometheus.io/docs/introduction/overview/ After=network-online.target [Service] User=prometheus Restart=on-failure ExecStart=/usr/bin/prometheus \ -config.file=/etc/prometheus/prometheus.yml \ -storage.local.path=/var/lib/prometheus/ [Install] WantedBy=multi-user.target