I have kapacitor 1.3.1 and influxdb 1.2.4 running on my machine. Though i have enabled kapacitor to send its stats, i dont see _kapacitor database in influxdb. What am i missing here? kapacitor.config:
hostname = "localhost"
[stats]
# Emit internal statistics about Kapacitor.
# To consume these stats create a stream task
# that selects data from the configured database
# and retention policy.
#
# Example:
# stream|from().database('_kapacitor').retentionPolicy('autogen')...
#
enabled = true
stats-interval = "10s"
database = "_kapacitor"
retention-policy= "autogen"
[[influxdb]]
# Connect to an InfluxDB cluster
# Kapacitor can subscribe, query and write to this cluster.
# Using InfluxDB is not required and can be disabled.
enabled = true
default = true
name = "localhost"
urls = ["http://localhost:8086"]
username = ""
password = ""
timeout = 0
Q: What am i missing here?
A: You got the first step right by enabling the stats functionality in
Kapacitor
. The next thing you need to do here is to bounce theKapacitor
engine this is so that stats are getting written into its internal database periodically.Now the catch is that you'll need to also define a TICK script to pull the stats out from
Kapacitor
's internal database, then you can choose what you want to do to it, manipulate the data and write it back to anInfluxDB
or raisealerts
.Example:
After you got your tick script going. You'll have to do the usual, like installing it into
Kapacitor
then enable it.There is a catch here. You need to specify the retention policy that you have specified in the
config
or otherwise it won't know where to look for the data. In this case it is_kapacitor.autogen
.Next you enable the stream task.
Output: