Update Telegraf Net

This commit is contained in:
Florian Zirker 2022-09-12 14:25:27 +02:00
parent d26742994a
commit a3ed85b9d6

View file

@ -153,110 +153,3 @@
# ##
# # address = "127.0.0.1:7634"
# # devices = ["sda", "*"]
# HTTP/HTTPS request given an address a method and a timeout
[[inputs.http_response]]
## Deprecated in 1.12, use 'urls'
## Server address (default http://localhost)
# address = "http://localhost"
## List of urls to query.
urls = [
"https://florianzirker.de",
"https://cloud.florianzirker.de/login",
"https://wallabag.florianzirker.de/login",
"https://gitea.florianzirker.de/api/v1/version/",
"https://meet.florianzirker.de/",
#"https://www.feuerwehr-kapsweyer.de",
"https://ping.feuerwehr-kapsweyer.de",
"http://ping.feuerwehr-kapsweyer.de",
"http://portainer.lan",
"http://gpxviewer.lan",
"http://traefik.lan/dashboard/",
"http://heimdall.lan",
"http://monitoring.lan/login",
#"http://solarmaxpi.zirker.lan"
]
interval = "60s"
## Set http_proxy (telegraf uses the system wide proxy settings if it's is not set)
# http_proxy = "http://localhost:8888"
## Set response_timeout (default 5 seconds)
response_timeout = "10s"
## HTTP Request Method
method = "GET"
## Whether to follow redirects from the server (defaults to false)
follow_redirects = false
## Optional HTTP Request Body
# body = '''
# {'fake':'data'}
# '''
## Optional substring or regex match in body of the response
# response_string_match = "\"service_status\": \"up\""
# response_string_match = "ok"
# response_string_match = "\".*_status\".?:.?\"up\""
## Optional TLS Config
# tls_ca = "/etc/telegraf/ca.pem"
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
## Use TLS but skip chain & host verification
# insecure_skip_verify = false
## HTTP Request Headers (all values must be strings)
# [inputs.http_response.headers]
# Host = "github.com"
## Interface to use when dialing an address
# interface = "eth0"
# # Collect statistics about itself
# [[inputs.internal]]
# ## If true, collect telegraf memory stats.
# # collect_memstats = true
# Ping given url(s) and return statistics
[[inputs.ping]]
## List of urls to ping
urls = [
"fritz-box.lan",
"wlan-ap.lan",
"drax.lan",
"florianzirker.de",
"t-online.de",
"8.8.8.8",
"4.2.2.2",
"9.9.9.9",
"example.com"
]
## 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 = 60.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"]