Tutorial: Capture traces from a Java application in Kubernetes 🔗
Follow this tutorial for a walkthrough of instrumenting a sample Java application in a Kubernetes environment using Splunk zero-code instrumentation (formerly Zero Configuration Auto Instrumentation).
What's in this tutorial
After completing this tutorial, you can accomplish the following:
Configure a Kubernetes environment for application monitoring.
Deploy the Kubernetes Operator to automatically instrument a Java application.
View your application data in Splunk APM.
How to use this tutorial
Follow the tutorial parts in order:
Configure your Kubernetes environment to install the OpenTelemetry Collector. See Part 1: Configure your Kubernetes environment
Deploy the OpenTelemetry Collector and Spring PetClinic Java application. See Part 2: Deploy the Collector and Java application
View your application data in Splunk APM. See Part 3: View your data in Splunk APM
The tutorial uses the Spring Petclinic Java application as an example. To learn more about this application and to see a demo, see the Spring Petclinic website: https://spring-petclinic.github.io/.
Prerequisites
To get the most out of this tutorial, you need a basic understanding of Kubernetes. You must know how to create and manage Kubernetes components such as deployments, pods, and services.
Install the following components:
minikube
kubectl
Helm version 3.0.0 or higher
Additionally, you must have your Splunk Observability Cloud realm and access token to deploy the Splunk Distribution of OpenTelemetry Collector. For more information, see Create and manage organization access tokens using Splunk Observability Cloud.
Get started
To get started with the tutorial, see Part 1: Configure your Kubernetes environment.