Skip to content

Commit

Permalink
Use the correct description for omkafka_errors metric
Browse files Browse the repository at this point in the history
This is a follow up fixing an error I made in prometheus-community#12

Signed-off-by: Janis Meybohm <jmeybohm@wikimedia.org>
  • Loading branch information
jayme-github committed Feb 22, 2024
1 parent 03b3586 commit efd3dde
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions omkafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand All @@ -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",
}
Expand Down

0 comments on commit efd3dde

Please sign in to comment.