Skip to content

Add # UNIT lines for byte and second metrics (OpenMetrics) #422

@mvillmow

Description

@mvillmow

Several metrics have well-defined units: nats_in_bytes_total / nats_out_bytes_total / nats_jetstream_bytes (bytes), homeric_exporter_scrape_duration_seconds (seconds), homeric_exporter_scrape_timestamp (seconds since epoch). The OpenMetrics exposition format (accepted by Prometheus 2.x) supports # UNIT declarations. Adding them would improve discoverability and Grafana unit auto-detection without breaking existing scrapers.

Follow-up from #155

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions