mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +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/common"
|
||||
config "github.com/yusing/go-proxy/internal/config/types"
|
||||
"github.com/yusing/go-proxy/internal/logging"
|
||||
"github.com/yusing/go-proxy/internal/utils/strutils"
|
||||
)
|
||||
|
||||
|
@ -40,6 +41,7 @@ func NewHandler(cfg config.ConfigInstance) http.Handler {
|
|||
|
||||
if common.PrometheusEnabled {
|
||||
mux.Handle("GET /v1/metrics", promhttp.Handler())
|
||||
logging.Info().Msg("prometheus metrics enabled")
|
||||
}
|
||||
|
||||
defaultAuth := auth.GetDefaultAuth()
|
||||
|
|
Loading…
Add table
Reference in a new issue