Skip to content

client.collectDefaultMetrics() does not return an interval #342

@electriquo

Description

@electriquo

from the documentation

collectDefaultMetrics returns an identification when invoked, which is a reference to the Timer used to keep the probes going. This can be passed to clearInterval in order to stop all probes.

but when trying the following

const client = require("prom-client");
const interval = client.collectDefaultMetrics();

interval is equal to undefined.

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