opentelemetry-java-instrume.../instrumentation/micrometer/micrometer-1.5
Mateusz Rzeszutek ab587a927a
Implement "Prometheus mode" for better micrometer->OTel->Prometheus support (#5537)
* Implement "Prometheus mode" for better micrometer->OTel->Prometheus support

* code review comments

* forgot about README
2022-03-18 13:03:42 +01:00
..
javaagent Implement "Prometheus mode" for better micrometer->OTel->Prometheus support (#5537) 2022-03-18 13:03:42 +01:00
library Implement "Prometheus mode" for better micrometer->OTel->Prometheus support (#5537) 2022-03-18 13:03:42 +01:00
testing Implement "Prometheus mode" for better micrometer->OTel->Prometheus support (#5537) 2022-03-18 13:03:42 +01:00
README.md Implement "Prometheus mode" for better micrometer->OTel->Prometheus support (#5537) 2022-03-18 13:03:42 +01:00

README.md

Settings for the Micrometer bridge instrumentation

System property Type Default Description
otel.instrumentation.micrometer.base-time-unit String ms Set the base time unit for the OpenTelemetry MeterRegistry implementation.
Valid valuesns, nanoseconds, us, microseconds, ms, microseconds, s, seconds, min, minutes, h, hours, d, days
otel.instrumentation.micrometer.prometheus-mode.enabled boolean false Enable the "Prometheus mode" this will simulate the behavior of Micrometer's PrometheusMeterRegistry. The instruments will be renamed to match Micrometer instrument naming, and the base time unit will be set to seconds.