sys-exporter/collector/collector.go

14 lines
209 B
Go
Raw Normal View History

2024-12-01 16:00:52 +00:00
package collector
import (
"context"
"github.com/prometheus/client_golang/prometheus"
)
type Collector interface {
Collect() interface{}
PromCollector() prometheus.Collector
Run(ctx context.Context)
}