Skip to content

Commit 5126a0a

Browse files
committed
fix
1 parent f17320f commit 5126a0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

collector.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ func (c *SuccintCollector) processMetrics(data []SuccintProof, ch chan<- prometh
107107
ch <- prometheus.MustNewConstMetric(c.metrics["proofs"], prometheus.GaugeValue, float64(countRunningProofs(data)), *succintProject, "RUNNING")
108108

109109
// timestamp of latest SUCCESS
110-
ch <- prometheus.MustNewConstMetric(c.metrics["timestamp"], prometheus.GaugeValue, float64(getLatestSuccessTimestamp(data).Unix()), *succintProject, "FAILED")
110+
ch <- prometheus.MustNewConstMetric(c.metrics["timestamp"], prometheus.GaugeValue, float64(getLatestSuccessTimestamp(data).Unix()), *succintProject, "SUCCESS")
111111

112112
// timestamp of latest FAILED
113-
ch <- prometheus.MustNewConstMetric(c.metrics["timestamp"], prometheus.GaugeValue, float64(getLatestFailureTimestamp(data).Unix()), *succintProject, "SUCCESS")
113+
ch <- prometheus.MustNewConstMetric(c.metrics["timestamp"], prometheus.GaugeValue, float64(getLatestFailureTimestamp(data).Unix()), *succintProject, "FAILED")
114114

115115
return nil
116116
}

0 commit comments

Comments
 (0)