New telegraf config (for ping)
This commit is contained in:
parent
589c7a2149
commit
8a5cf1db17
1 changed files with 17 additions and 34 deletions
|
@ -339,59 +339,42 @@ interfaces = ["enx001e0636be71"]
|
||||||
|
|
||||||
# Ping given url(s) and return statistics
|
# Ping given url(s) and return statistics
|
||||||
[[inputs.ping]]
|
[[inputs.ping]]
|
||||||
## Hosts to send ping packets to.
|
## List of urls to ping
|
||||||
urls = [
|
urls = [
|
||||||
"fritz-box.fzirker.lan",
|
"fritz-box.fzirker.lan",
|
||||||
"wlan-ap.fzirker.lan",
|
"wlan-ap.fzirker.lan",
|
||||||
"drax.fzirker.lan",
|
"drax.fzirker.lan",
|
||||||
"florianzirker.de",
|
"florianzirker.de",
|
||||||
"t-online.de",
|
"t-online.de",
|
||||||
"8.8.8.8", # dns of google
|
"8.8.8.8",
|
||||||
"4.2.2.2", # dns of level3
|
"4.2.2.2",
|
||||||
"example.com"
|
"example.com"
|
||||||
]
|
]
|
||||||
|
|
||||||
interval = "60s"
|
## Number of pings to send per collection (ping -c <COUNT>)
|
||||||
|
# count = 1
|
||||||
|
|
||||||
## Method used for sending pings, can be either "exec" or "native". When set
|
## Interval, in s, at which to ping. 0 == default (ping -i <PING_INTERVAL>)
|
||||||
## to "exec" the systems ping command will be executed. When set to "native"
|
## Not available in Windows.
|
||||||
## the plugin will send pings directly.
|
ping_interval = 60.0
|
||||||
##
|
|
||||||
## While the default is "exec" for backwards compatibility, new deployments
|
|
||||||
## are encouraged to use the "native" method for improved compatibility and
|
|
||||||
## performance.
|
|
||||||
method = "native"
|
|
||||||
|
|
||||||
## Number of ping packets to send per interval. Corresponds to the "-c"
|
## Per-ping timeout, in s. 0 == no timeout (ping -W <TIMEOUT>)
|
||||||
## option of the ping command.
|
|
||||||
count = 4
|
|
||||||
|
|
||||||
## Time to wait between sending ping packets in seconds. Operates like the
|
|
||||||
## "-i" option of the ping command.
|
|
||||||
ping_interval = 1.0
|
|
||||||
|
|
||||||
## If set, the time to wait for a ping response in seconds. Operates like
|
|
||||||
## the "-W" option of the ping command.
|
|
||||||
# timeout = 1.0
|
# timeout = 1.0
|
||||||
|
|
||||||
## If set, the total ping deadline, in seconds. Operates like the -w option
|
## Total-ping deadline, in s. 0 == no deadline (ping -w <DEADLINE>)
|
||||||
## of the ping command.
|
|
||||||
# deadline = 10
|
# deadline = 10
|
||||||
|
|
||||||
## Interface or source address to send ping from. Operates like the -I or -S
|
## Interface or source address to send ping from (ping -I <INTERFACE/SRC_ADDR>)
|
||||||
## option of the ping command.
|
## on Darwin and Freebsd only source address possible: (ping -S <SRC_ADDR>)
|
||||||
# interface = ""
|
# interface = ""
|
||||||
|
|
||||||
## Specify the ping executable binary.
|
## Specify the ping executable binary, default is "ping"
|
||||||
# binary = "ping"
|
# binary = "ping"
|
||||||
|
|
||||||
## Arguments for ping command. When arguments is not empty, the command from
|
## Arguments for ping command
|
||||||
## the binary option will be used and other options (ping_interval, timeout,
|
## when arguments is not empty, other options (ping_interval, timeout, etc) will be ignored
|
||||||
## etc) will be ignored.
|
|
||||||
# arguments = ["-c", "3"]
|
# arguments = ["-c", "3"]
|
||||||
|
|
||||||
## Use only IPv6 addresses when resolving a hostname.
|
|
||||||
# ipv6 = false
|
|
||||||
|
|
||||||
|
|
||||||
# # Monitor process cpu and memory usage
|
# # Monitor process cpu and memory usage
|
||||||
|
@ -543,10 +526,10 @@ interfaces = ["enx001e0636be71"]
|
||||||
|
|
||||||
|
|
||||||
# # Reads metrics from a SSL certificate
|
# # Reads metrics from a SSL certificate
|
||||||
[[inputs.x509_cert]]
|
#[[inputs.x509_cert]]
|
||||||
## List certificate sources
|
## List certificate sources
|
||||||
#sources = ["/etc/ssl/certs/ssl-cert-snakeoil.pem", "tcp://example.org:443"]
|
#sources = ["/etc/ssl/certs/ssl-cert-snakeoil.pem", "tcp://example.org:443"]
|
||||||
sources = ["https://florianzirker.de:443", "https://cloud.florianzirker.de:443", "https://wallabag.florianzirker.de:443", "https://gitea.florianzirker.de:443", "https://meet.florianzirker.de:443", "https://www.feuerwehr-kapsweyer.de:443"]
|
#sources = ["https://florianzirker.de:443", "https://cloud.florianzirker.de:443", "https://wallabag.florianzirker.de:443", "https://gitea.florianzirker.de:443", "https://meet.florianzirker.de:443", "https://www.feuerwehr-kapsweyer.de:443"]
|
||||||
|
|
||||||
## Timeout for SSL connection
|
## Timeout for SSL connection
|
||||||
# timeout = "5s"
|
# timeout = "5s"
|
||||||
|
|
Loading…
Reference in a new issue