From 4b61efaff63e73f78ee660a4a2a3520d84cfa065 Mon Sep 17 00:00:00 2001 From: lconsuegra Date: Fri, 15 Jan 2021 12:03:40 +0100 Subject: [PATCH] do not request jobs states anymore --- pkg/jobs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/jobs.go b/pkg/jobs.go index 18eec58..923b2d4 100644 --- a/pkg/jobs.go +++ b/pkg/jobs.go @@ -18,9 +18,9 @@ func (e *Exporter) jobsMetrics(ch chan<- prometheus.Metric) error { printer := attr["printer-name"][0].Value.(string) - jobs, err := e.client.GetJobs(printer, "", ipp.JobStateFilterAll, false, 0, 0, []string{"job-state"}) + jobs, err := e.client.GetJobs(printer, "", ipp.JobStateFilterAll, false, 0, 0, []string{}) if err != nil { - e.log.Error(err, "failed to fetch all jobs states") + e.log.Error(err, "failed to fetch all jobs") return err }