[Unit] Description=Prometheus Server After=syslog.target network.target [Service] Type=simple RemainAfterExit=no WorkingDirectory=/opt/prometheus User=prometheus Group=prometheus ExecStart=/opt/prometheus/prometheus --config.file=/opt/prometheus/prometheus.yml --log.level info [Install] WantedBy=multi-user.target