sys-exporter/collector/collector.go

15 lines
250 B
Go
Raw Normal View History

2024-12-01 16:00:52 +00:00
package collector
import (
"context"
"github.com/prometheus/client_golang/prometheus"
2024-12-02 17:37:19 +00:00
"go.uber.org/zap"
2024-12-01 16:00:52 +00:00
)
type Collector interface {
Collect() interface{}
PromCollector() prometheus.Collector
2024-12-02 17:37:19 +00:00
Run(ctx context.Context, l *zap.SugaredLogger)
2024-12-01 16:00:52 +00:00
}