chore: update metrics

This commit is contained in:
Steven
2023-10-17 23:44:16 +08:00
parent e30d0c2dd0
commit a5df36eff2
8 changed files with 72 additions and 4 deletions

View File

@ -15,6 +15,7 @@ import (
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/server"
_profile "github.com/usememos/memos/server/profile"
"github.com/usememos/memos/server/service/metric"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store/db"
)
@ -64,6 +65,9 @@ var (
return
}
// nolint
metric.NewMetricClient(s.ID, *profile)
c := make(chan os.Signal, 1)
// Trigger graceful shutdown on SIGINT or SIGTERM.
// The default signal sent by the `kill` command is SIGTERM,