From 5126a0af7ed8a49308187263d29ae6c2e3c44059 Mon Sep 17 00:00:00 2001 From: rjonczy Date: Thu, 25 Apr 2024 21:05:23 +0200 Subject: [PATCH] fix --- collector.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector.go b/collector.go index 5fd049b..29c438b 100644 --- a/collector.go +++ b/collector.go @@ -107,10 +107,10 @@ func (c *SuccintCollector) processMetrics(data []SuccintProof, ch chan<- prometh ch <- prometheus.MustNewConstMetric(c.metrics["proofs"], prometheus.GaugeValue, float64(countRunningProofs(data)), *succintProject, "RUNNING") // timestamp of latest SUCCESS - ch <- prometheus.MustNewConstMetric(c.metrics["timestamp"], prometheus.GaugeValue, float64(getLatestSuccessTimestamp(data).Unix()), *succintProject, "FAILED") + ch <- prometheus.MustNewConstMetric(c.metrics["timestamp"], prometheus.GaugeValue, float64(getLatestSuccessTimestamp(data).Unix()), *succintProject, "SUCCESS") // timestamp of latest FAILED - ch <- prometheus.MustNewConstMetric(c.metrics["timestamp"], prometheus.GaugeValue, float64(getLatestFailureTimestamp(data).Unix()), *succintProject, "SUCCESS") + ch <- prometheus.MustNewConstMetric(c.metrics["timestamp"], prometheus.GaugeValue, float64(getLatestFailureTimestamp(data).Unix()), *succintProject, "FAILED") return nil }