Count

Description

This connector counts the number of logs, metrics, or traces passing through a pipeline and emits the totals as metrics.

Use

Use this connector to:

  • Monitor telemetry volume by counting log records, spans, or metric data points

  • Track pipeline throughput as metrics

For more advanced counting with filtering, grouping by attributes, or custom metric definitions, use Signal to Metrics instead.

Supported Types

Metrics
Logs
Traces

All input types produce metrics as output.

Configuration

Field
Description

Telemetry Types

Select which signal type to count: Logs, Metrics, or Traces.

Default Metrics

The connector emits the following metrics depending on the selected telemetry type:

Telemetry Type
Metrics Emitted

Logs

log.record.count

Metrics

metric.count, metric.datapoint.count

Traces

trace.span.count, trace.span.event.count

Example Configuration

Count Log Records

Count all log records passing through the pipeline.

  • Telemetry Type: Logs

Emits log.record.count as a sum metric.

Count Spans

Count all trace spans passing through the pipeline.

  • Telemetry Type: Traces

Emits trace.span.count and trace.span.event.count as sum metrics.

Last updated

Was this helpful?