2022-04-15 13:41:02 +08:00
|
|
|
[global]
|
2022-04-13 23:56:04 +08:00
|
|
|
# whether print configs
|
2022-04-15 13:41:02 +08:00
|
|
|
print_configs = false
|
2022-04-15 13:42:18 +08:00
|
|
|
|
2022-04-13 20:12:20 +08:00
|
|
|
# add label(agent_hostname) to series
|
2022-04-27 17:54:11 +08:00
|
|
|
# "" -> auto detect hostname
|
|
|
|
# "xx" -> use specified string xx
|
|
|
|
# "$hostname" -> auto detect hostname
|
|
|
|
# "$ip" -> auto detect ip
|
|
|
|
# "$hostname-$ip" -> auto detect hostname and ip to replace the vars
|
2022-04-15 13:41:02 +08:00
|
|
|
hostname = ""
|
2022-04-15 13:42:18 +08:00
|
|
|
|
2022-04-13 23:56:04 +08:00
|
|
|
# will not add label(agent_hostname) if true
|
2022-04-15 13:41:02 +08:00
|
|
|
omit_hostname = false
|
2022-04-15 13:42:18 +08:00
|
|
|
|
2022-04-14 18:34:27 +08:00
|
|
|
# s | ms
|
2022-04-15 13:41:02 +08:00
|
|
|
precision = "ms"
|
2022-04-15 13:42:18 +08:00
|
|
|
|
2022-04-14 23:00:39 +08:00
|
|
|
# global collect interval
|
2022-04-17 12:54:32 +08:00
|
|
|
interval = 15
|
2022-04-13 14:09:33 +08:00
|
|
|
|
2022-04-15 23:06:13 +08:00
|
|
|
# [global.labels]
|
|
|
|
# region = "shanghai"
|
|
|
|
# env = "localhost"
|
2022-04-13 18:16:16 +08:00
|
|
|
|
2022-04-15 13:41:02 +08:00
|
|
|
[writer_opt]
|
2022-04-13 23:56:04 +08:00
|
|
|
# default: 2000
|
2022-04-15 13:41:02 +08:00
|
|
|
batch = 2000
|
2022-04-16 23:14:48 +08:00
|
|
|
# channel(as queue) size
|
2022-04-16 16:52:23 +08:00
|
|
|
chan_size = 10000
|
2022-04-13 23:56:04 +08:00
|
|
|
|
2022-04-15 13:41:02 +08:00
|
|
|
[[writers]]
|
|
|
|
url = "http://127.0.0.1:19000/prometheus/v1/write"
|
2022-04-15 13:42:18 +08:00
|
|
|
|
2022-04-13 18:16:16 +08:00
|
|
|
# Basic auth username
|
2022-04-15 13:41:02 +08:00
|
|
|
basic_auth_user = ""
|
2022-04-15 13:42:18 +08:00
|
|
|
|
2022-04-13 18:16:16 +08:00
|
|
|
# Basic auth password
|
2022-04-15 13:41:02 +08:00
|
|
|
basic_auth_pass = ""
|
2022-04-15 13:42:18 +08:00
|
|
|
|
2022-04-13 18:16:16 +08:00
|
|
|
# timeout settings, unit: ms
|
2022-05-28 09:24:30 +08:00
|
|
|
timeout = 5000
|
|
|
|
dial_timeout = 2500
|
2022-04-15 13:41:02 +08:00
|
|
|
max_idle_conns_per_host = 100
|