Hi,
I have installed ES, Kibana. And its up and running.
Further, i have added Elastic APM Integration into Kibana, and have setup Fleet server, Elastic Agent.
(note i did not setup any APM server yet)
I am trying to connect to http://localhost:8200 using APM Agent jar. But i get below error:
Elastic APM server http://localhost:8200/ is not available (Connection refused: connect)
Also if i telnet localhost 8200, it does not result into a connection.
Query: When i do a setup as above using APM Integration (recommended) approach do i need to setup APM Server externally or the above setup provides an internal APM server ??
Elastic Agent would set up a local APM Server if it is enrolled with to a policy that contains the APM integration, so localhost:8200 should be valid on such hosts.
If you go to Management -> Fleet, you can observe agents, policies and other settings. In the Agents tab, you should see a list of your agents. Do you see your agent? Does it have a "Healthy" status or other? You can get further info on what's going on if you click on the agent and switch to the Logs tab, where you can see all agent-related logs. By default, only the root agent logs are shown, so you should mark the apm_server dataset in the Dataset dropdown.
Otherwise, you can login into the host and collect logs from the agent installation folder.
Hopefully this is at least somewhat helpful
Could be, although the Dataset selection may not be working in some versions.
If you see other datasets related to other integrations (e.g. metricbeat or filebeat), then I assume it does mean it is not installed, in which case you should verify that the APM integration is indeed configured within the policy that is applied to this agent and if so, look within the elastic_agent dataset and look for hints why it failed to start an APM Server.
If you only see the elastic_agent dataset although other integrations are configured, you should assume this is a bug in the UI (already fixed for upcoming version AFAIK) and you should log into the host and look for the logs in the agent installation dir.
Elastic Agent is somehow not able to understand that it has to install the apm-server too. It has downloaded it in its data folder but not installed it, like it did for fleet, metricbeat, filebeat.
I have installed ES and Kibana as standalone on my local machine. Rest i have installed using kibana UI. The sequence of installation was ElasticAPM -> FleetServer -> ElasticAgent.
All I can think of is that the APM integration is not enabled. Please verify that your policy has APM integration enabled and configured to use localhost:8200.
Also verify that Fleet host and Elasticsearch endpoint is properly configured in Management -> Fleet -> Settings
If you still can't figure this out, try to share your policy.
Right, unfortunately I am no such either
Tagging as Fleet and APM Server related, hopefully someone can tell why your APM Server doesn't even attempts to start.
OS: Windows ElasticSearch and Kibana are extracted binaries on my local machine. ElasticAgent is running as a service on my local windows machine.
I wanted to give it a quick try hence have not used any of the docker, K8s or a VM deployment yet.
So, in all, its all localhost. Below is the screenshot of my Elastic APM integration:
If your agent is up and running and appears as healthy in fleet agents, it should accept connections on localhost with your configuration. However, I dunno the configuration in your windows, and I dunno if the loopback network interface is running, so I will suggest using "host: 0.0.0.0:8200" and "URL: HTTP://YOUR_WINDOWS_EXTERNAL_IP:8200"
Ok. But i cannot see an apm-server installation inside my agent. Although agent has downloaded the apm-server setup in the \Elastic\Agent\data\elastic-agent-16c55b\downloads
Below is a screenshot of what agent has installed within itself:
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.