-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtelegraf.conf
More file actions
34 lines (30 loc) · 907 Bytes
/
Copy pathtelegraf.conf
File metadata and controls
34 lines (30 loc) · 907 Bytes
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
27
28
29
30
31
32
33
34
[global_tags]
[agent]
interval = "60s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
hostname = "192.xxx.0.xxx"
omit_hostname = false
[[outputs.influxdb_v2]]
urls = ["http://influxdb:8086"]
token = "${DOCKER_INFLUXDB_INIT_ADMIN_TOKEN}"
organization = "private"
bucket = "${DOCKER_INFLUXDB_INIT_BUCKET}"
timeout = "5s"
[[inputs.http]]
## One or more URLs from which to read formatted metrics
interval = "360s"
urls = [
"https://api.openweathermap.org/data/2.5/weather?lat=${OPEN_WEATHER_LAT}&lon=${OPEN_WEATHER_LON}&units=metric&appid=${OPEN_WEATHER_API_TOKEN}",
]
#HTTP method
method = "GET"
timeout = "15s"
data_format = "json"
name_override = "weather_test"
fielddrop = ["sys_id", "weather_0_id", "id","coord_lat","coord_lon", "cod"]