Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions examples/kitchen-sink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,14 @@ meter_provider:
exporter:
# Configure exporter to be console.
console:
# Configure temporality preference.
# Values include: cumulative, delta, low_memory. For behavior of values, see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/otlp.md.
# If omitted or null, cumulative is used.
temporality_preference: delta
# 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 views.
# Each view has a selector which determines the instrument(s) it applies to, and a configuration for the resulting stream(s).
views:
Expand Down
70 changes: 66 additions & 4 deletions schema-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,6 @@ Constraints:
Usages:

* [`LogRecordExporter.console`](#logrecordexporter)
* [`PushMetricExporter.console`](#pushmetricexporter)
* [`SpanExporter.console`](#spanexporter)

<details>
Expand All @@ -713,6 +712,51 @@ Usages:
}</pre>
</details>

## ConsoleMetricExporter <a id="consolemetricexporter"></a>

| Property | Type | Required? | Constraints | Description |
|---|---|---|---|---|
| `temporality_preference` | [`ExporterTemporalityPreference`](#exportertemporalitypreference) | `false` | No constraints. | Configure temporality preference.<br>Values include: cumulative, delta, low_memory. For behavior of values, see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/otlp.md.<br>If omitted or null, cumulative is used.<br> |
| `default_histogram_aggregation` | [`ExporterDefaultHistogramAggregation`](#exporterdefaulthistogramaggregation) | `false` | No constraints. | Configure default histogram aggregation.<br>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.<br>If omitted or null, explicit_bucket_histogram is used.<br> |

<details>
<summary>Language support status</summary>

| Property | [java](#java) |
|---|---|
| `temporality_preference` | unknown |
| `default_histogram_aggregation` | unknown |
</details>

Constraints:

* `additionalProperties`: `false`

Usages:

* [`PushMetricExporter.console`](#pushmetricexporter)

<details>
<summary>JSON Schema</summary>

[JSON Schema Source File](./schema/meter_provider.json)
<pre>{
"type": [
"object",
"null"
],
"additionalProperties": false,
"properties": {
"temporality_preference": {
"$ref": "#/$defs/ExporterTemporalityPreference"
},
"default_histogram_aggregation": {
"$ref": "#/$defs/ExporterDefaultHistogramAggregation"
}
}
}</pre>
</details>

## DefaultAggregation <a id="defaultaggregation"></a>

No properties.
Expand Down Expand Up @@ -2180,6 +2224,7 @@ Usages:
* [`OtlpHttpMetricExporter.default_histogram_aggregation`](#otlphttpmetricexporter)
* [`OtlpGrpcMetricExporter.default_histogram_aggregation`](#otlpgrpcmetricexporter)
* [`ExperimentalOtlpFileMetricExporter.default_histogram_aggregation`](#experimentalotlpfilemetricexporter)
* [`ConsoleMetricExporter.default_histogram_aggregation`](#consolemetricexporter)

<details>
<summary>JSON Schema</summary>
Expand Down Expand Up @@ -2210,6 +2255,7 @@ Usages:
* [`OtlpHttpMetricExporter.temporality_preference`](#otlphttpmetricexporter)
* [`OtlpGrpcMetricExporter.temporality_preference`](#otlpgrpcmetricexporter)
* [`ExperimentalOtlpFileMetricExporter.temporality_preference`](#experimentalotlpfilemetricexporter)
* [`ConsoleMetricExporter.temporality_preference`](#consolemetricexporter)

<details>
<summary>JSON Schema</summary>
Expand Down Expand Up @@ -3145,7 +3191,7 @@ Usages:
"$ref": "#/$defs/ExperimentalOtlpFileMetricExporter"
},
"console": {
"$ref": "common.json#/$defs/ConsoleExporter"
"$ref": "#/$defs/ConsoleMetricExporter"
}
}
},
Expand Down Expand Up @@ -3389,6 +3435,21 @@ Usages:
}
}
},
"ConsoleMetricExporter": {
"type": [
"object",
"null"
],
"additionalProperties": false,
"properties": {
"temporality_preference": {
"$ref": "#/$defs/ExporterTemporalityPreference"
},
"default_histogram_aggregation": {
"$ref": "#/$defs/ExporterDefaultHistogramAggregation"
}
}
},
"View": {
"type": "object",
"additionalProperties": false,
Expand Down Expand Up @@ -4721,7 +4782,7 @@ Usages:
| `otlp_http` | [`OtlpHttpMetricExporter`](#otlphttpmetricexporter) | `false` | No constraints. | Configure exporter to be OTLP with HTTP transport.<br> |
| `otlp_grpc` | [`OtlpGrpcMetricExporter`](#otlpgrpcmetricexporter) | `false` | No constraints. | Configure exporter to be OTLP with gRPC transport.<br> |
| `otlp_file/development` | [`ExperimentalOtlpFileMetricExporter`](#experimentalotlpfilemetricexporter) | `false` | No constraints. | Configure exporter to be OTLP with file transport.<br>This type is in development and subject to breaking changes in minor versions.<br> |
| `console` | [`ConsoleExporter`](#consoleexporter) | `false` | No constraints. | Configure exporter to be console.<br> |
| `console` | [`ConsoleMetricExporter`](#consolemetricexporter) | `false` | No constraints. | Configure exporter to be console.<br> |

<details>
<summary>Language support status</summary>
Expand Down Expand Up @@ -4769,7 +4830,7 @@ Usages:
"$ref": "#/$defs/ExperimentalOtlpFileMetricExporter"
},
"console": {
"$ref": "common.json#/$defs/ConsoleExporter"
"$ref": "#/$defs/ConsoleMetricExporter"
}
}
}</pre>
Expand Down Expand Up @@ -6175,6 +6236,7 @@ Latest supported file format: `1.0.0-rc.1`
| [`BatchSpanProcessor`](#batchspanprocessor) | supported | | * `schedule_delay`: supported<br>* `export_timeout`: supported<br>* `max_queue_size`: supported<br>* `max_export_batch_size`: supported<br>* `exporter`: supported<br> |
| [`CardinalityLimits`](#cardinalitylimits) | supported | | * `default`: supported<br>* `counter`: supported<br>* `gauge`: supported<br>* `histogram`: supported<br>* `observable_counter`: supported<br>* `observable_gauge`: supported<br>* `observable_up_down_counter`: supported<br>* `up_down_counter`: supported<br> |
| [`ConsoleExporter`](#consoleexporter) | supported | | |
| [`ConsoleMetricExporter`](#consolemetricexporter) | unknown | | * `temporality_preference`: unknown<br>* `default_histogram_aggregation`: unknown<br> |
| [`DefaultAggregation`](#defaultaggregation) | supported | | |
| [`DropAggregation`](#dropaggregation) | supported | | |
| [`ExemplarFilter`](#exemplarfilter) | supported | | |
Expand Down
4 changes: 4 additions & 0 deletions schema/meta_schema_language_java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ typeSupportStatuses:
status: supported
notes: ""
propertyOverrides: []
- type: ConsoleMetricExporter
status: unknown
notes: ""
propertyOverrides: []
- type: DefaultAggregation
status: supported
notes: ""
Expand Down
13 changes: 13 additions & 0 deletions schema/meta_schema_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1107,3 +1107,16 @@
Value must be non-negative. A value of 0 indicates indefinite.
If omitted or null, 10000 is used.
isSdkExtensionPlugin: false
- type: ConsoleMetricExporter
properties:
- property: temporality_preference
description: |
Configure temporality preference.
Values include: cumulative, delta, low_memory. For behavior of values, see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/otlp.md.
If omitted or null, cumulative is used.
- property: default_histogram_aggregation
description: |
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.
isSdkExtensionPlugin: false
14 changes: 13 additions & 1 deletion schema/meter_provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"$ref": "#/$defs/ExperimentalOtlpFileMetricExporter"
},
"console": {
"$ref": "common.json#/$defs/ConsoleExporter"
"$ref": "#/$defs/ConsoleMetricExporter"
}
}
},
Expand Down Expand Up @@ -318,6 +318,18 @@
}
}
},
"ConsoleMetricExporter": {
"type": ["object", "null"],
"additionalProperties": false,
"properties": {
"temporality_preference": {
"$ref": "#/$defs/ExporterTemporalityPreference"
},
"default_histogram_aggregation": {
"$ref": "#/$defs/ExporterDefaultHistogramAggregation"
}
}
},
"View": {
"type": "object",
"additionalProperties": false,
Expand Down
Loading