Fix prom units for forwarding latency/jitter. (#4045)

This commit is contained in:
Raja Subramanian
2025-11-02 14:38:25 +05:30
committed by GitHub
parent e183657cff
commit 9d5c351d36

View File

@@ -182,7 +182,7 @@ func initPacketStats(nodeID string, nodeType livekit.NodeType) {
Name: "ns",
ConstLabels: prometheus.Labels{"node_id": nodeID, "node_type": nodeType.String()},
// 1ms, 2ms, 3ms, 4ms, 5ms, 10ms, 20ms
Buckets: []float64{1000, 2000, 3000, 4000, 5000, 10000, 20000},
Buckets: []float64{1000000, 2000000, 3000000, 4000000, 5000000, 10000000, 20000000},
})
promForwardJitterHist = prometheus.NewHistogram(prometheus.HistogramOpts{
Namespace: livekitNamespace,
@@ -190,7 +190,7 @@ func initPacketStats(nodeID string, nodeType livekit.NodeType) {
Name: "ns",
ConstLabels: prometheus.Labels{"node_id": nodeID, "node_type": nodeType.String()},
// 1ms, 2ms, 3ms, 4ms, 5ms, 10ms, 20ms
Buckets: []float64{1000, 2000, 3000, 4000, 5000, 10000, 20000},
Buckets: []float64{1000000, 2000000, 3000000, 4000000, 5000000, 10000000, 20000000},
})
prometheus.MustRegister(promPacketTotal)