Skip to content

Commit

Permalink
disable echoprometheus compression by default (#97)
Browse files Browse the repository at this point in the history
* disable metrics compression by default
  • Loading branch information
fraidev authored Jun 26, 2023
1 parent 1b74ff7 commit db8911a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echoprometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func NewHandlerWithConfig(config HandlerConfig) echo.HandlerFunc {
if config.Gatherer == nil {
config.Gatherer = prometheus.DefaultGatherer
}
h := promhttp.HandlerFor(config.Gatherer, promhttp.HandlerOpts{})
h := promhttp.HandlerFor(config.Gatherer, promhttp.HandlerOpts{DisableCompression: true})

if r, ok := config.Gatherer.(prometheus.Registerer); ok {
h = promhttp.InstrumentMetricHandler(r, h)
Expand Down

0 comments on commit db8911a

Please sign in to comment.