Skip to content

Commit

Permalink
Merge pull request #48 from ringerc/pr-fix-stat-endpoint-format
Browse files Browse the repository at this point in the history
pg_exporter: fix /stat endpoint formatting
  • Loading branch information
Vonng committed Jun 18, 2024
2 parents dfadfa5 + adc9bbd commit d7d153e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ func (e *Exporter) ExplainFunc(w http.ResponseWriter, r *http.Request) {

// StatFunc expose html statistics
func (e *Exporter) StatFunc(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/html; charset=UTF-8")
w.Header().Set("Content-Type", "text/plain; charset=UTF-8")
_, _ = w.Write([]byte(e.Stat()))
}

Expand Down

0 comments on commit d7d153e

Please sign in to comment.