enable promethues summary (#630)

This commit is contained in:
Paul Chu 2021-03-25 00:08:42 +08:00 committed by GitHub
parent c1241fdfbc
commit 384e993ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -0,0 +1 @@
mode: all

View File

@ -160,10 +160,11 @@ func (p *accumulator) makeMetric(metric telegraf.Metric) []*dataobj.MetricValue
switch metric.Type() {
case telegraf.Counter:
return makeCounter(metric, tags)
case telegraf.Summary, telegraf.Histogram:
logger.Debugf("unsupported type summary, histogram, skip")
case telegraf.Summary:
return makeSummary(metric, tags)
case telegraf.Histogram:
logger.Debugf("unsupported type histogram, skip")
return nil
// return makeSummary(metric, tags)
default:
return makeGauge(metric, tags)
}