Unable to disable Elastic APM Fleet Server

Kibana version: 8.14.0

Elasticsearch version: 8.14.0

APM Server version: 8.14.0

Original install method (e.g. download page, yum, deb, from source, etc.) and version:

  1. elasticsearch installed using bin/elasticsearch
  2. kibana installed using bin/kibana
  3. fleet server setup following instructions on kibana ui - setup elastic-agent on server with fleet enabled

Fresh install or upgraded from other version?
Fresh install

Is there anything special in your setup?
Just changed two things:

  1. Kibana host to the IP of the VM.
  2. While enrolling elastic-agent on the server, the default port in the bash code was 8200, and the default port for fleet server was 443. Had to change the port in bash code to 443 for successful setup.

Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
As the fleet setup requires SSL certificates, which I have no clue how to setup.
So I'm trying to setup the standalone APM server for which I'd need to disable Fleet.

Now I first uninstall the elastic-agent service from the server and check it.
image (4)

Then I un-enroll the elastic-agent (immediately) and check that.

To ensure my standalone apm-server is not running, I check that.

So now I have uninstalled the elastic-agent with fleet, and disabled standalone apm-server. I expect that the APM server would not be working. Yet it shows:

Steps to reproduce:

  1. Setup Fleet server according to instructions.
  2. Setup the standalone APM server for DEB.
  3. Start the standalone apm-server service.
  4. Uninstall elastic-agent with fleet on server.
  5. Unenroll the elastic-agent.
  6. Check the APM server status on Kibana UI.

Errors in browser console:
I expect: APM server not detected.
Unexpectedly shows: APM server correctly setup.

Hi @Muhammad_Adil_Talay,

Thanks for providing the details of your issue. Can you confirm if there are any errors or warnings in the logs?