Quickstart: Unified Kubernetes Observability with Elastic Distributions of OpenTelemetry (EDOT)

edit

Quickstart: Unified Kubernetes Observability with Elastic Distributions of OpenTelemetry (EDOT)

edit

This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.

In this quickstart guide, you’ll learn how to send Kubernetes logs, metrics, and application traces to Elasticsearch, using the OpenTelemetry Operator to orchestrate Elastic Distributions of OpenTelemetry (EDOT) Collectors and SDK instances.

All the components will be deployed through the opentelemetry-kube-stack helm chart. They include:

  • OpenTelemetry Operator.
  • DaemonSet EDOT Collector configured for node level metrics.
  • Deployment EDOT Collector configured for cluster level metrics.
  • Instrumentation object for applications auto-instrumentation.

For a more detailed description of the components and advanced configuration, refer to the elastic/opentelemetry GitHub repository.

Prerequisites
edit
Collect your data
edit
  1. Create a new Elastic Observability Serverless project, or open an existing one.
  2. In your Elastic Observability Serverless project, go to Add Data.
  3. Under What do you want to monitor? select Kubernetes, and then select OpenTelemetry: Full Observability.

    Kubernetes-OTel entry point
  4. Follow the on-screen instructions to install all needed components.

    The default installation deploys the OpenTelemetry Operator with a self-signed TLS certificate valid for 365 days. This certificate won’t be renewed unless the Helm Chart release is manually updated. Refer to the cert-manager integrated installation guide to enable automatic certificate generation and renewal using cert-manager.

    Deploy the OpenTelemetry Operator and EDOT Collectors using the kube-stack Helm chart with the provided values.yaml file. You will run a few commands to:

    • Add the helm chart repository needed for the installation.
    • Create a namespace.
    • Create a secret with an API Key and the Elasticsearch endpoint to be used by the collectors.
    • Install the opentelemetry-kube-stack helm chart with the provided values.yaml.
    • Optionally, for instrumenting applications, apply the corresponding annotations as shown in Kibana.
Visualize your data
edit

After installation is complete and all relevant data is flowing into Elastic, the Visualize your data section provides a link to the [OTEL][Metrics Kubernetes]Cluster Overview dashboard used to monitor the health of the cluster.

Kubernetes overview dashboard
Troubleshooting and more
edit