# Alerts.json & Dashboard.json for Extension 2.0

**URL:** <https://community.dynatrace.com/t/alerts-json-dashboard-json-for-extension-2-0/41612>\
**Category:** Extensions\
**Tags:** json, extensions\
**Created:** [September 12, 2023, 4:22pm UTC](https://community.dynatrace.com/t/alerts-json-dashboard-json-for-extension-2-0/41612 "2023-09-12T16:22:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GoutamAccenture](https://avatars.discourse-cdn.com/v4/letter/g/53a042/32.png) [@GoutamAccenture](https://community.dynatrace.com/u/GoutamAccenture)\
**Post date:** [September 12, 2023, 4:22pm UTC](https://community.dynatrace.com/t/alerts-json-dashboard-json-for-extension-2-0/41612/1 "2023-09-12T16:22:26Z")

</div>

We are trying to build an extension for fetching Prometheus metrics from a system. We have already created the&nbsp;extension.yaml to define the metrics, featureset, groups etc but needs some sample&nbsp; **alert.json&nbsp; &&nbsp;dashboard.json**

to build the full extension bundle zip (to be uploaded to the DT tenant). Our extension would run locally as an Oneagent extension .

my-sample-extension/  
└── src/  
├── extension.yaml  
dashboards/  
**└── dashboard.json**  
alerts/  
**└── alert.json**

Can anyone help please?

Thanks

---

<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:** [September 12, 2023, 10:16pm UTC](https://community.dynatrace.com/t/alerts-json-dashboard-json-for-extension-2-0/41612/2 "2023-09-12T22:16:03Z")

</div>

The easiest by far is to use the Dynatrace extension addon for vscode. That one can generate both the dashboard and alert jsons. That is what my team uses for all of our extensions.
