OpenTelemetry Metrics
Push Metrics conforming to the OpenTelemetry protocol into the ONE platform via API WebHook.
Getting Started
ONE Platform Setup
- Navigate to Integrations → Plugins. Locate the OpenTelemetry card and click Start Integration to create the ingestion task.
- Copy the Metrics endpoint displayed on the finish page.
Instrument Your Service (Java example)
- Download the OpenTelemetry Java agent.
- Add the following JVM flags:
-javaagent:/path/to/opentelemetry-javaagent.jar // Update the path to the actual location of the file; required parameter
-Dotel.resource.attributes=service.name=demo-test // Application name; recommended but optional
-Dotel.exporter.otlp.endpoint=http://10.241.20.6:20087/integration/opentelemetry/metric/20fc9e36-839b-4c1c-83e7-92d40a2f15d6 // Metrics endpoint provided by the ONE platform Integrations > Plugins > OpenTelemetry screen; required parameter
-Dotel.exporter.otlp.protocol=http/protobuf // Upload protocol; the ONE platform currently only supports HTTP; required parameter
# Remaining optional parameter configuration items:
#https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure
- Restart the Java process.
Configure Data Stream
- ONE provides an out-of-the-box default stream.
- You can also build a custom stream for advanced scenarios.
Verification
- Review registered Metrics under Insight → Data Model → Metrics.
- Explore live data under Insight → Data Explorer.