-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.toml
33 lines (32 loc) · 1.52 KB
/
config.toml
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
[[customers]]
name = "servicex"
email = "user1@email.com"
# This is the value of the telegraf header (default header name is 'Service-API-Key')
api_key = "7ba4e75a"
# Name of the influxdb database where the metrics for this customer should be stored.
influx_db_name = "telegraf1"
# Max number of batches that will be kept in-memory for each of the 'influx_hosts'. Beyind that batches with be dropped
outgoing_queue_cap = 7000
# Influxdb-routed maintains a retry queue for batches that it fails to send to InfluxDB backends.
# retry_queue_cap is the max number of batches that can be kept in the retry queue (in-memory).
retry_queue_cap = 10
# list of InfluxDB hosts.
influx_hosts = ["http://127.0.0.1:9086", "http://127.0.0.1:8086"]
# The auth section needs to come at the end. This should be populated only if you enabled auth in influx-router
# and set auth-mode to 'from-config'. Additionally you need to enable authentication by setting the 'auth-enabled' option
# to the in the [http] section of the InfluxDB config.
[customers.auth]
# influxdb user. You need to grant the necessary privilege to 'user1' on 'telegraf1' database.
username = "user1"
# influxdb password for user user1
password = "password1"
[[customers]]
name = "servicey"
email = "user2@email.com"
api_key = "97dafb09"
influx_db_name = "telegraf2"
outgoing_queue_cap = 5000
influx_hosts = ["http://127.0.0.1:8086", "http://1.2.3.4:8086"]
[customers.auth]
username = "user2"
password = "password2"