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
+5
View File
@@ -6,8 +6,13 @@ import (
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/rtc/types/typesfakes"
"github.com/livekit/livekit-server/pkg/telemetry/prometheus"
)
func init() {
prometheus.Init("test")
}
func newMockParticipant(identity livekit.ParticipantIdentity, protocol types.ProtocolVersion, hidden bool, publisher bool) *typesfakes.FakeLocalParticipant {
p := &typesfakes.FakeLocalParticipant{}
sid := utils.NewGuid(utils.ParticipantPrefix)