You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Help: proto.String("The registry should detect the duplicate label."),
314
+
Type: dto.MetricType_COUNTER.Enum(),
315
+
Metric: []*dto.Metric{
316
+
{
317
+
Label: []*dto.LabelPair{
318
+
{
319
+
Name: proto.String("foo"),
320
+
Value: proto.String("bar"),
321
+
},
322
+
{
323
+
Name: proto.String("foo"),
324
+
Value: proto.String("baz"),
325
+
},
326
+
},
327
+
Counter: &dto.Counter{
328
+
Value: proto.Float64(2.7),
329
+
},
330
+
},
331
+
},
332
+
}
333
+
duplicateLabelMsg:= []byte(`An error has occurred during metrics gathering:
334
+
335
+
collected metric "broken_metric" { label:<name:"foo" value:"bar" > label:<name:"foo" value:"baz" > counter:<value:2.7 > } has two or more labels with the same name: foo
310
336
`)
311
337
312
338
typeoutputstruct {
@@ -646,6 +672,20 @@ collected metric named "complex_count" collides with previously collected histog
0 commit comments