# selfMonitoringAgent on Custom App doesn't work

**URL:** <https://community.dynatrace.com/t/selfmonitoringagent-on-custom-app-doesnt-work/56824>\
**Category:** Open Q&A\
**Tags:** application-monitoring, oneagent, appengine\
**Created:** [August 27, 2026, 3:58pm UTC](https://community.dynatrace.com/t/selfmonitoringagent-on-custom-app-doesnt-work/56824 "2026-08-27T15:58:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![archemicus](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@archemicus](https://community.dynatrace.com/u/archemicus)\
**Post date:** [August 27, 2026, 3:58pm UTC](https://community.dynatrace.com/t/selfmonitoringagent-on-custom-app-doesnt-work/56824/1 "2026-08-27T15:58:50Z")

</div>

Hi team,

Following the guide provided here:

> **[Monitor Dynatrace apps | Dynatrace Developer](https://developer.dynatrace.com/develop/test-and-troubleshoot/troubleshoot/monitor-dynatrace-apps/)**
>
> Set up monitoring for your Dynatrace App.

It seems like per default Dynatrace already is injecting an Agent into all apps, so that setting doesn’t matter as when the app is deployed and installed our custom monitoring agent can’t be initialized:

 ![archemicus_0-1787846209845.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/c8b08731a972bc6dd990ab1685e94d93a919f10c.png)

Is there a way of disabling the default agent that collects data on custom apps? Or is there a way to enforce the custom agent used on the&nbsp;selfMonitoringAgent setting to be the one that is initialized by default?

Thanks!

---

<div class="post-metadata">

**Author:** ![sujit\_k\_singh](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Post date:** [August 28, 2026, 8:07am UTC](https://community.dynatrace.com/t/selfmonitoringagent-on-custom-app-doesnt-work/56824/2 "2026-08-28T08:07:14Z")

</div>

Hi&nbsp;[@archemicus](https://community.dynatrace.com/user/107128)

Try this

 ![sujit_k_singh_0-1787904417299.png](https://global.discourse-cdn.com/dynatrace/original/2X/2/20284ffc2e1bd4fa708cc3a5422541dcc0d835af.png)

---

<div class="post-metadata">

**Author:** ![archemicus](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@archemicus](https://community.dynatrace.com/u/archemicus)\
**Post date:** [August 31, 2026, 6:22pm UTC](https://community.dynatrace.com/t/selfmonitoringagent-on-custom-app-doesnt-work/56824/3 "2026-08-31T18:22:14Z")

</div>

Hi&nbsp;[@sujit\_k\_singh](https://community.dynatrace.com/user/67382)&nbsp;this is not a Managed/Classic application but rather a React SaaS app. Navigating to this settings it doesn’t show any app.

---

<div class="post-metadata">

**Author:** ![sujit\_k\_singh](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Post date:** [September 1, 2026, 2:04am UTC](https://community.dynatrace.com/t/selfmonitoringagent-on-custom-app-doesnt-work/56824/4 "2026-09-01T02:04:34Z")

</div>

Hi&nbsp;[@archemicus](https://community.dynatrace.com/user/107128)

Go to Experience Vitals → Overview, select Web to view all web frontends, and select the frontend you want to configure.

On the Settings tab, select Open in Settings.  
Go to Collect and capture → Instrumentation → Custom injection rules.  
Select Add rule.  
Set the Operator/URL pattern to match the pages of the custom app.  
Under Rule, choose Do not inject.  
Save.

 ![sujit_k_singh_1-1788228031769.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/71eaecc8dcb18e0ffffff2e3b29783dcb13c36c9.png)

 ![sujit_k_singh_0-1788228020952.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/c6f829ef99291a30a5059febb5da05f737ca168a.png)
