diff --git a/main_test.go b/main_test.go index 0f208a6..41d4efd 100644 --- a/main_test.go +++ b/main_test.go @@ -35,6 +35,7 @@ var ( "plumtree": { "total_sent_gossip": 1, "total_received_gossip": 2, + "total_received_gossip_hop": 4, "total_sent_ihave": 3, "total_received_ihave": 4, "total_sent_graft": 5, @@ -55,6 +56,7 @@ var ( "plumtree": { "total_sent_gossip": 101, "total_received_gossip": 102, + "total_received_gossip_hop": 150, "total_sent_ihave": 103, "total_received_ihave": 104, "total_sent_graft": 105, diff --git a/test/maximum.metrics b/test/maximum.metrics index c2393d2..e570848 100644 --- a/test/maximum.metrics +++ b/test/maximum.metrics @@ -50,6 +50,10 @@ sora_cluster_relay_plumtree_ignored_total{node_name="node-02"} 111 # TYPE sora_cluster_relay_plumtree_received_gossip_total counter sora_cluster_relay_plumtree_received_gossip_total{node_name="node-01"} 2 sora_cluster_relay_plumtree_received_gossip_total{node_name="node-02"} 102 +# HELP sora_cluster_relay_plumtree_received_gossip_hop_total The total number of hop count of Plumtree GOSSIP messages received by the cluster relay. +# TYPE sora_cluster_relay_plumtree_received_gossip_hop_total counter +sora_cluster_relay_plumtree_received_gossip_hop_total{node_name="node-01"} 4 +sora_cluster_relay_plumtree_received_gossip_hop_total{node_name="node-02"} 150 # HELP sora_cluster_relay_plumtree_received_graft_total The total number of Plumtree GRAFT messages received by the cluster relay. # TYPE sora_cluster_relay_plumtree_received_graft_total counter sora_cluster_relay_plumtree_received_graft_total{node_name="node-01"} 6 diff --git a/test/sora_cluster_metrics_enabled.metrics b/test/sora_cluster_metrics_enabled.metrics index e3f6867..6e13a48 100644 --- a/test/sora_cluster_metrics_enabled.metrics +++ b/test/sora_cluster_metrics_enabled.metrics @@ -50,6 +50,10 @@ sora_cluster_relay_plumtree_ignored_total{node_name="node-02"} 111 # TYPE sora_cluster_relay_plumtree_received_gossip_total counter sora_cluster_relay_plumtree_received_gossip_total{node_name="node-01"} 2 sora_cluster_relay_plumtree_received_gossip_total{node_name="node-02"} 102 +# HELP sora_cluster_relay_plumtree_received_gossip_hop_total The total number of hop count of Plumtree GOSSIP messages received by the cluster relay. +# TYPE sora_cluster_relay_plumtree_received_gossip_hop_total counter +sora_cluster_relay_plumtree_received_gossip_hop_total{node_name="node-01"} 4 +sora_cluster_relay_plumtree_received_gossip_hop_total{node_name="node-02"} 150 # HELP sora_cluster_relay_plumtree_received_graft_total The total number of Plumtree GRAFT messages received by the cluster relay. # TYPE sora_cluster_relay_plumtree_received_graft_total counter sora_cluster_relay_plumtree_received_graft_total{node_name="node-01"} 6