Alerting
Questions about alerting and problem detection in Dynatrace.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

custom metric for custom extension

Chaitanya30
Frequent Guest

Hi,
I have created custom extension for Oracle data source to monitor few out of the box capabilities, In this case I have set up interval as 15 mins while defining the query/metric in the extension.
and I have set up custom alert with the help of defined metric and keep all as it is(advance model properties : 3 violations in 5 mins window).
Since we are not seen any alert, does this(advance model properties) effect the problem creation? if yes could any one please help me to set up correct violation samples?

Thank you
Chaitanya

5 REPLIES 5

JeanBlanc
Mentor

Hi @Chaitanya30,

Yes, this configuration explains why you don’t see any alert.

Your custom Oracle metric is collected every 15 minutes, but the Davis Anomaly Detector is configured for 3 violations within a 5-minute sliding window. With a 15-minute interval, Dynatrace can’t have more than one data point in 5 minutes, so 3 violations are impossible. As a result, no problem can be created.

How to fix it (simple):

  • Either increase the violation window (for example: 1 violation in 30 or 45 minutes)

  • Or reduce the metric collection interval to match the 5-minute window

Rule: the violation window must always be longer than the metric collection interval.

That’s all — once they’re aligned, alerts will work.

Doc : https://docs.dynatrace.com/docs/discover-dynatrace/platform/davis-ai/anomaly-detection/concepts/anom...

Best regards,

Hi JeanBlanc,
Thanks for your help!
I will tweak the metric as per this, we have another requirement to monitor the query once in a day(for example 1440mins) and want to be alerted once in a day.
How do we achieve this?
Best regards

Chaitanya

JeanBlanc
Mentor

There are other options for your needs : 

  • Site Reliability Guardian to check metric with a workflow to trigger the Site Reliability Guardian execution and another workflow for notification on the Site Reliability Guardian result.
  • Workflow with cron scheduling to check the data and create an event (problem).

Hi JeanBlanc,
We have limited licenses, I think that workflows are consuming some licenses. so it is too hard to me find more consumption for workflows. Do we have any other ways to achieve? with metric event(already used for above)
Best regards

Chaitanya

JeanBlanc
Mentor

SimpleWorkflow cost nothing 💡

See doc : https://docs.dynatrace.com/docs/shortlink/simple-workflow

Featured Posts