Skip to content

Commit

Permalink
added details on cluster faults alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
mjavier2k committed Apr 13, 2020
1 parent 79d0343 commit 5862933
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/prom/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ func (c *solidfireCollector) Collect(ch chan<- prometheus.Metric) {
strconv.FormatBool(f.Resolved),
fmt.Sprintf("%f", f.NodeHardwareFaultID),
fmt.Sprintf("%f", f.DriveID),
f.Details,
)
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/prom/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ func NewMetricDescriptions(namespace string) *Descriptions {
d.ClusterActiveFaults = prometheus.NewDesc(
prometheus.BuildFQName(namespace, "", "cluster_active_faults"),
"List of any active faults detected on the cluster",
[]string{"node_id", "node_name", "code", "severity", "type", "service_id", "resolved", "node_hardware_fault_id", "drive_id"},
[]string{"node_id", "node_name", "code", "severity", "type", "service_id", "resolved", "node_hardware_fault_id", "drive_id", "details"},
nil,
)

Expand Down

0 comments on commit 5862933

Please sign in to comment.