Skip to content

Add a method to initialize a metric to 0 so counters render correctly on their first increment #38

@weaversam8

Description

@weaversam8

If a counter is not initialized to zero, on the first increment, it will transition from nonexistent to existent with a value of 1. This makes it impossible for a rate(...) or increase(...) query to display any change on the first increment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions