Download PDF
Download page Auto-Instrument Your Services with OpenTelemetry Operator on Spectro Cloud Palette.
Auto-Instrument Your Services with OpenTelemetry Operator on Spectro Cloud Palette
This page describes how to auto-instrument your services using the OpenTelemetry Operator for Kubernetes, which is installed by the Splunk AppDynamics Operator add-on pack.
This document contains references to third-party documentation. Splunk AppDynamics does not own any rights and assumes no responsibility for the accuracy or completeness of such third-party documentation.
Before You Begin
The steps on this page assume that:
- Your services are running in a supported cluster. See Software Requirements.
- You have installed Kubernetes and App Service Monitoring using the Splunk AppDynamics add-on packs. See Install Kubernetes and App Service Monitoring with Spectro Cloud Palette.
- Your services are not instrumented with OpenTelemetry™ using an agent or SDK.
- Your services are implemented using Java, Node.js, Python, and .NET, which are languages supported by OpenTelemetry Operator for Kubernetes auto-instrumentation. See https://opentelemetry.io/docs/instrumentation.
The Splunk AppDynamics Operator add-on pack installs the OpenTelemetry Operator for Kubernetes, which supports auto-instrumentation. This feature makes it simple to add the language-specific OpenTelemetry agent to a Kubernetes® deployment without requiring code changes or changes to the Kubernetes deployment spec. Auto-instrumentation can be applied to one or more namespaces and any of the deployments within a namespace that have the required annotation.
Auto-Instrument Your Services
You can use any of the following methods to auto-instrument your services using the Spectro Cloud® Palette UI:
Auto-Instrument Your Services Using the Application Manifest
This section describes how to auto-instrument your services by adding annotations to the manifest file for the application you want to run and monitor on the cluster.
- Log into the Spectro Cloud Palette console.
- In the left-hand navigation panel, click Profiles.
- Select the Cluster Profile that contains the Splunk AppDynamics Operator and Collector add-on packs.
- Click Add Manifest.
- Add a Layer name.
- (Optional) If needed, add Layer values and Install order.
- Click New manifest. Add the name of your manifest and confirm it.
- Paste your manifest file.
Under the
spec
>template
>metadata
section, add one of the following language-specific annotations to enable injection.Annotation
instrumentation.opentelemetry.io/inject-java: appdynamics/appd-instrumentation
BASHExample
template: metadata: annotations: instrumentation.opentelemetry.io/inject-java: appdynamics/appd-instrumentation
JAVAAnnotation
instrumentation.opentelemetry.io/inject-python: appdynamics/appd-instrumentation
PYExample
template: metadata: annotations: instrumentation.opentelemetry.io/inject-python: appdynamics/appd-instrumentation
PYAnnotation
instrumentation.opentelemetry.io/inject-nodejs: appdynamics/appd-instrumentation
BASHExample
template: metadata: annotations: instrumentation.opentelemetry.io/inject-nodejs: appdynamics/appd-instrumentation
BASHAnnotation
instrumentation.opentelemetry.io/inject-dotnet: appdynamics/appd-instrumentation
BASHExample
template: metadata: annotations: instrumentation.opentelemetry.io/inject-dotnet: appdynamics/appd-instrumentation
BASH- Click Confirm & Create.
- Click Save Changes.
- Click Deploy.
- If you are instrumenting an existing application, delete the pod where your application is running. The pod will automatically restart. This step is required for the auto-instrumentation to be applied.
If you are instrumenting a new application, the auto-instrumentation will be applied when the application is deployed.
Auto-Instrument Your Services Using Helm Charts
This section describes how to auto-instrument your services by adding annotations to the Helm chart for your application.
- Log into the Spectro Cloud Palette console.
- In the left-hand navigation panel, click Profiles.
- Select the Cluster Profile that contains the Splunk AppDynamics Operator and Collector add-on packs.
- Click Add Helm chart. Search for and add your Helm chart.
- The Configure Pack page is now displayed. If needed, change the Pack Version.
- The values file is displayed on the right side of the page. If the
podAnnotations
section is not present in the values file, create it in the correct location. Under
podAnnotations
, add one of the following language-specific annotations:Annotation
instrumentation.opentelemetry.io/inject-java: appdynamics/appd-instrumentation
BASHExample
podAnnotations: instrumentation.opentelemetry.io/inject-java: appdynamics/appd-instrumentation
JAVAAnnotation
instrumentation.opentelemetry.io/inject-python: appdynamics/appd-instrumentation
PYExample
podAnnotations: instrumentation.opentelemetry.io/inject-python: appdynamics/appd-instrumentation
PYAnnotation
instrumentation.opentelemetry.io/inject-nodejs: appdynamics/appd-instrumentation
BASHExample
podAnnotations: instrumentation.opentelemetry.io/inject-nodejs: appdynamics/appd-instrumentation
BASHAnnotation
instrumentation.opentelemetry.io/inject-dotnet: appdynamics/appd-instrumentation
BASHExample
podAnnotations: instrumentation.opentelemetry.io/inject-dotnet: appdynamics/appd-instrumentation
BASH- Click Confirm & Create.
- Click Save Changes.
- Click Deploy.
Spectro Cloud® is a registered trademark of Spectro Cloud, Inc. Mention of Spectro Cloud products or services is for informational purposes only and constitutes neither an endorsement nor a recommendation of such products or services.
OpenTelemetry™ and Kubernetes® (as applicable) are trademarks of The Linux Foundation®.