Skip to content

[Page feedback]: Units of measurement in metrics.proto not well documented #3178

@StenPetrov

Description

@StenPetrov

URL

https://opentelemetry.io/docs/specs/otel/overview/#metric-signal

Description

I'm trying to understand the possible interpretations of a metrics unit.

The documentation page links to metrics.proto, which has this definition:

  // The unit in which the metric value is reported. Follows the format
  // described by https://unitsofmeasure.org/ucum.html.
  string unit = 3;

The metrics unit of measurement is a string

The sample metrics file has "unit": "1", - yes, it's a string, but it's not clear what "1" means in that example.

The link in the proto (https://unitsofmeasure.org/ucum.html) is not valid either

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Status

    Need triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions