telegraf
Contents
archlinux install telegraf
|
|
配置文件
/etc/telegraf/telegraf.conf
[global_tags]
[agent]
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
hostname = ""
omit_hostname = false
[[outputs.influxdb]]
urls = ["http://influxdb.wiloon.com:8086"]
database = "db0"
[[inputs.cpu]]
percpu = true
totalcpu = true
collect_cpu_time = false
report_active = false
[[inputs.disk]]
ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs"]
[[inputs.diskio]]
[[inputs.kernel]]
[[inputs.mem]]
[[inputs.processes]]
[[inputs.swap]]
[[inputs.system]]
[[inputs.net]]
[[inputs.netstat]]
|
|
运行在容器里的telegraf监控宿主机资源 https://www.jacobtomlinson.co.uk/monitoring/2016/06/23/running-telegraf-inside-a-container/
hsperfdata
https://github.com/njwhite/telegraf/tree/master/plugins/inputs/hsperfdata
windows os
choco install telegraf
配置文件
C:\Program Files\telegraf\telegraf.conf
install as windows serivce, choco安装的telegraf默认安装成service了
https://docs.influxdata.com/telegraf/v1.14/administration/windows_service/
C:\"Program Files"\Telegraf\telegraf.exe --service install
net start telegraf
telegraf influxdb_listener
|
|
ping plugin
https://github.com/influxdata/telegraf/blob/release-1.10/plugins/inputs/ping/README.md
[[inputs.ping]]
## List of urls to ping
urls = ["example.org"]
## Number of pings to send per collection (ping -c <COUNT>)
# count = 1
## Interval, in s, at which to ping. 0 == default (ping -i <PING_INTERVAL>)
## Not available in Windows.
# ping_interval = 1.0
## Per-ping timeout, in s. 0 == no timeout (ping -W <TIMEOUT>)
# timeout = 1.0
## Total-ping deadline, in s. 0 == no deadline (ping -w <DEADLINE>)
# deadline = 10
## Interface or source address to send ping from (ping -I <INTERFACE/SRC_ADDR>)
## on Darwin and Freebsd only source address possible: (ping -S <SRC_ADDR>)
# interface = ""
## Specify the ping executable binary, default is "ping"
# binary = "ping"
## Arguments for ping command
## when arguments is not empty, other options (ping_interval, timeout, etc) will be ignored
# arguments = ["-c", "3"]
Author w1100n
LastMod 2019-02-16