Metrics Exporter - Standard output

Status: Stable

“Standard output” Metrics Exporter is a Push Metric Exporter which outputs the metrics to stdout/console.

OpenTelemetry SDK authors MAY choose the best idiomatic name for their language. For example, ConsoleExporter, StdoutExporter, StreamExporter, etc.

“Standard output” Metrics Exporter MUST provide configuration to set the MetricReader output temporality as a function of instrument kind. This option MAY be named temporality, and MUST set temporality to Cumulative for all instrument kinds by default.

“Standard output” Metrics Exporter MAY provide configuration to set the MetricReader default aggregation as a function of instrument kind. This option MAY be named default_aggregation, and MUST use the default aggregation by default.

If a language provides a mechanism to automatically configure a MetricReader to pair with the associated exporter (e.g., using the OTEL_METRICS_EXPORTER environment variable), by default the exporter MUST be paired with a periodic exporting MetricReader with a default exportIntervalMilliseconds of 10000.