Tracing data in Elastic APMΒΆ
For nais applications running on-prem (dev-fss and prod-fss) you have the option to send telemetry data to Elastic APM in adition to Grafana. This guide will help you get started with Elastic APM for your application.
Enable auto-instrumentation for Elastic APMΒΆ
Elastic APM can be enabled by setting the list of auto-instrumentation destinations in your nais application manifest.
spec:
observability:
autoInstrumentation:
enabled: true
runtime: "java"
destinations:
- id: "elastic-apm"
It is possible to send data to multiple destinations (such as grafana-lgtm
) by adding more destinations to the list.
Service EnvironmentΒΆ
If you have multiple virutal environments for your application such ac q1
, t2
, or p
, you can specify the environment in the OTEL_RESOURCE_ATTRIBUTES
environment variable.
Accessing the Elastic APM UIΒΆ
The Elastic APM UI is available at logs.adeo.no and requires you to log in with your NAV account and by selecting the APM
menu item.
From there you can select the application (or service as they are called in Elastic APM) you want to inspect.