Skip to content

Commit 084684f

Browse files
committed
Added capacity to array space metric
1 parent b2c0b7d commit 084684f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ GOCMD=go
22
GOTEST=$(GOCMD) test
33
GOVET=$(GOCMD) vet
44
BINARY_NAME=pure-fb-om-exporter
5-
VERSION?=0.9.0
5+
VERSION?=0.9.1
66
SERVICE_PORT?=9491
77
DOCKER_REGISTRY?= quay.io/purestorage/
88
EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true

internal/openmetrics-exporter/arrays_space_collector.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ func (c *ArraySpaceCollector) Collect(ch chan<- prometheus.Metric) {
6262
as.Parity,
6363
t,
6464
)
65+
ch <- prometheus.MustNewConstMetric(
66+
c.SpaceDesc,
67+
prometheus.GaugeValue,
68+
float64(as.Capacity),
69+
t, "capacity",
70+
)
6571
}
6672
}
6773

0 commit comments

Comments
 (0)