Splunk APM monitors cloud-native, microservices-based applications by collecting traces. A trace is a collection of actions (known as spans) that occur to complete a transaction. Splunk APM collects and analyzes every span and trace that is generated by the instrumentation.
Splunk APM helps with visualizing and understanding complex distributed environments that are critical to business functions, productivity and customer experience. It provides capabilities to reduce MTTR via unmatched levels of visualization and troubleshooting features.
To set up Splunk APM and begin analyzing application availability and performance, follow these steps:
Steps involved:
As a first step to collecting data from your application, you should deploy the OTel Collector. This tool allows you to export spans and traces from Kubernetes, Linux, and Windows hosts and containers to Splunk Observability Cloud.
To deploy the Splunk Distribution of OpenTelemetry Collector on a host, select Navigation menu > Data Management and search for the host type you’re using. Then follow the steps in the setup wizard.
Use the autoinstrumentation libraries provided by Splunk Observability Cloud to instrument services in supported programming languages. To get the highest level of support, send spans from your applications to the OpenTelemetry Collector you deployed in the previous step.
How you specify the OpenTelemetry Collector endpoint depends on the language you are instrumenting. To collect spans and traces from a service, select Navigation menu > Data setup and search for an instrumentation library for the service you want to instrument.
You can instrument following technologies:
Refer: Send traces to Splunk APM Ex: Instrumenting Java applications
After you have instrumented your applications, select Observability > APM and check that you can see your application data in the dashboard
Assess the health of your applications with the APM landing page
To view the real time snapshot of Services & Business Workflows at a glance.
Explore (Review the Service Map): Explore services visually on a dependency map. The Service Map is a visual representation of your various services and their dependencies. Splunk APM automatically discovers your instrumented services and their interactions to present dynamic and real-time service maps of your application’s architecture. Use the service map to make more sense of your complex network of services and quickly identify where issues may be occurring, in a visual way.
Review Tag Spotlight : Use Tag Spotlight to analyze the performance of your services to discover trends that contribute to high latency or error rates with indexed span tags. You can break down every indexed span tag for a particular service to view metrics for it. When you select specific span tag values or a specific time range, you can view representative traces to learn more about an outlying incident.
You can dynamically monitor error rate and latency in the services you are tracing with Splunk APM as well as Business Workflow
configuring and optimizing in order to get the most out of Splunk APM.
Drill down into service performance with span tags. Span tags provide additional context about operations that spans represent. Default span tags include things like the environment, endpoint, operation, Service and HTTP method associated with a span. Using these tags, you can analyze requests, errors, and latency for spans that contain specific span tags. This context lets you understand service performance at a glance and helps you discover the root cause of issues faster.
Index span tags to analyze services in the following ways:
Consider which span tags are worth creating MetricSets for.
There are two ways to add span tags:
A business workflow is the start-to-finish journey of the collection of traces associated with a given activity or transaction. Each trace consists of multiple spans, and each span has identifying tags.
You can create rules that correlate traces from a specific service or from multiple services that include the same global span tag. You must be an administrator to configure business workflow rules.
Select a rule type:
Select a Target Global Tag or Target Service according to the Rule Type you selected.
Priority: