# Java APM agent configuration via external configuration management

**URL:** <https://discuss.elastic.co/t/java-apm-agent-configuration-via-external-configuration-management/201517>\
**Category:** APM\
**Created:** [September 29, 2019, 4:29am UTC](https://discuss.elastic.co/t/java-apm-agent-configuration-via-external-configuration-management/201517 "2019-09-29T04:29:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![surenraju](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/surenraju/32/62606_2.png) [@surenraju](https://discuss.elastic.co/u/surenraju)\
**Post date:** [September 29, 2019, 4:29am UTC](https://discuss.elastic.co/t/java-apm-agent-configuration-via-external-configuration-management/201517/1 "2019-09-29T04:29:18Z")

</div>

Elastic Search Version: 7.3.1  
APM Server Version: 7.3.1  
APM Client Version: APM Java Agent: 1.x (current)  
APM Agent language and version: Java 1.8

We are evaluating elastic APM for our micro service stack. As part of that we are evaluating programmatic self-attach of APM agent with Spring Boot application.  
[https://www.elastic.co/guide/en/apm/agent/java/current/setup-attach-api.html](https://www.elastic.co/guide/en/apm/agent/java/current/setup-attach-api.html)  
As part of that we are wondering if we can use external config solution(using spring-cloud-consul) to manage APM agents configuration. Please let us know if it is recommended to control elasticapm.properties via external config management solution like consul key value for a spring boot application.  
Our original intention for external configuration is to dynamically change properties like

1. active
2. transaction\_sample\_rate

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [September 30, 2019, 7:09am UTC](https://discuss.elastic.co/t/java-apm-agent-configuration-via-external-configuration-management/201517/2 "2019-09-30T07:09:56Z")

</div>

Hi and thanks for the question.

Currently, there is no API to plug-in an external configuration management system. But we are working on central configuration which can be configured within the APM Kibana App. See: [https://www.elastic.co/guide/en/kibana/current/agent-configuration.html](https://www.elastic.co/guide/en/kibana/current/agent-configuration.html)

Currently, we support `transaction_sample_rate` and will add more options soon. Is that an option for you?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 21, 2019, 3:10am UTC](https://discuss.elastic.co/t/java-apm-agent-configuration-via-external-configuration-management/201517/3 "2019-10-21T03:10:03Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
