APM Metering API (#99832)

Adds Metering instrument interfaces and adapter implementations for opentelemetry instrument types:
* Gauge - a single number that can go up or down
* Histogram - bucketed samples
* Counter - monotonically increasing summed value
* UpDownCounter - summed value that may decrease

Supports both Long* and Double* versions of the instruments.

Instruments can be registered and retrieved by name through APMMeter which is available via the APMTelemetryProvider.

The metering provider starts as the open telemetry noop provider.

`telemetry.metrics.enabled` turns on metering.
This commit is contained in:
Stuart Tettemer 2023-09-28 19:35:46 -05:00 committed by GitHub
parent f99a80f42d
commit f8d09e9c6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 1811 additions and 5 deletions

View file

@ -385,6 +385,7 @@ module org.elasticsearch.server {
org.elasticsearch.serverless.apifiltering;
exports org.elasticsearch.telemetry.tracing;
exports org.elasticsearch.telemetry;
exports org.elasticsearch.telemetry.metric;
provides java.util.spi.CalendarDataProvider with org.elasticsearch.common.time.IsoCalendarDataProvider;
provides org.elasticsearch.xcontent.ErrorOnUnknown with org.elasticsearch.common.xcontent.SuggestingErrorOnUnknown;