aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--node/api.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/node/api.go b/node/api.go
index 02de526f4..ccca8ca36 100644
--- a/node/api.go
+++ b/node/api.go
@@ -344,6 +344,11 @@ func (api *PublicDebugAPI) Metrics(raw bool) (map[string]interface{}, error) {
"Overall": float64(metric.Count()),
}
+ case metrics.Gauge:
+ root[name] = map[string]interface{}{
+ "Overall": float64(metric.Value()),
+ }
+
case metrics.Meter:
root[name] = map[string]interface{}{
"AvgRate01Min": metric.Rate1(),