Skip to content

Commit 5bbdec6

Browse files
lesamdocmerlin
andauthored
chore: add to default config (#2561)
Co-authored-by: J. Emrys Landivar <landivar@gmail.com>
1 parent a6a0c27 commit 5bbdec6

1 file changed

Lines changed: 46 additions & 4 deletions

File tree

etc/kapacitor/kapacitor.conf

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,35 @@ skip-config-overrides = false
1414
# then the retention policy will be set to this value
1515
default-retention-policy = ""
1616

17+
[auth]
18+
# Auth config for kapacitor
19+
enabled = false
20+
# User permissions cache expiration time.
21+
cache-expiration = "10m"
22+
# Cost to compute bcrypt password hashes.
23+
# bcrypt rounds = 2^cost
24+
bcrypt-cost = 10
25+
# Address of a meta server.
26+
# If empty then meta is not used as a user backend.
27+
# host:port
28+
meta-addr = "172.17.0.2:8091"
29+
meta-use-tls = false
30+
# Absolute path to PEM encoded Certificate Authority (CA) file.
31+
# A CA can be provided without a key/certificate pair.
32+
meta-ca = "/etc/kapacitor/ca.pem"
33+
# Absolute paths to PEM encoded private key and server certificate files.
34+
meta-cert = "/etc/kapacitor/cert.pem"
35+
meta-key = "/etc/kapacitor/key.pem"
36+
meta-insecure-skip-verify = false
37+
1738
[http]
1839
# HTTP API Server for Kapacitor
1940
# This server is always on,
2041
# it serves both as a write endpoint
2142
# and as the API endpoint for all other
2243
# Kapacitor calls.
2344
bind-address = ":9092"
45+
auth-enabled = false
2446
log-enabled = true
2547
write-tracing = false
2648
pprof-enabled = false
@@ -99,6 +121,21 @@ default-retention-policy = ""
99121
# The message of the alert. INTERVAL will be replaced by the interval.
100122
message = "{{ .ID }} is {{ if eq .Level \"OK\" }}alive{{ else }}dead{{ end }}: {{ index .Fields \"collected\" | printf \"%0.3f\" }} points/INTERVAL."
101123

124+
[fluxtask]
125+
# Configure flux tasks for kapacitor
126+
enabled = false
127+
# The influxdb instance to store historical task run data (the 'name' from the influxdb config section)
128+
# Not recommended: use "none" to turn off historical task run data storage.
129+
task-run-influxdb = "localhost"
130+
# The bucket (for InfluxDB 1.x, use "db/rp" format) to store historical task run data.
131+
# This bucket or database must already be created in the task-run-influxdb
132+
task-run-bucket = "taskrun"
133+
# The org or orgid if storing historical task run data in InfluxDB 2.x or InfluxDB Cloud
134+
task-run-org = ""
135+
task-run-orgid = ""
136+
# The measurement name for the historical task run data
137+
task-run-measurement = "runs"
138+
102139

103140
# Multiple InfluxDB configurations can be defined.
104141
# Exactly one must be marked as the default.
@@ -432,11 +469,16 @@ default-retention-policy = ""
432469
# A logical choice is the name of the slack workspace, e.g. <workspace>.slack.com
433470
workspace = ""
434471

435-
# The Slack webhook URL, can be obtained by adding
436-
# an Incoming Webhook integration.
437-
# Visit https://slack.com/services/new/incoming-webhook
438-
# to add new webhook for Kapacitor.
472+
# The Slack webhook URL
473+
# For new-style slack apps, use "https://slack.com/api/chat.postMessage"
474+
# For legacy Incoming Webhooks, visit https://slack.com/services/new/incoming-webhook
475+
# to add new webhook for Kapacitor and use that URL.
439476
url = ""
477+
# The Slack OAuth token
478+
# For new-style slack apps, visit https://api.slack.com/apps -> your app -> 'OAuth & Permissions' to find
479+
# the token. Ensure your app has 'chat:write' and 'chat:write.public' permissions.
480+
# For legacy Incoming Webhooks this should be left empty.
481+
token = ""
440482
# Default channel for messages
441483
channel = ""
442484
# If true all the alerts will be sent to Slack

0 commit comments

Comments
 (0)