mirror of
https://github.com/imgproxy/imgproxy.git
synced 2024-11-24 08:12:38 +02:00
Don;t launch Prometheus server if Prometheus binding is not provided
This commit is contained in:
parent
9fe723e357
commit
08c9077fe4
@ -20,6 +20,10 @@ var (
|
||||
)
|
||||
|
||||
func initPrometheus() {
|
||||
if len(conf.PrometheusBind) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
prometheusRequestsTotal = prometheus.NewCounter(prometheus.CounterOpts{
|
||||
Name: "requests_total",
|
||||
Help: "A counter of the total number of HTTP requests imgproxy processed.",
|
||||
|
Loading…
Reference in New Issue
Block a user