cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Looking to upgrade from Dynatrace Managed to SaaS? See how

How to DT_CUSTOM_PROP for Tomcat

Hello based on this doc:

https://www.dynatrace.com/news/blog/define-process-group-properties-via-environment-variables-kubern...

I cannot understand how/where to insert the DT_CUSTOM_PROP on Tomcat runninx on linux System.

Do someone have already done this? Can you guide me to do so?

Thank you


8 REPLIES 8

Julius_Loman
DynaMight Legend
DynaMight Legend

If this is a standard tomcat and you are starting it with the catalina.sh startup script, just put it in the $CATALINA_HOME/bin/setenv.sh script (or create it).

Don't forget to export the variables, for example:

export DT_CLUSTER_ID=tomket1
export DT_NODE_ID=mynode1
export DT_CUSTOM_PROP=myprop=myvalue

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Thank you this was the right solution for me, 9 points to gryffindor!


@Julius L. hello! I'm back here 🙂

I was wondering, do you have any knowledge on where can I do this in Apache Web Server?

Sure I do 🙂

However, it depends on your Apache Web Server distribution and how you start the apache process. Typically in Linux distributions, you will have to set it in the envvars file in your apache config directory or in the bin directory as they start it with the apachectl wrapper script.
If you start it directly by running the binary httpd, then you will have to do it in your script.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Hi Julius,

I'm investigating this for a vanilla installation of httpd Apache web server 🙂

As I wrote - it works even for vanilla installation. If you are starting it with apachectl, then you can put it into envvars file. If you are starting the httpd binary directly, then you will have to find a place where it fits you best.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Thank you very much!

Do we know how to implement this DT_CUSTOM_PROP on container world. We have Vmware Tanzu cloud with springboot apps and wanted to know how to implement CT_CUSTOM_PROP on every service and process.

 

thanks

Vinnu

Featured Posts