Skip to content

Commit

Permalink
Add metrics type with 'vec' to be prometheus.client.MetricType
Browse files Browse the repository at this point in the history
Signed-off-by: alitman <[email protected]>
  • Loading branch information
Aviv Litman authored and sradco committed Nov 13, 2023
1 parent 6a3ba1a commit e00262f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/metrics/parser/metrics_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ func CreateMetricFamily(m Metric) *dto.MetricFamily {
metricType := dto.MetricType_UNTYPED

switch m.Type {
case "Counter":
case "Counter", "CounterVec":
metricType = dto.MetricType_COUNTER
case "Gauge":
case "Gauge", "GaugeVec":
metricType = dto.MetricType_GAUGE
case "Histogram":
case "Histogram", "HistogramVec":
metricType = dto.MetricType_HISTOGRAM
case "Summary":
case "Summary", "SummaryVec":
metricType = dto.MetricType_SUMMARY
}

Expand Down

0 comments on commit e00262f

Please sign in to comment.