This is not met my requirement.
I want to send a alert, if 99-percetile performance time of API is more
then 1 sec consistently for 15 minutes.
using below query, i am getting alert in every 1m.
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
Could check query>
On Wed, Jan 11, 2017 at 2:10 PM, <[email protected]> wrote:
> 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 <(408)%20505-8443>*
>>
>
--
*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/CAMtKHpqZ7JWLsxBxCaG%2BY3pC5yNJT%3Dq%2BZxTfoFB3Tse_KnY5_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.