So I have data being dumped continuously into the measurement requests_stats every time an API is called. I calculate the time taken by the API and dump that stat into influxdb.
So now i want to alert when there is a difference in the execution time of an API by more than x% over a period of time y.
Example: API ‘A’ takes an average of 5seconds for a time interval of 1m. In the next 1m, it takes and average time 10seconds.
Is there a way on can achieve this in kapacitor rules??
I am new to kapacitor so not sure which node does this the best inspite of reading up the documentation.
Can this be done via StateDurationNode ??