Skip to content
This repository was archived by the owner on Nov 29, 2024. It is now read-only.
This repository was archived by the owner on Nov 29, 2024. It is now read-only.

Moving from connection_error_total to connection_total metric #143

@ppatierno

Description

@ppatierno

Currently, the connection_error_total metric is exposed and it tracks the total number of errors when testing the connection to the brokers.
Anyway, this metric has a "connected" label which is always set to false but it doesn't make any sense this way because the metric itself is clearly about errors.
The purpose of the metric was to reporting the total number of connections, successfully or not, by using the "connected" label with true or false value.
For this reason, the metric name was a mistake and it doesn't reflect successful connections (which are anyway not tracked, unless the latency ones).
Said that it would be better changing this metric to connection_total and using the "connected" label the right way to distinguish between success and failure on connection.
To avoid breaking changes, I would deprecate the connection_error_total in the first coming version (0.2.0) while adding the new one connection_total and then removing the error one in the next version (0.3.0?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions