Skip to content

Commit de770ec

Browse files
adds default_histogram_aggregation in prometheus schema
1 parent 6709017 commit de770ec

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

examples/kitchen-sink.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ meter_provider:
142142
# Configure resource attributes to be excluded, in this example attribute service.attr1.
143143
excluded:
144144
- "service.attr1"
145+
default_histogram_aggregation: "base2_exponential_bucket_histogram"
145146
# Configure metric producers.
146147
producers:
147148
# Configure metric producer to be opencensus
@@ -442,21 +443,21 @@ instrumentation:
442443
# Instrumenation may merge general config options with the language specific configuration at .instrumentation.<language>.
443444
general:
444445
# Configure instrumentations following the peer semantic conventions.
445-
#
446+
#
446447
# See peer semantic conventions: https://opentelemetry.io/docs/specs/semconv/attributes-registry/peer/
447448
peer:
448449
# Configure the service mapping for instrumentations following peer.service semantic conventions.
449450
#
450451
# Each entry is a key value pair where "peer" defines the IP address and "service" defines the corresponding logical name of the service.
451-
#
452+
#
452453
# See peer.service semantic conventions: https://opentelemetry.io/docs/specs/semconv/general/attributes/#general-remote-service-attributes
453454
service_mapping:
454455
- peer: 1.2.3.4
455456
service: FooService
456457
- peer: 2.3.4.5
457458
service: BarService
458459
# Configure instrumentations following the http semantic conventions.
459-
#
460+
#
460461
# See http semantic conventions: https://opentelemetry.io/docs/specs/semconv/http/
461462
http:
462463
# Configure instrumentations following the http client semantic conventions.

schema/meter_provider.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@
113113
},
114114
"with_resource_constant_labels": {
115115
"$ref": "common.json#/$defs/IncludeExclude"
116+
},
117+
"default_histogram_aggregation": {
118+
"type": "string",
119+
"enum": [
120+
"explicit_bucket_histogram",
121+
"base2_exponential_bucket_histogram"
122+
]
116123
}
117124
}
118125
},

0 commit comments

Comments
 (0)