Skip to content

Commit db8911a

Browse files
authored
disable echoprometheus compression by default (#97)
* disable metrics compression by default
1 parent 1b74ff7 commit db8911a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

echoprometheus/prometheus.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func NewHandlerWithConfig(config HandlerConfig) echo.HandlerFunc {
115115
if config.Gatherer == nil {
116116
config.Gatherer = prometheus.DefaultGatherer
117117
}
118-
h := promhttp.HandlerFor(config.Gatherer, promhttp.HandlerOpts{})
118+
h := promhttp.HandlerFor(config.Gatherer, promhttp.HandlerOpts{DisableCompression: true})
119119

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

0 commit comments

Comments
 (0)