OpenTelemetry aims to provide a universal observability standard, offering tools for traces, metrics, and logs across various languages. This post zooms in on the performance of the OpenTelemetry Java metrics SDK, especially focusing on the crucial aspects of recording and exporting metrics. By aggregating measurements, this system reduces data footprint while maintaining performance. The post also benchmarks OpenTelemetry Java against Micrometer and Prometheus, showcasing its superior memory allocation efficiency during metrics collection and export, particularly when attributes are not known ahead of time.
Table of contents
Metrics PrimerWhat makes a metric system good?OpenTelemetry Java MetricsBenchmark: OpenTelemetry Java vs. Micrometer vs. Prometheus JavaAcknowledgementsSort: