I need to create an alert for a metric to notify me whenever it crosses a monthly threshold.
timeseries total = sum(service.Metric),
from: now()@M,
to: now(),
interval: 24h
| fieldsAdd deposits_cumulative=arrayMovingSum(total,60)
I need to create an alert for a metric to notify me whenever it crosses a monthly threshold.
timeseries total = sum(service.Metric),
from: now()@M,
to: now(),
interval: 24h
| fieldsAdd deposits_cumulative=arrayMovingSum(total,60)
It’s always a hacking job to get anomaly detectors running for large timeframes. You can try overriding the interval field with interval=toDuration(1m), but you will run into different issues.
Two possible workarounds instead of using Anomaly detector:
Thanks a lot,
i try with this solutions, i will reply the results.
thanks again