Skip to content

Commit d46edde

Browse files
CatherineF-devmrueg
andcommitted
Update pkg/metricshandler/metrics_handler.go
Co-authored-by: Manuel Rüger <[email protected]>
1 parent a3bd5d5 commit d46edde

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/metricshandler/metrics_handler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ func (m *MetricsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
187187

188188
contentType := expfmt.NegotiateIncludingOpenMetrics(r.Header)
189189

190+
// We do not support protobuf at the moment. Fall back to FmtText if the negotiated exposition format is not FmtOpenMetrics See: https://github.com/kubernetes/kube-state-metrics/issues/2022
190191
if contentType != expfmt.FmtOpenMetrics {
191192
contentType = expfmt.FmtText
192193
}

0 commit comments

Comments
 (0)