From 970a9617eb0ee440761d5bd383997e48bc6d3d3c Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Thu, 16 Feb 2023 21:27:29 +0900 Subject: [PATCH] Deploy `/etc/systemd/system/alertmanager.service`. --- .../files/etc/systemd/system/alertmanager.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cookbooks/prometheus/files/etc/systemd/system/alertmanager.service 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