Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix summary bug
  • Loading branch information
huyan0 committed Aug 27, 2020
commit 3ca1d79d539bf46b52938bbfc947a78661289a05
3 changes: 1 addition & 2 deletions test/otlploadgenerator/otlp.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ var (
counter,
gauge,
histogram,
// collector bug: summary metric received as MONOTIONIC_INT64
// summary,
summary,
}
labels = []string{ // each metric will have from 1 to 4 sets of labels
"label1 value1",
Expand Down
2 changes: 1 addition & 1 deletion test/otlploadgenerator/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func buildSummaryMetric(name string, labels []*common.StringKeyValue, val []uint
values[i] = float64(val[2+i])
}
return &metrics.Metric{
MetricDescriptor: getDescriptor(name, monotonicInt64Comb, validCombinations),
MetricDescriptor: getDescriptor(name, summaryComb, validCombinations),
SummaryDataPoints: []*metrics.SummaryDataPoint{
getSummaryDataPoint(labels, uint64(time.Now().UnixNano()), sum, count, pcts, values),
},
Expand Down