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 by using Splunk automatic discovery and configuration (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 Splunk Observability Cloudを使用した組織のアクセストークンの作成および管理.
Get started
To get started with the tutorial, see Part 1: Configure your Kubernetes environment.