Skip to content

Prometheus exporter should use NaN instead of Nan #3465

Closed
@dashpole

Description

What happened?

Minor detail I found while reading the prometheus exporter:

It currently emits the string "Nan" when recording not a number values.

According to the Prometheus and OpenMetrics specs, this should be the string: "NaN":.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomerspkg:exporter-prometheuspriority:p2Bugs and spec inconsistencies which cause telemetry to be incomplete or incorrectup-for-grabsGood for taking. Extra help will be provided by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions