You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If the requested content type was proto-based, replace the type with "gauge", as "info" and "statesets" are not recognized by Prometheus' protobuf machinery.
// Removes duplicate headers from the given MetricsWriterList for the same family (generated through CRS).
105
103
// These are expected to be consecutive since G** resolution generates groups of similar metrics with same headers before moving onto the next G** spec in the CRS configuration.
106
104
ifheader==lastHeader {
107
105
writer.stores[0].headers[i] =""
108
-
} else {
106
+
} elseifstrings.HasPrefix(header, "# HELP") {
109
107
lastHeader=header
108
+
109
+
// If the requested content type was proto-based, replace the type with "gauge", as "info" and "statesets" are not recognized by Prometheus' protobuf machinery,
110
+
// else replace them by their respective string representations.
0 commit comments