'Is there a way to monitor the sum of a metric since a specific time in Datadog?

I want to create a monitor for each index that notifies me when an index is approaching it's quota limit. The quota resets everyday at 2:00pm UTC, so I only need to monitor the number of indexed logs since 2:00pm UTC.

The best I can do right now is use .rollup(sum, 86400), however that does not accurately reflect the current log index volume used against the quota.

I know that I can create an event monitor to notify me when the index quota is reached, but I want an early warning alert before the index quota is reached.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source