add openweather config
This commit is contained in:
parent
ad1ced3c8d
commit
b153a41061
|
@ -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"
|
|
||||||
|
|
Loading…
Reference in New Issue