summaryrefslogtreecommitdiff
path: root/modules/telegraf/templates/basic_ETL.toml
blob: 5af3c95fa18516a3a47ef0617f22a5aabac26be4 (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&current_weather=true" ]
  method = "GET"
  timeout = "5s"
  headers = { Content-Type = "application/json" }
  data_format = "json"
  json_query = "plcaeholder"  #"current_weather"
  fieldinclude = [] #["temperature", "windspeed"]
  #tag_keys = ["temperature", "windspeed"]

  # Measuremens for DB
  name_override = "Placeholder"  #"weather_metrics"


# Output Plugin: InfluxDB
[[outputs.influxdb]]
  urls = [] #["http://influxdb:8086"]
  database =  "placeholder" #"telegraf_weatherData"
  username = "TODO"
  password = "TODO"