mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
log prometheus enabled
This commit is contained in:
parent
8ae9573b07
commit
4c97b79adf
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@ import (
|
||||||
"github.com/yusing/go-proxy/internal/api/v1/favicon"
|
"github.com/yusing/go-proxy/internal/api/v1/favicon"
|
||||||
"github.com/yusing/go-proxy/internal/common"
|
"github.com/yusing/go-proxy/internal/common"
|
||||||
config "github.com/yusing/go-proxy/internal/config/types"
|
config "github.com/yusing/go-proxy/internal/config/types"
|
||||||
|
"github.com/yusing/go-proxy/internal/logging"
|
||||||
"github.com/yusing/go-proxy/internal/utils/strutils"
|
"github.com/yusing/go-proxy/internal/utils/strutils"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -40,6 +41,7 @@ func NewHandler(cfg config.ConfigInstance) http.Handler {
|
||||||
|
|
||||||
if common.PrometheusEnabled {
|
if common.PrometheusEnabled {
|
||||||
mux.Handle("GET /v1/metrics", promhttp.Handler())
|
mux.Handle("GET /v1/metrics", promhttp.Handler())
|
||||||
|
logging.Info().Msg("prometheus metrics enabled")
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultAuth := auth.GetDefaultAuth()
|
defaultAuth := auth.GetDefaultAuth()
|
||||||
|
|
Loading…
Add table
Reference in a new issue