I decided to try my example above. It's invalid. Here's the error
[Attach Listener] WARN co.elastic.apm.agent.shaded.stagemonitor.configuration.ConfigurationOption - Error in /tmp/elasticapm.properties: Your service name "${ENV_APPLICATION_US_SANTACLARA}" must only contain characters from the ASCII alphabet, numbers, dashes, underscores and spaces
Since the properties file is parsed as key-value literals, this is impossible.
What you could do is set the ELASTIC_APM_SERVICE_NAME environment variable in your startup script. See related documentation.
Correct. Set it with the value of ENV_APPLICATION_US_SANTACLARA, which means you must make sure you do that only after ENV_APPLICATION_US_SANTACLARA is set.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.