If you are running applications that are not using OpenTelemetry in your Kubernetes cluster, you can still collect the events from your cluster. In this guide, you will learn how to use an OpenTelemetry Collector to get additional insight into your data by sending your Kubernetes Events to Honeycomb using OpenTelemetry’s Kubernetes Objects Receiver.Documentation Index
Fetch the complete documentation index at: https://docs.honeycomb.io/llms.txt
Use this file to discover all available pages before exploring further.
Before You Begin
Before beginning this guide, you should have:- Created a running Kubernetes cluster.
- Created a namespace named
honeycomb. - Deployed an OpenTelemetry Collector in Deployment mode with a Helm chart.
Collect Events
Enable the Kubernetes Objects Receiver to collect events by adding thekubernetesEvents preset in the values file for your OpenTelemetry Deployment-mode Collector. Place it near the top of the values file under the config section:
To review the configuration, download the values file for the Deployment-mode Collector.
Format Event Data
By default, thekubernetesEvents preset in the OpenTelemetry Helm chart will configure the Collector to pull all of the events from the Kubernetes cluster and export them as logs.
Honeycomb users can derive a great deal of value from these logs—when they are structured appropriately.
To transform the bodies of these logs into structured content that is easily queried in Honeycomb, use the OpenTelemetry Transform Processor to parse the event data.
To force the event data to conform to the standard k8s.* attribute naming that all other telemetry types use:
-
Add the following to the values file for your OpenTelemetry Deployment-mode Collector. Place it near the top of the values file under the
configsection: -
Under the
configsection, update yourpipelinessection to match the following: