Skip to content

Commit

Permalink
Update pkg/metricshandler/metrics_handler.go
Browse files Browse the repository at this point in the history
Co-authored-by: Manuel Rüger <manuel@rueg.eu>
  • Loading branch information
CatherineF-dev and mrueg committed Mar 14, 2023
1 parent a3bd5d5 commit 6cc2699
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/metricshandler/metrics_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ func (m *MetricsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {

contentType := expfmt.NegotiateIncludingOpenMetrics(r.Header)

# 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
if contentType != expfmt.FmtOpenMetrics {
contentType = expfmt.FmtText
}
Expand Down

0 comments on commit 6cc2699

Please sign in to comment.