I’m trying to route a telegraf output directly to kapacitor so that I can massage and filter the data prior to sending it to influx.
I’ve read this older post on the topic https://community.influxdata.com/t/telegraf-kapacitor-influxdb-possible/29/2 but I’m unclear on what to do in my kapacitor script to get the data from telegraf instead of from influx.
My telegraf.conf contains the following:
[[outputs.influxdb]] urls = ["udp://127.0.0.1:9092"] database = "stage_default" retention_policy = "weekly" namepass = ["ap_util"]
(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