Skip to content

Get the log_messages counter to work properly #666

@bboreham

Description

@bboreham

There is supposed to be a metric exposed called log_messages so you can alert on too many errors, warnings, etc. But it doesn't work. [UPDATE: I think right now it is giving all zeros]

If there is another library in your program trying to use a counter named log_messages, it's unpredictable which one wins.

Maybe some kind of namespacing in the name should be added, but from the Prometheus docs it seems that the AlreadyRegisteredError is designed for the case above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions