Connect to the APM Serveredit

This section covers the following topics:

APM Server serviceedit

The APM Server is exposed with a Service. For information on accessing it, check How to access Elastic Stack services.

To retrieve the list of all the APM Services, use the following command:

kubectl get service --selector=''
NAME                             TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)    AGE
apm-server-quickstart-apm-http   ClusterIP   <none>        8200/TCP   154m

APM Server secret tokenedit

The operator generates an authorization token that agents must send to authenticate themselves to the APM Server.

This token is stored in a secret named {APM-server-name}-apm-token and can be retrieved with the following command:

kubectl get secret/apm-server-quickstart-apm-token -o go-template='{{index .data "secret-token" | base64decode}}'

For more information, check APM Server Reference.

APM Server API keysedit

If you want to configure API keys to authorize requests to the APM Server, instead of using the APM Server CLI, you have to create API keys using the Elasticsearch create API key API, check the APM Server documentation.