apm-server icon indicating copy to clipboard operation
apm-server copied to clipboard

Create docker-compose.yml for fleet managed apm-server

Open simitt opened this issue 2 years ago • 2 comments

Create a docker-compose.yml for an easy out-of-the-box onboarding experience to users. This isn't necessarily meant for production usage, but should provide an easy way to spin up ES, Kibana, Elastic Agent with Fleet Server and have the APM Integration added and configured.

To achieve this, leverage the current docker-compose.yml, add apm integration and leverage the Kibana preconfiguration API for configuring the agent policy with apm integration enabled.

We also want to share this with @insukcho as this can be useful for the support team to spin up a stack with managed apm-server and test things.

simitt avatar May 05 '22 09:05 simitt

Hi @simitt ,

what would it take to start a fleet server in a local environment connected to elasticloud, is there such a possibility?

renat473 avatar May 10 '22 19:05 renat473

@renat473 it is possible, you can navigate to your Elastic Cloud deployment and follow this guide: https://www.elastic.co/guide/en/fleet/current/install-fleet-managed-elastic-agent.html

This GitHub issue is intended to ease development and spinning up a local Elastic Stack. It doesn't really have anything to do with Elastic Cloud.

marclop avatar May 11 '22 03:05 marclop

I started looking at trying to migrate from legacy APM server which has been solid for us passed 3 years to the newer approach and this would be incredibly useful as we run a full on prem solution.

I found that the documentation is very heavy on the physical install method opposed to containerised and information relating to the required preconfiguration api calls is lacking / difficult to find. While I am sure I’ll be able to piece it all together having a simple reference file that can just be spun up would have huge benefits.

Will keep an eye out on this and hopefully see something up the 8.6 release.

cdavid15 avatar Oct 07 '22 19:10 cdavid15

After some internal discussion, we are moving forward with a different solution, built on k8s and tilt. With @axw's PR https://github.com/elastic/apm-server/pull/9421 one can issue tilt up to spin up Elasticsearch, Kibana, Fleet Server, and an Elastic Agent with the APM integration injected. Under the hood, this uses ECK.

Anyone following this issue, please let share your experience with the proposed solution with us.

simitt avatar Oct 25 '22 11:10 simitt

Developer docs on how to use tilt can be found at dev-docs#tilt.

simitt avatar Nov 03 '22 07:11 simitt