# How to force alerts to be enabled?

**URL:** <https://community.dynatrace.com/t/how-to-force-alerts-to-be-enabled/46143>\
**Category:** Extensions\
**Tags:** metric-events, extensions, problems-classic\
**Created:** [June 17, 2024, 8:50am UTC](https://community.dynatrace.com/t/how-to-force-alerts-to-be-enabled/46143 "2024-06-17T08:50:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jegron](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jegron/32/12797_2.png) [@jegron](https://community.dynatrace.com/u/jegron)\
**Post date:** [June 17, 2024, 8:50am UTC](https://community.dynatrace.com/t/how-to-force-alerts-to-be-enabled/46143/1 "2024-06-17T08:50:33Z")

</div>

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:

> **[Customize data with extensions](https://docs.dynatrace.com/docs/ingest-from/extensions/advanced-configuration/extension-customize)**
>
> Learn how to instrument your extensions to customize how the ingested data is handled by Dynatrace.

I tried this but it does not work :_{_&nbsp; &nbsp; _“id”: “XXXXX”,_&nbsp; &nbsp; _“metricSelector”: “XXXXX”,_&nbsp; &nbsp; _“name”: “XXX”,_&nbsp; &nbsp; _“description”: “XXX”,_&nbsp; &nbsp; _“severity”: “AVAILABILITY”, __&nbsp; &nbsp; **“enabled”: true** ,__ […]_\*}\*Thanks.Julien

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [June 19, 2024, 9:16am UTC](https://community.dynatrace.com/t/how-to-force-alerts-to-be-enabled/46143/2 "2024-06-19T09:16:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jegron](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jegron/32/12797_2.png) [@jegron](https://community.dynatrace.com/u/jegron)\
**Post date:** [June 20, 2024, 9:44am UTC](https://community.dynatrace.com/t/how-to-force-alerts-to-be-enabled/46143/3 "2024-06-20T09:44:32Z")

</div>

Hi&nbsp;[@Mike\_L](https://community.dynatrace.com/user/11520)&nbsp;!

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?

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [June 20, 2024, 10:02am UTC](https://community.dynatrace.com/t/how-to-force-alerts-to-be-enabled/46143/4 "2024-06-20T10:02:19Z")

</div>

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.
