Skip to content

Commit

Permalink
list of types
Browse files Browse the repository at this point in the history
  • Loading branch information
MCBrandenburg committed Jul 26, 2023
1 parent af4a735 commit 8b41bb9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pkg/prom/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -1301,12 +1301,14 @@ func (c *SolidfireCollector) collectAsyncResults(ctx context.Context, ch chan<-
defer mu.Unlock()

if len(ar.Result.AsyncHandles) == 0 {
ch <- prometheus.MustNewConstMetric(
MetricDescriptions.AsyncResultsActive,
prometheus.GaugeValue,
float64(0),
"no async results",
)
for _, s := range []string{"DriveAdd", "BulkVolume", "Clone", "DriveRemoval", "RtfiPendingNode"} {
ch <- prometheus.MustNewConstMetric(
MetricDescriptions.AsyncResultsActive,
prometheus.GaugeValue,
float64(0),
s,
)
}
return nil
}

Expand Down

0 comments on commit 8b41bb9

Please sign in to comment.