Use LocalNode ID in Prometheus metrics (#959)

This commit is contained in:
Mathew Kamkar
2022-08-25 22:16:20 -07:00
committed by GitHub
parent c64e0b2271
commit 767d660809
5 changed files with 26 additions and 6 deletions
+3
View File
@@ -14,6 +14,7 @@ import (
"github.com/urfave/cli/v2"
serverlogger "github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/telemetry/prometheus"
"github.com/livekit/protocol/logger"
"github.com/livekit/livekit-server/pkg/config"
@@ -216,6 +217,8 @@ func startServer(c *cli.Context) error {
return err
}
prometheus.Init(currentNode.Id)
server, err := service.InitializeServer(conf, currentNode)
if err != nil {
return err