influxdb_telegraf/telegraf/telegraf.conf

48 lines
1.3 KiB
Plaintext

# Configuration for telegraf agent
[agent]
interval = "90s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
# quiet = false
# logtarget = "file"
# logfile = ""
# logfile_rotation_interval = "0d"
# logfile_rotation_max_size = "0MB"
# logfile_rotation_max_archives = 5
# log_with_timezone = ""
hostname = ""
omit_hostname = false
[[outputs.influxdb_v2]]
urls = ["http://influxdb.in.thelinuxpro.net:8086"]
token = "$INFLUX_TOKEN"
organization = "darkstar"
bucket = "openweather"
# bucket_tag = ""
# exclude_bucket_tag = false
# timeout = "5s"
# http_headers = {"X-Special-Header" = "Special-Value"}
# http_proxy = "http://corporate.proxy:3128"
# user_agent = "telegraf"
# content_encoding = "gzip"
# influx_uint_support = false
# tls_ca = "/etc/telegraf/ca.pem"
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
# insecure_skip_verify = false
# Read flattened metrics from one or more JSON HTTP endpoints
[[inputs.http]]
urls = [
"https://api.openweathermap.org/data/3.0/onecall?lat=39.918449474871075&lon=-85.92342403177487&appid=eff13820392937489d74a4560e9bff1e&units=imperial"
]
method = "GET"
data_format = "json"