Skip to content

Commit

Permalink
Fix MetricProducer type descriptions (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg authored Dec 9, 2024
1 parent ce60fda commit 1c17b1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions examples/kitchen-sink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ meter_provider:
- "service.attr1"
# Configure metric producers.
producers:
- opencensus:
- # Configure metric producer to be opencensus.
opencensus:
- # Configure a periodic metric reader.
periodic:
# Configure delay interval (in milliseconds) between start of two consecutive exports.
Expand Down Expand Up @@ -186,7 +187,8 @@ meter_provider:
default_histogram_aggregation: base2_exponential_bucket_histogram
# Configure metric producers.
producers:
- prometheus:
- # Configure metric producer to be prometheus.
prometheus:
- # Configure a periodic metric reader.
periodic:
# Configure exporter.
Expand Down
4 changes: 2 additions & 2 deletions schema/type_descriptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@
opencensus: Configure metric producer to be opencensus.
prometheus: Configure metric producer to be prometheus.
path_patterns:
- .meter_provider.readers[].producers[].pull
- .meter_provider.readers[].producers[].periodic
- .meter_provider.readers[].pull.producers[]
- .meter_provider.readers[].periodic.producers[]

- type: MetricExporter
property_descriptions:
Expand Down

0 comments on commit 1c17b1f

Please sign in to comment.