From ceb560b1cbbde4aa7f20aec31a276efda886e463 Mon Sep 17 00:00:00 2001 From: Thanh Le Date: Fri, 15 Nov 2024 13:42:38 +0100 Subject: [PATCH] Add new configuration to doc tables --- docs/sdk/configuration.md | 3 ++- .../autoconfigure/PrometheusMetricExporterAutoConfigure.scala | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/sdk/configuration.md b/docs/sdk/configuration.md index 688f4bb33..754c243b5 100644 --- a/docs/sdk/configuration.md +++ b/docs/sdk/configuration.md @@ -105,7 +105,7 @@ Target-specific properties are prioritized. E.g. `otel.exporter.otlp.metrics.end ### Prometheus exporter -The exporter launches an HTTP server which responds to the HTTP requests with Prometheus metrics in the appropriate format. +The exporter launches an HTTP server which responds to the HTTP requests with Prometheus metrics in the appropriate format. | System property | Environment variable | Description | |----------------------------------------------|-------------------------------------------------------|------------------------------------------------------------------------------------------| @@ -116,6 +116,7 @@ The exporter launches an HTTP server which responds to the HTTP requests with Pr | otel.exporter.prometheus.without.type.suffix | OTEL\\_EXPORTER\\_PROMETHEUS\_WITHOUT\\_TYPE\\_SUFFIX | If metrics are produced without a type suffix. Default is `false`. | | otel.exporter.prometheus.without.scope.info | OTEL\\_EXPORTER\\_PROMETHEUS\_WITHOUT\\_SCOPE\\_INFO | If metrics are produced without a scope info metric or scope labels. Default is `false`. | | otel.exporter.prometheus.without.target.info | OTEL\\_EXPORTER\\_PROMETHEUS\_WITHOUT\\_TARGET\\_INFO | If metrics are produced without a target info metric. Default is `false`. | +| otel.exporter.prometheus.shutdown.timeout | OTEL\\_EXPORTER\\_PROMETHEUS\_SHUTDOWN\\_TIMEOUT | The time to wait for provider to do any cleanup required. Default is `10 seconds`. | ### Period metric reader diff --git a/sdk-exporter/prometheus/src/main/scala/org/typelevel/otel4s/sdk/exporter/prometheus/autoconfigure/PrometheusMetricExporterAutoConfigure.scala b/sdk-exporter/prometheus/src/main/scala/org/typelevel/otel4s/sdk/exporter/prometheus/autoconfigure/PrometheusMetricExporterAutoConfigure.scala index c0e24672b..ece6a7f1b 100644 --- a/sdk-exporter/prometheus/src/main/scala/org/typelevel/otel4s/sdk/exporter/prometheus/autoconfigure/PrometheusMetricExporterAutoConfigure.scala +++ b/sdk-exporter/prometheus/src/main/scala/org/typelevel/otel4s/sdk/exporter/prometheus/autoconfigure/PrometheusMetricExporterAutoConfigure.scala @@ -189,6 +189,7 @@ object PrometheusMetricExporterAutoConfigure { * | otel.exporter.prometheus.without.type.suffix | OTEL_EXPORTER_PROMETHEUS_WITHOUT_TYPE_SUFFIX | If metrics are produced without a type suffix. Default is `false`. | * | otel.exporter.prometheus.without.scope.info | OTEL_EXPORTER_PROMETHEUS_WITHOUT_SCOPE_INFO | If metrics are produced without a scope info metric or scope labels. Default is `false`. | * | otel.exporter.prometheus.without.target.info | OTEL_EXPORTER_PROMETHEUS_WITHOUT_TARGET_INFO | If metrics are produced without a target info metric. Default is `false`. | + * | otel.exporter.prometheus.shutdown.timeout | OTEL_EXPORTER_PROMETHEUS_SHUTDOWN_TIMEOUT | The time to wait for provider to do any cleanup required. Default is `10 seconds`. | * }}} * * @see