blob: 02806c2382c6dd5671fa001475b42c0609fef4b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Telegraf Configuration
[agent]
interval = "10s" # Fetch data every 10 seconds
debug = true
# Input Plugin: HTTP
[[inputs.http]]
urls = [] #[ "https://api.open-meteo.com/v1/forecast?latitude=58.38&longitude=26.72¤t_weather=true" ]
method = "GET"
timeout = #"5s"
headers = { Content-Type = "application/json" }
data_format = "json"
json_query = #"current_weather"
fieldinclude = [] #["temperature", "windspeed"]
#tag_keys = ["temperature", "windspeed"]
# Measuremens for DB
name_override = "weather_metrics"
# Output Plugin: InfluxDB
[[outputs.influxdb]]
urls = [] #["http://influxdb:8086"]
database = "placeholder" #"telegraf_weatherData"
username = "TODO"
password = "TODO"
|