diff --git a/exporters/prometheus/exporter.go b/exporters/prometheus/exporter.go index 8cc87573db9..41fa546d73a 100644 --- a/exporters/prometheus/exporter.go +++ b/exporters/prometheus/exporter.go @@ -392,17 +392,14 @@ func validateMetrics(name, description string, metricType *dto.MetricType, mfs m } return false, "" } - if emf.GetHelp() != description { if emf.GetType() == dto.MetricType_HISTOGRAM || *metricType == dto.MetricType_HISTOGRAM { return false, "" } return false, emf.GetHelp() } - if emf.GetType() != *metricType { return true, "" } - return false, "" }