From 5862933f7f22000ba0a37f479030e71e325bb446 Mon Sep 17 00:00:00 2001 From: Marvin Javier Date: Mon, 13 Apr 2020 15:20:10 -0500 Subject: [PATCH] added details on cluster faults alerts --- pkg/prom/collector.go | 1 + pkg/prom/metrics.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/prom/collector.go b/pkg/prom/collector.go index f4714bf..4b306f2 100644 --- a/pkg/prom/collector.go +++ b/pkg/prom/collector.go @@ -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, ) } diff --git a/pkg/prom/metrics.go b/pkg/prom/metrics.go index 4edbc17..d10a9a2 100644 --- a/pkg/prom/metrics.go +++ b/pkg/prom/metrics.go @@ -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, )