Skip to content

validator doesn't respect a metrics family having zero metrics #299

@nishkrishnan

Description

@nishkrishnan

i have the following open metrics output:

# TYPE metric1 gauge
# HELP metric1 some description
# TYPE metric2 gauge
# HELP metric2 some description
metric2{label="value"} 0.100 1752616860

Running the open metrics validator on this produces the following error:

error for metric family metric1: metric name changed from "metric1" to "metric2"

However in the spec i see the following:

"A MetricFamily MAY have zero or more Metrics. A MetricFamily MUST have a name, HELP, TYPE, and UNIT metadata. Every Metric within a MetricFamily MUST have a unique LabelSet."

Is this a bug in the validator? Or am i misinterpreting the spec?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions