summarylogtreecommitdiffstats
path: root/telegraf.service
diff options
context:
space:
mode:
Diffstat (limited to 'telegraf.service')
-rw-r--r--telegraf.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/telegraf.service b/telegraf.service
new file mode 100644
index 000000000000..e875afddf410
--- /dev/null
+++ b/telegraf.service
@@ -0,0 +1,14 @@
+# If you modify this, please also make sure to edit init.sh
+
+[Unit]
+Description=Server-level metric gathering agent for InfluxDB
+After=network.target
+
+[Service]
+User=telegraf
+Group=telegraf
+ExecStart=/usr/bin/telegraf -config /etc/telegraf.conf
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target