add openweather config

This commit is contained in:
Kameron Kenny 2024-06-26 14:37:16 -04:00
parent ad1ced3c8d
commit b153a41061
No known key found for this signature in database
GPG Key ID: E5006629839D2276
1 changed files with 2 additions and 19 deletions

View File

@ -40,27 +40,10 @@
[[inputs.http]] [[inputs.http]]
name = "OpenWeather" name = "OpenWeather"
servers = [ urls = [
"https://api.openweathermap.org/data/3.0/onecall?lat=39.918449474871075&lon=-85.92342403177487&appid=eff13820392937489d74a4560e9bff1e" "https://api.openweathermap.org/data/3.0/onecall?lat=39.918449474871075&lon=-85.92342403177487&appid=eff13820392937489d74a4560e9bff1e"
] ]
response_timeout = "5s"
method = "GET" method = "GET"
# tag_keys = [ data_format = "json"
# "my_tag_1",
# "my_tag_2"
# ]
# tls_ca = "/etc/telegraf/ca.pem"
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
# insecure_skip_verify = false
# [inputs.httpjson.parameters]
# event_type = "cpu_spike"
# threshold = "0.75"
# [inputs.httpjson.headers]
# X-Auth-Token = "my-xauth-token"
# apiVersion = "v1"