Skip to content

Commit

Permalink
fix(): Fix pkt loss metric (#55)
Browse files Browse the repository at this point in the history
Signed-off-by: Bharath Horatti <[email protected]>
  • Loading branch information
bharath-avesha authored Nov 27, 2024
1 parent c054b0c commit 345a44e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ func RecordLatencyMetric(latency float64) {
}

// Records packet loss for this sidecar
func RecordPktLossMetric(latency float64) {
func RecordPktLossMetric(pktloss float64) {
// Set Pkt Loss Gauge in prometheus
LatencyMetrics.Set(latency)
PktLossMetrics.Set(pktloss)
}

// Records rx bytes for this sidecar
Expand Down

0 comments on commit 345a44e

Please sign in to comment.