Type to search.

Connect to the APM Server

ECK

Elastic Cloud on Kubernetes extends Kubernetes orchestration capabilities to allow you to deploy and manage components of the Elastic Stack.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

This section covers the following topics:

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:

Shell
kubectl get service --selector='common.k8s.elastic.co/type=apm-server'
Shell
NAME                             TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)    AGE
apm-server-quickstart-apm-http   ClusterIP   10.0.1.252   <none>        8200/TCP   154m

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:

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

For more information, check APM Server Reference.

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.