We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 452ca91 commit 40785d6Copy full SHA for 40785d6
1 file changed
pkg/util/metrics/helpers.go
@@ -58,6 +58,10 @@ func ParsePrometheusMetrics(metricsText string) ([]Float64MetricRepresentation,
58
value = *metric.Counter.Value
59
case pcm.MetricType_GAUGE:
60
value = *metric.Gauge.Value
61
+ case pcm.MetricType_SUMMARY:
62
+ value = *metric.Summary.SampleSum
63
+ case pcm.MetricType_HISTOGRAM:
64
+ value = *metric.Histogram.SampleSum
65
default:
66
return metrics, fmt.Errorf("unexpected MetricType %s for metric %s",
67
pcm.MetricType_name[int32(*metricFamily.Type)], *metricFamily.Name)
0 commit comments