I want to use APM feature for my .NET or JAVA code monitoring.
APM Guide 8.1, it tells us in order to install APM, we must have below 4 components:
APM Agents, Elastic APM Integration, Elasticsearch, Kibana
Going through Elastic APM Integration, it tell us that
the Elastic Integration runs on Elastic Agent.
Which again takes us to
Fleet and Elastic Agent Guide
In the Guide, it tells us that there are 2 ways to install
Install a Fleet-managed Elastic Agent (Recommended) and
Install Elastic Agent in standalone mode (advanced users)
I choose the recommended step since it is a first time for me.
It is telling us we need to first install
I followed this link then, since I am a new user: https://www.elastic.co/guide/en/observability/8.1/ingest-traces.html
Inside Step 1: Set up Fleet
It is giving us the steps to install Fleet.
I followed the steps under
Login to Kibana and go to Management>Fleet>Settings
Under Fleet Server hosts, I gave the fleet url as https://localhost:8220
I skipped the 3rd step, since my elasticsearch is running with security enabled.
Save and apply the settings.
Click the Agents tab and follow the in-product instructions to add a Fleet Server.
Using the agent policy as below:
Downloaded the elastic agent which will be used as a Fleet Server:
Chosen the deployment mode for security as below:
Added Fleet Server host as below:
Generated a service token as below:
Tried starting Fleet Server on my windows machine using the command as given below:
Followed the troubleshooting guide.
On Fleet Server startup, ERROR seen with `State changed to CRASHED: exited with code: 1```
Then a different error as below: