39 lines
1.3 KiB
TOML
39 lines
1.3 KiB
TOML
# Name of the HTTP server, used for display purposes only
|
|
[[http]]
|
|
name = "influx-http"
|
|
|
|
# TCP address to bind to, for HTTP server
|
|
bind-addr = "influx1_ip:9096"
|
|
|
|
# Array of InfluxDB instances to use as backends for Relay
|
|
# name: name of the backend, used for display purposes only.
|
|
# location: full URL of the /write endpoint of the backend
|
|
# timeout: Go-parseable time duration. Fail writes if incomplete in this time.
|
|
# skip-tls-verification: skip verification for HTTPS location. WARNING: it's insecure. Don't use in production.
|
|
output = [
|
|
{ name="local-influx1", location = "http://127.0.0.1:8086/write", timeout="10s" },
|
|
{ name="remote-influx2", location = "http://influx2_ip:8086/write", timeout="10s" },
|
|
]
|
|
|
|
[[udp]]
|
|
# Name of the UDP server, used for display purposes only
|
|
name = "influx-udp"
|
|
|
|
# UDP address to bind to
|
|
bind-addr = "127.0.0.1:9096"
|
|
|
|
# Socket buffer size for incoming connections
|
|
read-buffer = 0 # default
|
|
|
|
# Precision to use for timestamps
|
|
precision = "n" # Can be n, u, ms, s, m, h
|
|
|
|
# Array of InfluxDB UDP instances to use as backends for Relay
|
|
# name: name of the backend, used for display purposes only.
|
|
# location: host and port of backend.
|
|
# mtu: maximum output payload size
|
|
output = [
|
|
{ name="local-influx1-udp", location="127.0.0.1:8089", mtu=512 },
|
|
{ name="remote-influx2-udp", location="influx2_ip:8089", mtu=512 },
|
|
]
|