This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
Moving from connection_error_total to connection_total metric #143
Labels
enhancement
New feature or request
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 oneconnection_total
and then removing the error one in the next version (0.3.0?).The text was updated successfully, but these errors were encountered: