Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalff committed Dec 5, 2024
1 parent 60a2d91 commit a779c05
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
14 changes: 6 additions & 8 deletions examples/kitchen-sink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,9 @@ meter_provider:
# If omitted, .included resource attributes are included.
excluded:
- "service.attr1"
# Configure metric producers.
producers:
- # Configure metric producer to be opencensus.
opencensus:
# Configure metric producers.
producers:
- opencensus:
- # Configure a periodic metric reader.
periodic:
# Configure delay interval (in milliseconds) between start of two consecutive exports.
Expand Down Expand Up @@ -185,10 +184,9 @@ meter_provider:
# Configure default histogram aggregation. Values include: explicit_bucket_histogram, base2_exponential_bucket_histogram. For behavior of values, see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/otlp.md.
# If omitted or null, explicit_bucket_histogram is used.
default_histogram_aggregation: base2_exponential_bucket_histogram
# Configure metric producers.
producers:
- # Configure metric producer to be prometheus.
prometheus:
# Configure metric producers.
producers:
- prometheus:
- # Configure a periodic metric reader.
periodic:
# Configure exporter.
Expand Down
18 changes: 12 additions & 6 deletions schema/meter_provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
},
"exporter": {
"$ref": "#/$defs/PushMetricExporter"
},
"producers": {
"type": "array",
"items": {
"$ref": "#/$defs/MetricProducer"
}
}
},
"required": [
Expand All @@ -57,6 +63,12 @@
"properties": {
"exporter": {
"$ref": "#/$defs/PullMetricExporter"
},
"producers": {
"type": "array",
"items": {
"$ref": "#/$defs/MetricProducer"
}
}
},
"required": [
Expand Down Expand Up @@ -151,12 +163,6 @@
},
"pull": {
"$ref": "#/$defs/PullMetricReader"
},
"producers": {
"type": "array",
"items": {
"$ref": "#/$defs/MetricProducer"
}
}
}
},
Expand Down
6 changes: 4 additions & 2 deletions schema/type_descriptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,13 @@
property_descriptions:
pull: Configure a pull based metric reader.
periodic: Configure a periodic metric reader.
producers: Configure metric producers.
path_patterns:
- .meter_provider.readers[]

- type: PullMetricReader
property_descriptions:
exporter: Configure exporter.
producers: Configure metric producers.
path_patterns:
- .meter_provider.readers[].pull

Expand All @@ -349,6 +349,7 @@
If omitted or null, 30000 is used.
exporter: Configure exporter.
producers: Configure metric producers.
path_patterns:
- .meter_provider.readers[].periodic

Expand All @@ -357,7 +358,8 @@
opencensus: Configure metric producer to be opencensus.
prometheus: Configure metric producer to be prometheus.
path_patterns:
- .meter_provider.readers[].producers[]
- .meter_provider.readers[].producers[].pull
- .meter_provider.readers[].producers[].periodic

- type: MetricExporter
property_descriptions:
Expand Down

0 comments on commit a779c05

Please sign in to comment.