Menu
DocumentationGrafana CloudMonitor applicationsApplication ObservabilityInstrumentation setupInstrumentJavaMigrate to upstream
Grafana Cloud
Migrate to the upstream OpenTelemetry Java SDK
The Grafana OpenTelemetry Java distribution is fully compatible with the upstream OpenTelemetry auto-instrumentation SDK. Follow these steps to migrate to the upstream SDK:
Remove the
grafana
prefix from all configuration environment variables or system properties.To replicate the data saver features, use the OpenTelemetry Collector to filter metrics.
The OpenTelemetry Java SDK does not bundle the resource detectors for Kubernetes, use the OpenTelemetry Collector to add Kubernetes resource attributes.
Add the following environment variables required by Application Observability:
shellexport OTEL_INSTRUMENTATION_MICROMETER_BASE_TIME_UNIT=s export OTEL_INSTRUMENTATION_LOG4J_APPENDER_EXPERIMENTAL_LOG_ATTRIBUTES=true export OTEL_INSTRUMENTATION_LOGBACK_APPENDER_EXPERIMENTAL_LOG_ATTRIBUTES=true
Was this page helpful?
Related documentation
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video
Getting started with the Grafana LGTM Stack
In this webinar, we’ll demo how to get started using the LGTM Stack: Loki for logs, Grafana for visualization, Tempo for traces, and Mimir for metrics.
Video
Intro to Kubernetes monitoring in Grafana Cloud
In this webinar you’ll learn how Grafana offers developers and SREs a simple and quick-to-value solution for monitoring their Kubernetes infrastructure.
Video
Building advanced Grafana dashboards
In this webinar, we’ll demo how to build and format Grafana dashboards.