Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

How to get the hostname as app name in new relic. it should get the host name dynamicaly


#1

how to get the hostname as app name in new relic. it should get the host name dynamicaly. I have tried adding app_name:${HOSTNAME} in newrelic.yml, But it is not replacing the server name.


#2

Hi, @PRAVEEN.BABUM: You might try setting the NEW_RELIC_APP_NAME environment variable:

export NEW_RELIC_APP_NAME = ${HOSTNAME}