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

How to force alerts to be enabled?

jegron
DynaMight Champion
DynaMight Champion

Hi,

How can I force alerts to be enabled when an extension is deployed or updated?

I followed this documentation to extract the alert in JSON format:

https://docs.dynatrace.com/docs/extend-dynatrace/extensions20/extension-customize#custom-metric-even...

I tried this but it does not work :
{
    "id": "XXXXX",
    "metricSelector": "XXXXX",
    "name": "XXX",
    "description": "XXX",
    "severity": "AVAILABILITY",
    "enabled": true,
[....]
}
 
Thanks.
Julien
Observability Engineer at Phenisys - Dynatrace Professional
3 REPLIES 3

Mike_L
Dynatrace Guru
Dynatrace Guru

As far as I know we always ship them disabled to allow customers to enable it at will, rather than causing new problems which they didn't set up any routing for or other rules.

Mike

jegron
DynaMight Champion
DynaMight Champion

Hi @Mike_L !

A side-effect is that the customer (or the partner 😀) doesn't realize that he's disabling alerts when he upgrades his extension. It almost becomes good practice to create the alert independently of the extension. What do you recommend?

Observability Engineer at Phenisys - Dynatrace Professional

Mike_L
Dynatrace Guru
Dynatrace Guru

I'd go with clone the alerts that you're interested in, tweak them a bit to fit your need and then use those alerts, they won't be disabled.

Mike

Featured Posts