Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions specification/metrics/sdk_exporters/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,12 @@ metric, or scope labels. The option MAY be named `without_scope_info`, and MUST

A Prometheus Exporter MAY support a configuration option to produce metrics without a [target info](../../compatibility/prometheus_and_openmetrics.md#resource-attributes-1)
metric. The option MAY be named `without_target_info`, and MUST be `false` by default.

A Prometheus Exporter MAY support a configuration option to set the default
histogram aggregation. The option MAY be named `default_histogram_aggregation`,
and MUST support the following values:

* `explicit_bucket_histogram`: Use [Explicit Bucket Histogram Aggregation](../sdk.md#explicit-bucket-histogram-aggregation).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This structure makes sense for environment-variable-based config, where we expect string constants, but maybe not so much for SDK exporter config? E.g. Go allows users to provide an AggregationSelector, which I don't think would comply with this.

* `base2_exponential_bucket_histogram`: Use [Base2 Exponential Bucket Histogram Aggregation](../sdk.md#base2-exponential-bucket-histogram-aggregation).

By default, `default_histogram_aggregation` MUST be `explicit_bucket_histogram`.