Skip to content

Commit 2463492

Browse files
authored
Merge pull request #13 from wikimedia/fix_omkafka_errorsDescription
Use the correct description for omkafka_errors metric
2 parents 03b3586 + efd3dde commit 2463492

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: omkafka.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (o *omkafka) toPoints() []*point {
170170
Name: "omkafka_errors",
171171
Type: counter,
172172
Value: o.ErrorsTimedOut,
173-
Description: failuresDescription,
173+
Description: errorsDescription,
174174
LabelName: "type",
175175
LabelValue: "timed_out",
176176
}
@@ -179,7 +179,7 @@ func (o *omkafka) toPoints() []*point {
179179
Name: "omkafka_errors",
180180
Type: counter,
181181
Value: o.ErrorsTransport,
182-
Description: failuresDescription,
182+
Description: errorsDescription,
183183
LabelName: "type",
184184
LabelValue: "transport",
185185
}
@@ -188,7 +188,7 @@ func (o *omkafka) toPoints() []*point {
188188
Name: "omkafka_errors",
189189
Type: counter,
190190
Value: o.ErrorsBrokerDown,
191-
Description: failuresDescription,
191+
Description: errorsDescription,
192192
LabelName: "type",
193193
LabelValue: "broker_down",
194194
}
@@ -197,7 +197,7 @@ func (o *omkafka) toPoints() []*point {
197197
Name: "omkafka_errors",
198198
Type: counter,
199199
Value: o.ErrorsAuth,
200-
Description: failuresDescription,
200+
Description: errorsDescription,
201201
LabelName: "type",
202202
LabelValue: "auth",
203203
}
@@ -206,7 +206,7 @@ func (o *omkafka) toPoints() []*point {
206206
Name: "omkafka_errors",
207207
Type: counter,
208208
Value: o.ErrorsSSL,
209-
Description: failuresDescription,
209+
Description: errorsDescription,
210210
LabelName: "type",
211211
LabelValue: "ssl",
212212
}
@@ -215,7 +215,7 @@ func (o *omkafka) toPoints() []*point {
215215
Name: "omkafka_errors",
216216
Type: counter,
217217
Value: o.ErrorsOther,
218-
Description: failuresDescription,
218+
Description: errorsDescription,
219219
LabelName: "type",
220220
LabelValue: "other",
221221
}

0 commit comments

Comments
 (0)