How to use flux with tick script

Hello,

We are planning to upgrade our influxDB to 1.7 and we have number TICK scripts are in place. Is there any option in tick script to use flux query instead of influxql, like below?
|query(SELECT 100 - mean(usage_idle) AS “value” FROM “telegraf”.“autogen”.“cpu”) to
|flux(filter(fn: ® =>
r._measurement == “cpu” and
r._field == “usage_idle”)

I couldn’t find any documentations regarding TICK script with flux, kindly help me if it’s possible.

Hi Ajayanaj ,

TICK scripts have their own scripting language ,
it is not possible to use FLux in Tick scripts ,
your existing TICK scripts will still function after you upgrade

best regards ,

Hi @MarcV Thanks for the reply. Do you have any idea about how flux(especially alerting part) will replace TICK script in InfluxDB 2.0?
Thank you in advance.

Hi @ajayanaj,

In 2.x we have Tasks:

While there are no notification functions yet, we will be working on this in the coming months.

1 Like

hi @rawkode ,
thanks for the link , I read : Tasks replace InfluxDB v1.x’s continuous queries.
will kapacitor be replaced as well ?
have a nice day :slight_smile:

Kapacitor won’t be replaced, but rather most of it’s functionality will be available through the InfluxDB 2.0 binary; through Tasks :slight_smile:

Thanks, Is there any ETA for the notification function?