From a43312b21aa535527ad8886b2aec4e9257b09583 Mon Sep 17 00:00:00 2001 From: Takeru Ohta Date: Tue, 7 Jan 2025 16:58:14 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=82=92=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main_test.go | 2 ++ test/maximum.metrics | 4 ++++ test/sora_cluster_metrics_enabled.metrics | 4 ++++ 3 files changed, 10 insertions(+) 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