diff --git a/cookbooks/prometheus/files/etc/systemd/system/alertmanager.service b/cookbooks/prometheus/files/etc/systemd/system/alertmanager.service new file mode 100644 index 0000000..c272073 --- /dev/null +++ b/cookbooks/prometheus/files/etc/systemd/system/alertmanager.service @@ -0,0 +1,11 @@ +[Unit] +Description=Alertmanager +Wants=network-online.target +After=network-online.target + +[Service] +Type=simple +ExecStart=/usr/local/bin/alertmanager --config.file /etc/prometheus.d/alertmanager.yml + +[Install] +WantedBy=multi-user.target