Skip to content

Commit

Permalink
track lost packets by addr
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn committed Dec 27, 2024
1 parent edf04b0 commit 965515a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/corro-agent/src/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,9 @@ impl Transport {
.set(stats.path.congestion_events as f64);
gauge!("corro.transport.path.black_holes_detected", "addr" => addr.to_string())
.set(stats.path.black_holes_detected as f64);
gauge!("corro.transport.path.lost_packets", "addr" => addr.to_string())
.set(stats.path.lost_packets as f64);

acc.path.lost_packets += stats.path.lost_packets;
acc.path.lost_bytes += stats.path.lost_bytes;
acc.path.sent_packets += stats.path.sent_packets;
acc.path.sent_plpmtud_probes += stats.path.sent_plpmtud_probes;
Expand Down Expand Up @@ -319,7 +320,6 @@ impl Transport {

acc
});
gauge!("corro.transport.path.lost_packets").set(stats.path.lost_packets as f64);
gauge!("corro.transport.path.lost_bytes").set(stats.path.lost_bytes as f64);
gauge!("corro.transport.path.sent_packets").set(stats.path.sent_packets as f64);
gauge!("corro.transport.path.sent_plpmtud_probes")
Expand Down

0 comments on commit 965515a

Please sign in to comment.