forked from influxdata/influxdb-relay
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsample.toml
63 lines (52 loc) · 1.68 KB
/
sample.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# [[http]]
# name = "example-http"
# bind-addr = "127.0.0.1:9096"
# output = [
# { name="local1", location = "http://127.0.0.1:8086/write" },
# { name="local2", location = "http://127.0.0.1:7086/write" },
# ]
#
# [[udp]]
# name = "example-udp"
# bind-addr = "127.0.0.1:9096"
# read-buffer = 0 # default
# output = [
# { name="local1", location="127.0.0.1:8089", mtu=512 },
# { name="local2", location="127.0.0.1:7089", mtu=1024 },
# ]
# [[beringei]]
# name = "example-beringei"
# bind-addr = "0.0.0.0:9097"
# amqp-url = "amqp://guest:[email protected]:5672/"
# beringei-update-url = "http://127.0.0.1:9990/update"
# output = [
# { name="local1", location="127.0.0.1:9990"}
# ]
# graphite-output = "127.0.0.1:2003"
[[graphite]]
name = "example-graphite"
bind-addr = "0.0.0.0:9097"
# output is a list of graphite backends
output = [
{ name="local1", location="graphite:2003"}
]
# metering will send stats for samples/org/machine
# you have to also set amqp-url for metering to work
enable-metering = false
# Metering
# You have to set both amqp-url and cron-schedule to periodically
# push metrics to rabbitmq
amqp-url = "amqp://guest:guest@rabbitmq:5672/"
# cron-schedule could be in different formats
# For example:
# cron-schedule = "@every 5s"
# cron-schedule = "@every 1m"
# cron-schedule = "@hourly"
# cron-schedule = "0 30 * * * *"
cron-schedule = "@every 10s"
# drop-unauthorized is used when data are coming to gocky having a source
# different than traefik (e.g. unauthorized)
# if drop-unauthorized is true, then gocky will return forbidden error
# if set to false, it will write data to graphite in the form of
# Unauthorized_machineID.cpu.0.idle
drop-unauthorized = false