cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Alerting for function that runs once a day

dylanw
Newcomer

I have lambda that runs once everyday, I have the metric for invocations coming though but want to create a problem if the lambda has not been invoked in the past 24 hours. As the Davis anomaly detector has a maximum of a 60 minute sliding window I am unable to get it to measure for a complete day.  I am wondering if there is any other way to create a problem that monitors a 24 hour period or if there is something else in Davis anomaly detector that can have a wider sliding window of 1440 minutes (one day)

2 REPLIES 2

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

I had just raised this product idea. Maybe it can help to your use case.

Another option can be maintenance window if you know when your funcion is executed more or less, something as it is executed everyday at 12:00am...

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Julius_Loman
DynaMight Legend
DynaMight Legend

There are multiple options already. 

  • Site Reliability Guardian to check (metric/log/event ... whatever you need) with a Simple workflow to trigger the SRG execution and another Simple workflow for notification on the SRG results bizevents (SRG results) - this would be my preferred choice, very simple to configure and no additional costs involved.
  • Workflow with cron scheduling to check the data and create an event.

For Managed customers who don't have the options above, I recommend a custom ActiveGate extension in Python, which would perform the required checks (by accessing the Dynatrace API) and send events/logs/metrics (as needed). Not a common usage for ActiveGate extensions, but it allows you to execute code and can be run easily on the Dynatrace infrastructure. Requires some python and extensions development knowledge, but it's not difficult.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts