diff --git a/cookbooks/prometheus/files/etc/systemd/system/prometheus.service b/cookbooks/prometheus/files/etc/systemd/system/prometheus.service new file mode 100644 index 0000000..8aa3070 --- /dev/null +++ b/cookbooks/prometheus/files/etc/systemd/system/prometheus.service @@ -0,0 +1,13 @@ +[Unit] +Description=Prometheus Server +Documentation=https://prometheus.io/docs/introduction/overview/ +After=network-online.target + +[Service] +Restart=on-failure +ExecStart=/usr/local/bin/prometheus \ + --config.file=/etc/prometheus.d/prometheus.yml \ + --storage.tsdb.path=/var/opt/prometheus/ + +[Install] +WantedBy=multi-user.target