Skip to content

Move "Expose" somewhere else #8

@piradoiv

Description

@piradoiv

While Expose procedure works, it shouldn't be part of the metrics. Prometheus guidelines about writing client libraries recommends this way:

Data is exposed by passing a CollectorRegistry to a class/method/function "bridge", which returns the metrics in a format Prometheus supports. Every time the CollectorRegistry is scraped it must callback to each of the Collectors’ collect method.

https://prometheus.io/docs/instrumenting/writing_clientlibs/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions