I have installed Elastic stack using ECK (Elasticsearch, Kibana, Beats, APM Server + agents), and trying to automate setup moving manual configuration steps to Kubernetes jobs that use Elasticsearch REST API.
But can't find any API to install and configure Elastic APM integration on Kibana. Is there a way to automate this setup process?
Ok, so at first glance it doesn't look like it's intrinsically possible to do what you are asking...
"APM Server exposes an API endpoint that allows agents to query the server for configuration changes", from: Agent configuration API | APM User Guide [8.5] | Elastic
thank you for providing this information. I tried with this config lines, but agent policy wasn't created automatically, only Elastic APM integration was created using lines 40-42 from your link.
Maybe it's because I don't have Fleet installed.. But don't see a reason why I need it in my ELK setup
@OlLap APM currently requires Fleet for powering several APM-specific features:
APM Agent central configuration is pushed to APM Server via Fleet
Source maps are stored as Fleet artifacts, with references to them pushed down to APM Server via Fleet; APM Server then fetches the source maps via Fleet Server.
Tail-based sampling policies are defined in the integration policy, and pushed down to APM Server via Fleet.
Because of this requirement on Fleet, we currently do not support Elastic Agent standalone mode. This is mentioned as a note in our docs:
The APM integration does not support running Elastic Agent in standalone mode; you must use Fleet to manage Elastic Agent.
We're working towards not requiring fleet-server in future versions of APM Server. Keep an eye on the changelog since we're expecting this change to happen in the near future.
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.