From efd3ddec802ad6de920cbb1c7d6a66fcc8b4a22c Mon Sep 17 00:00:00 2001 From: Janis Meybohm Date: Thu, 22 Feb 2024 11:56:56 +0100 Subject: [PATCH] Use the correct description for omkafka_errors metric This is a follow up fixing an error I made in #12 Signed-off-by: Janis Meybohm --- omkafka.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/omkafka.go b/omkafka.go index d475426..9f01d1f 100644 --- a/omkafka.go +++ b/omkafka.go @@ -170,7 +170,7 @@ func (o *omkafka) toPoints() []*point { Name: "omkafka_errors", Type: counter, Value: o.ErrorsTimedOut, - Description: failuresDescription, + Description: errorsDescription, LabelName: "type", LabelValue: "timed_out", } @@ -179,7 +179,7 @@ func (o *omkafka) toPoints() []*point { Name: "omkafka_errors", Type: counter, Value: o.ErrorsTransport, - Description: failuresDescription, + Description: errorsDescription, LabelName: "type", LabelValue: "transport", } @@ -188,7 +188,7 @@ func (o *omkafka) toPoints() []*point { Name: "omkafka_errors", Type: counter, Value: o.ErrorsBrokerDown, - Description: failuresDescription, + Description: errorsDescription, LabelName: "type", LabelValue: "broker_down", } @@ -197,7 +197,7 @@ func (o *omkafka) toPoints() []*point { Name: "omkafka_errors", Type: counter, Value: o.ErrorsAuth, - Description: failuresDescription, + Description: errorsDescription, LabelName: "type", LabelValue: "auth", } @@ -206,7 +206,7 @@ func (o *omkafka) toPoints() []*point { Name: "omkafka_errors", Type: counter, Value: o.ErrorsSSL, - Description: failuresDescription, + Description: errorsDescription, LabelName: "type", LabelValue: "ssl", } @@ -215,7 +215,7 @@ func (o *omkafka) toPoints() []*point { Name: "omkafka_errors", Type: counter, Value: o.ErrorsOther, - Description: failuresDescription, + Description: errorsDescription, LabelName: "type", LabelValue: "other", }