Files
f2bdd29d18 fix: change metric units to singular (#14753)
#### Description

This is to align the metric units with [OTel
specification](https://opentelemetry.io/docs/specs/semconv/general/metrics/#instrument-units):

> All non-units that use curly braces to annotate a quantity need to
match the grammatical number of the quantity it represent. For example
if measuring the number of individual requests to a process the unit
would be **{request}, not {requests}**.

#### Link to tracking issue

Part of
https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/45270

❓ Is there a way for this change to surface to users as a
breaking change?

---------

Co-authored-by: Pablo Baeyens <[email protected]>
2026-03-12 10:45:27 +00:00

121 lines
2.6 KiB
YAML

display_name: Batch Processor
type: batch
github_project: open-telemetry/opentelemetry-collector
status:
disable_codecov_badge: true
class: processor
stability:
beta: [traces, metrics, logs]
distributions: [core, contrib, k8s]
tests:
telemetry:
metrics:
processor_batch_batch_send_size:
enabled: true
stability: development
description: Number of units in the batch
unit: "{unit}"
histogram:
value_type: int
bucket_boundaries:
[
10,
25,
50,
75,
100,
250,
500,
750,
1000,
2000,
3000,
4000,
5000,
6000,
7000,
8000,
9000,
10000,
20000,
30000,
50000,
100000,
]
processor_batch_batch_send_size_bytes:
enabled: true
stability: development
description: Number of bytes in batch that was sent. Only available on detailed level.
unit: By
histogram:
value_type: int
bucket_boundaries:
[
10,
25,
50,
75,
100,
250,
500,
750,
1000,
2000,
3000,
4000,
5000,
6000,
7000,
8000,
9000,
10000,
20000,
30000,
50000,
100_000,
200_000,
300_000,
400_000,
500_000,
600_000,
700_000,
800_000,
900_000,
1000_000,
2000_000,
3000_000,
4000_000,
5000_000,
6000_000,
7000_000,
8000_000,
9000_000,
]
processor_batch_batch_size_trigger_send:
enabled: true
stability: development
description: Number of times the batch was sent due to a size trigger
unit: "{time}"
sum:
value_type: int
monotonic: true
processor_batch_metadata_cardinality:
enabled: true
stability: development
description: Number of distinct metadata value combinations being processed
unit: "{combination}"
sum:
value_type: int
async: true
processor_batch_timeout_trigger_send:
enabled: true
stability: development
description: Number of times the batch was sent due to a timeout trigger
unit: "{time}"
sum:
value_type: int
monotonic: true