cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using environment variables to rename PHP process in Dynatrace

myrvin_yap
Dynatrace Participant
Dynatrace Participant

I have successfully used an environment variable in etc/sysconfig/httpd to rename an Apache Web Server process.

However, for PHP, I can't seem to be able to pick up the environment variables any where. I tried to

1) source the variable in /etc/profile.d/, restart php-fpm, does not work

2) tried to use /usr/local/etc/php-fpm.conf and restarted php-fpm, does not work either

Does anyone have a working configuration that you can share?

This is important to me as I have multiple PHP engines and Apache Web Servers serving different applications in the same host. If I am not able to spilt the process that is supporting the services, it will be very difficult for the monitoring team to isolate issues and troubleshoot faster.

Regards,

Myrvin

1 REPLY 1

bartlomiej_kami
Newcomer

For php you can change agent name in php.ini file.

Setting:

phpagent.agentname = your_agent_name

should do the trick.

Best regards,

Bartek

Featured Posts