Versions in this module Expand all Collapse all v0 v0.2.0 Nov 27, 2024 Changes in this version + func NewMetricSet(name, help string) *metricSet + type Config struct + Targets []Target + func ReadConfig(mapper meta.RESTMapper, path string) (Config, error) + type Exporter struct + func NewExporter(updatesChan <-chan TargetsStatusUpdate, server Server, ...) *Exporter + func (e *Exporter) Start(ctx context.Context) error + type Metric struct + Labels prom.Labels + Value float64 + type MetricSet interface + Update func(metrics []Metric) + type MonitorPoller struct + func NewMonitorPoller(interval time.Duration, evaluator *eval.Evaluator, cfg Config) *MonitorPoller + func (s *MonitorPoller) Start(ctx context.Context) <-chan TargetsStatusUpdate + type Server interface + Handle func(pattern string, handler http.Handler) + Start func(ctx context.Context) error + type SimpleServer struct + func NewSimpleServer(host string, port int) *SimpleServer + func (s *SimpleServer) Handle(pattern string, handler http.Handler) + func (s *SimpleServer) Start(ctx context.Context) error + type Target struct + Category string + Kinds []schema.GroupKind + type TargetStatuses struct + Statuses []status.ObjectStatus + Target Target + type TargetsStatusUpdate struct + Statuses []TargetStatuses + func (t TargetsStatusUpdate) ToStatusUpdate() eval.StatusUpdate + type YAMLConfig struct + Targets []struct{ ... }