forked from veepee-oss/influxdb-relay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kapacitor.conf
34 lines (29 loc) · 1.1 KB
/
kapacitor.conf
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
# The relay can also be used to dual write data to Kapacitor
#
# There are a few advantages of using the relay instead of relying on InfluxDB subscriptions
#
# 1. Traffic is HTTP/TCP meaning you don't have to worry about dropped UDP packets
# 2. Less load on InfluxDB since it doesn't have to fork the data.
# 3. Slighly lower latency since there is one less hop.
#
# Kapacitor is wire compatible with InfluxDB for writes.
# This means you can add a Kapacitor instance to the output list as if it were an InfluxDB instance.
#
# This example config sends all writes to
# two InfluxDB hosts and a single Kapacitor host.
[[http]]
name = "kapacitor-http"
bind-addr = "0.0.0.0:9096"
default-retention-policy = "autogen"
[[http.output]]
name = "influxdb1"
location = "http://influxdb1:8086/"
endpoints = {write="/write", ping="/ping", query="/query"}
[[http.output]]
name = "influxdb2"
location = "http://influxdb2:8086/"
endpoints = {write="/write", ping="/ping", query="/query"}
[[http.output]]
name = "kapacitor1"
location = "http://kapacitor1:9092/"
endpoints = {write="/write", ping="/kapacitor/v1/ping", query="/query"}