sys-exporter/collector/collector.go

14 lines
250 B
Go

package collector
import (
"context"
"github.com/prometheus/client_golang/prometheus"
"go.uber.org/zap"
)
type Collector interface {
Collect() interface{}
PromCollector() prometheus.Collector
Run(ctx context.Context, l *zap.SugaredLogger)
}