You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/metrics/fullnode.go
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -41,10 +41,12 @@ type FullNodeServiceMetrics struct {
41
41
connectionCount*prometheus.GaugeVec
42
42
43
43
// Block Metrics
44
-
maxBlockCost*wrappedPrometheus.LazyGauge
45
-
blockCost*wrappedPrometheus.LazyGauge
46
-
blockFees*wrappedPrometheus.LazyGauge
47
-
kSize*prometheus.CounterVec
44
+
maxBlockCost*wrappedPrometheus.LazyGauge
45
+
blockCost*wrappedPrometheus.LazyGauge
46
+
blockFees*wrappedPrometheus.LazyGauge
47
+
kSize*prometheus.CounterVec
48
+
preValidationTime*wrappedPrometheus.LazyGauge
49
+
validationTime*wrappedPrometheus.LazyGauge
48
50
49
51
// Signage Point Metrics
50
52
totalSignagePoints*wrappedPrometheus.LazyCounter
@@ -78,6 +80,8 @@ func (s *FullNodeServiceMetrics) InitMetrics() {
78
80
s.blockCost=s.metrics.newGauge(chiaServiceFullNode, "block_cost", "Total cost of all transactions in the last block")
79
81
s.blockFees=s.metrics.newGauge(chiaServiceFullNode, "block_fees", "Total fees in the last block")
80
82
s.kSize=s.metrics.newCounterVec(chiaServiceFullNode, "k_size", "Counts of winning plot size since the exporter was last started", []string{"size"})
83
+
s.preValidationTime=s.metrics.newGauge(chiaServiceFullNode, "pre_validation_time", "Last pre_validation_time from the block event")
84
+
s.validationTime=s.metrics.newGauge(chiaServiceFullNode, "validation_time", "Last validation time from the block event")
81
85
82
86
s.totalSignagePoints=s.metrics.newCounter(chiaServiceFullNode, "total_signage_points", "Total number of signage points since the metrics exporter started. Only useful when combined with rate() or similar")
83
87
s.signagePointsSubSlot=s.metrics.newGauge(chiaServiceFullNode, "signage_points_sub_slot", "Number of signage points per sub slot")
@@ -234,6 +238,8 @@ func (s *FullNodeServiceMetrics) Block(resp *types.WebsocketResponse) {
0 commit comments