I have been playing with Kapacitor, trying various ways to find anomaly like Morgoth, joining today’s data with yesterday’s and comparing the std deviation.
I see Morgoth works great in the case when data pattern range is vast(which is in my case, it can vary from few hundreds to thousands).
Only problem i find with Morgoth is that it doesn’t take into account the time of day in which the event occurred. Lets say at night time sum(count) is generally around 100 but in day time its 10,000. Above script will not give an alert if the sum(count) falls to 100 at the day time, as that is a common sum(count) for it. (during the night time).
Can suggest some better fingerprinting algorithm for Morgoth which takes time into account.
Or some other method for anomaly detection for data:
- Whose range is vast. (I can’t just compare std. dev at all times)
- There is a common pattern expected everyday. ( but we need to find this NOT at the day end)
Here is my existing TICKScript :
var data = batch
.cron(’*/15 * * * *’)
.message(‘Deadman alert: less than 1 datapoint in 5m’)
// Trigger a critical alert when the window is marked as anomalous.
Thanks, any help is appreciated.