ObserveNow
...
Integrations
Applications

OpenTelemetry Operator for Kubernetes

When installing the OpsVerse Agent onto your Kubernetes cluster, we also give the option to install the OpenTelemetry Operator for Kubernetes.

With the Operator on your cluster, it will auto-instrument your Kubernetes apps by injecting the OpenTelemetry instrumentation libraries into your app container.

This auto-instrumentation (via annotations) allow you enable traces without changing application code.

Auto Instrumenting via the OpenTelemetry Operator

  • Install the OpsVerse Agent (steps here) with the following flag enabled in your values.yaml file:
YAML


If you've already installed the agent, please uninstall it first: helm uninstall -n devopsnow devopsnow-agent and then re-install.

The OTel Operator chart installs CRDs, and Helm (out of best practice) only installs CRDs at install time; they are ignored during helm upgrade ...



  • After the agent is installed, simply add the following annotation to your Pod (depending on the language of your app):

Java

Shell


NodeJS

Shell


Python

Shell


Only the key changes per language. The value is the same (an Instrumentation spec which was created during Step (1) - pointing to your OpenTelemetry Collector)

For example, a sample NodeJS app may have the following annotation:

YAML

  • Once rolled out, you'll begin seeing traces come into Grafana Explore under the Traces data source. You can also use the APM Insights dashboard in Grafana to get high level insights into your application traces.