(If I point my url to my influxdb it logs the data in influx successfully).
In my kapacitor script I want something like:
dbrp "????"."????" <-- not sure what to put here?
stream
| from()
.measurement('ap_util')
| log() <-- currently just for testing that I'm receiving the data at all
I’ve tried that and it just connects to the influx database and retention policy if they exist. And if they don’t exist kapacitor logs an error complaining they don’t exist.
EDIT: I tried that with a batch instead of a stream, and got that result. With stream nothing gets logged to indicate neither problem nor success.
Some additional google searching and I found this blog on the subject. Still to no avail though. I tried putting the dbrp directly in the script as per v1.4. I also tried removing it from the script and specifying it on the command line to define the script.
Going to try going back to kapacitor 1.3 (when the blog was written) to see if that makes a difference.
The above configuration does not seem to work because the Kapacitor logs =>
ts=2019-04-03T14:42:15.642+08:00 lvl=error msg=“failed to connect to InfluxDB, retrying…” service=influxdb cluster=kapacitor err=“Get [httplink]:9092/ping: dial tcp 192.168.0.77:9092: connect: connection refused”
ts=2019-04-03T14:42:16.441+08:00 lvl=error msg=“failed to connect to InfluxDB, retrying…” service=influxdb cluster=kapacitor err=“Get [httplink]:9092/ping: dial tcp 192.168.0.77:9092: connect: connection refused”
Did anyone get Telegraf -> Kapacitor to work properly?
[root@xxx kapacitor]# telegraf -version
Telegraf 1.10.1 (git: HEAD a6778f46)
to get Telegraf -> Kapacitor to work ,
you only need the telegraf configuration you showed ,
then ( assuming the inputs.cpu is present ) you can create a tick script , to test , as follows
you can use telegraf as your database name but be aware that it is the default name
for the database created by telegraf if telegraf connects to influxdb.
Hi Daniel ,
you didn’t miss anything , you were supposed to miss the code 404
because you can ignore it …
I have also the 404 but that is expected as explained in the blog ,
Apr 04 11:20:26 myhost telegraf[8454]: 2019-04-04T09:20:26Z W! [outputs.influxdb] when writing to [http://localhost:9092]: database “telegraf” creation failed: 404 Not Found
from the blog a bit higher in this thread :
The database parameter should point to a non-existent database (you can ignore Telegraf’s warning about the database not being found).
If I use kapacitor 1.5.4 (containerized version) without an InfluxDB and setting “enabled = false” in the influxdb section I get the following errors:
failed to connect to InfluxDB, retrying…
Is it possible to use Kapacitor completely without InfluxDB?