From f2c3a5557d79e7e8d7a20960b13984545d31c6db Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Mon, 12 Oct 2020 17:21:07 +0900 Subject: [PATCH] Deploy `systemd` config for `promtail-loki`. --- .../files/etc/systemd/system/promtail-loki.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cookbooks/loki/files/etc/systemd/system/promtail-loki.service diff --git a/cookbooks/loki/files/etc/systemd/system/promtail-loki.service b/cookbooks/loki/files/etc/systemd/system/promtail-loki.service new file mode 100644 index 0000000..48f8d37 --- /dev/null +++ b/cookbooks/loki/files/etc/systemd/system/promtail-loki.service @@ -0,0 +1,12 @@ +[Unit] +Description=Grafana Promtail +Documentation=https://github.com/grafana/loki +After=network-online.target + +[Service] +User=root +Restart=always +ExecStart=/usr/local/bin/promtail --config.file=/etc/promtail/loki.yaml + +[Install] +WantedBy=multi-user.target