From 7639f398a37e2c708f7376209737de4141a5d633 Mon Sep 17 00:00:00 2001 From: Soheil Rahmat Date: Tue, 14 May 2024 14:24:45 +0200 Subject: [PATCH] Revert "Make Printer job counter a counter" This reverts commit 401cc52c15e1f442aee1a6fc237a675fdec7bd20. --- pkg/collector/printer/printer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/collector/printer/printer.go b/pkg/collector/printer/printer.go index 14ccdb160c..ba65b8ea83 100644 --- a/pkg/collector/printer/printer.go +++ b/pkg/collector/printer/printer.go @@ -171,7 +171,7 @@ func (c *collector) collectPrinterStatus(ch chan<- prometheus.Metric) error { ) ch <- prometheus.MustNewConstMetric( c.printerJobCount, - prometheus.CounterValue, + prometheus.GaugeValue, float64(printer.JobCountSinceLastReset), printer.Name, )