Yes, here is an example:
batch
|query('SELECT percentile(value, 99) as 99th FROM db.rp.measurement')
.period(15m)
.every(1m)
|alert()
.crit(lambda: "99th" > 1.0) // assuming units of seconds
This is a super simple example.
Not sure what you mean by this
> We don't want to send the alert if 99-percentile data spike is for few
seconds.
On Wednesday, January 11, 2017 at 8:34:36 AM UTC-7, Nikhil Agrawal wrote:
>
> Hi,
>
> I am using InfluxDB, Kapacitor and Grafana.
>
> I have a query: Is it possible to write tick script in Kapacitor.
>
> Query:
>
> Send an alert if 99-percentile tag value is more than 1 sec from last 15
> minutes.
>
> Purpose to check data spike is high is from last 15 minutes. We don't want
> to send the alert if 99-percentile data spike is for few seconds.
>
> If possible, let me know how can I write tick script.
>
> Also for this case is batch better than stream?
>
> --
>
> *Thanks,Nikhil Agrawal | +1 408 505 8443*
>
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit
https://groups.google.com/d/msgid/influxdb/c492b2d5-a7d6-4418-b701-8c07ccb98454%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.