question

Babar Q. avatar image
Babar Q. asked ·

Easy way to disable the Automatically inject real user monitoring

Dear All,

Is there an easy way to disable the automatically inject real user monitoring JavaScript tag from all hosts/processes in one shot?

Regards,

Babar

RUMadministrationjavascript
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Joe H. avatar image
Joe H. answered ·

Perhaps a better approach is to use the API. The Web Application Configuration endpoint allows you to enable/disable RUM on a Per-Application basis. A simple script could walk thru a list of all Applications and based on your predefined list of approved (or blacklist) Applications this could be easily done in seconds.

https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/web-application-configuration-api/web-application/post-web-application/


1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Hello @Joe H.

Thank you for your comments. The objective is to disable the auto-injection feature from all the processes, whether they are part of the web application or not e.g. when the agent installs by default, it enables the JavaScript tag on each process which I want to disable in one shot.

Regards,

Babar

0 Likes 0 · ·
Alexander R. avatar image
Alexander R. answered ·

Hello, we used "My web application" without URLS definition (default web application) and Customer web application with defined URL`s. Usually - we switch off RUM for all URLS with disabling RUM for "My web application".

So you can disable RUM for all web services "in one touch".

Regards,

Alexander

6 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Hello @Alexander R.

Thank you for sharing your experience. I am more interested, to disable the JavaScript tag from the processes level. Is there a way to disable the automatic JavaScript tag from all the processes of a host?

Regards,

Babar

0 Likes 0 · ·

@Babar Q. , In some cases support ask me to disable globally or only for some process groups by these settings. You can use Process group override for disabling only for some process groups.




Regards,

Alexander

0 Likes 0 · ·
1596023263055.png (48.0 KiB)

Hello @Alexander R.

Once again thank you for your comments. I used to use this option usually for PurePath handling, but believe me, it is equally painful to disable on each process and especially when you have enormous processes running on hosts.

We discussed a similar case in the below thread.

https://answers.dynatrace.com/questions/241454/easy-way-to-process-group-overrides.html?childToView=241509#comment-241509

Regards,

Babar

0 Likes 0 · ·
@Babar Q. , I agree with you. We had PoC with 25+ .NET processes more than 10-15 hosts. This is old .NET application (Legacy), so I need to enable monitoring for each of 250 processes, and then disabled automatic injection for all of these process groups.

If you will create RFE - I`ll give first vote.

Regards,

Alexander

0 Likes 0 · ·

Hello @Alexander R.

One more thing, I wanted to share with you that even after override the process group from the deep monitoring, the automatically inject real user monitoring JavaScript tag option will still show the enable, which I used to disable manually.

Regards,

Babar

1 Like 1 · ·
1596171074181.png (7.1 KiB)
1596171178504.png (22.6 KiB)

Yes, I known about it.

I totally agree with you. We have no menu for global disabling injection on process level.

In AppMon we have UEM sensor for agent groups. Why in Dynatrace such simple things are so difficult....

Regards,

Alexander

0 Likes 0 · ·