mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-26 05:29:03 +01:00
collector: publish base units and _total counter names (#2743)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -35,7 +35,7 @@ func BenchmarkCollector(b *testing.B) {
|
||||
|
||||
func TestCollector(t *testing.T) {
|
||||
metrics := testutils.TestCollector(t, printer.New, nil)
|
||||
testutils.RequireFixtureMetric(t, metrics, printer.Name, "windows_printer_job_count", prometheus.Labels{"printer": "CIPrinter"})
|
||||
testutils.RequireFixtureMetric(t, metrics, printer.Name, "windows_printer_jobs", prometheus.Labels{"printer": "CIPrinter"})
|
||||
}
|
||||
|
||||
// TestCollectorWithoutMISession checks that the collector does not depend on WMI.
|
||||
|
||||
Reference in New Issue
Block a user