133
default:
134
// Not yet supporting summary, untyped.
136
>
buckets := m.Histogram.GetBucket()
137
>
hbs := []HistogramBucket{}
138
>
for _, bucket := range buckets {
139
>
hb := HistogramBucket{
140
>
value: float64(bucket.GetCumulativeCount()),
141
>
upperBound: bucket.GetUpperBound(),
142
>
}
143
>
hbs = append(hbs, hb)
144
>
}
145
>
histogramSamples[name] = histogramSample{
146
>
metricType: family.GetType(),
147
>
labelValues: labelvalues,
148
>
buckets: hbs,
149
>
}
150
case dto.MetricType_COUNTER:
151
samples[name] = sample{