Telegraf -> Kapacitor -> InfluxDB possible?

  1. It is possible! Kapacitor has a mirror of the InfluxDB API for writes (hostname:8086/write) .
    In the [[outputs.influxdb]] section of your telegraf.conf set urls = ['http://kapacitor-host:8086']

  2. Kapacitor does not persist any writes/snapshots to disk. Meaning if Kapacitor crashes or even during a restart you will loose a small amount of data. If you cannot tolerate gaps in your data I would recommend writing the raw data directly into a database with a short retention policy. Then via the subscription system have Kapacitor write the processed data back to InfluxDB for a different database with a longer retention policy. That way if Kapacitor crashes or needs to be restarted you can replay the data from the raw database so long as it is within the duration of the short retention policy. Also note that you should configure Kapacitor’s subscriptions to exclude the database Kapacitor is writing to or you are going to duplicate work since Kapacitor will subscribe to that data too. This way you are essentially using InfluxDB as the on-disk snapshot of the data for Kapacitor.