add telegraf.service
This commit is contained in:
parent
5f05e8fcaf
commit
022fef2b9e
|
@ -79,7 +79,7 @@ services:
|
|||
- "server"
|
||||
|
||||
nwebapi:
|
||||
image: ulric2019/nightingale:0.4
|
||||
image: ulric2019/nightingale:5.0.0-ga-01
|
||||
container_name: nwebapi
|
||||
hostname: nwebapi
|
||||
restart: always
|
||||
|
@ -107,7 +107,7 @@ services:
|
|||
- "webapi"
|
||||
|
||||
nserver:
|
||||
image: ulric2019/nightingale:0.4
|
||||
image: ulric2019/nightingale:5.0.0-ga-01
|
||||
container_name: nserver
|
||||
hostname: nserver
|
||||
restart: always
|
||||
|
|
|
@ -5280,8 +5280,7 @@ separator = "_"
|
|||
|
||||
|
||||
# # Read TCP metrics such as established, time wait and sockets counts.
|
||||
# [[inputs.netstat]]
|
||||
# # no configuration
|
||||
[[inputs.netstat]]
|
||||
|
||||
|
||||
# # Read per-mount NFS client metrics from /proc/self/mountstats
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
[Unit]
|
||||
Description="telegraf"
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
ExecStart=/opt/telegraf/usr/bin/telegraf --config etc/telegraf/telegraf.conf --output-filter opentsdb
|
||||
WorkingDirectory=/opt/telegraf
|
||||
|
||||
Restart=on-failure
|
||||
SuccessExitStatus=0
|
||||
LimitNOFILE=65536
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=telegraf
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue