Skip to content

Commit 4f8d30e

Browse files
committed
Fix bug when reporting the node metric
1 parent 91d454c commit 4f8d30e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ func addStorageStats(metrics ScrapedMetrics, ch chan<- prometheus.Metric) {
373373
for _, ns := range nodeStates {
374374
for _, node := range ns.nodes {
375375
ch <- prometheus.MustNewConstMetric(PromStorageNodeStatus,
376-
prometheus.GaugeValue, float64(metrics.StorageStats.KeyspaceCount),
376+
prometheus.GaugeValue, 1.0,
377377
node, ns.state)
378378
}
379379
}

0 commit comments

Comments
 (0)