prometheus-paperless-exporter/collector.go
Michael Hanselmann f2cc188833
Some checks failed
Run tests / test (push) Has been cancelled
Release / release (push) Has been cancelled
Initial commit
Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-07-03 00:16:08 +02:00

22 lines
473 B
Go

package main
import (
"time"
"github.com/hansmi/paperhooks/pkg/client"
"github.com/prometheus/client_golang/prometheus"
)
func newCollector(cl *client.Client, timeout time.Duration) prometheus.Collector {
return &multiCollector{
timeout: timeout,
members: []multiCollectorMember{
newTagCollector(cl),
newCorrespondentCollector(cl),
newDocumentTypeCollector(cl),
newStoragePathCollector(cl),
newTaskCollector(cl),
newLogCollector(cl),
},
}
}