From f4d181bca872e032e3de84b13aebf3bc95a37334 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 12 Feb 2023 19:26:48 +0900 Subject: [PATCH] Deploy `/etc/systemd/systemd/vector-prometheus.service`. --- .../systemd/system/vector-prometheus.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cookbooks/prometheus/files/etc/systemd/system/vector-prometheus.service diff --git a/cookbooks/prometheus/files/etc/systemd/system/vector-prometheus.service b/cookbooks/prometheus/files/etc/systemd/system/vector-prometheus.service new file mode 100644 index 0000000..b1d0eb7 --- /dev/null +++ b/cookbooks/prometheus/files/etc/systemd/system/vector-prometheus.service @@ -0,0 +1,17 @@ +[Unit] +Description=Vector +Documentation=https://vector.dev +After=network-online.target +Requires=network-online.target + +[Service] +ExecStart=/usr/bin/vector --config /etc/vector/prometheus.toml +ExecReload=/bin/kill -HUP $MAINPID +Restart=always +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=vector + +[Install] +WantedBy=multi-user.target +