Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func NewCluster ¶
func NewCluster(c Config, d Diagnostic) (*Cluster, error)
type Config ¶
type Config struct { Enabled bool `toml:"enabled" override:"enabled"` ID string `toml:"id" override:"id"` InCluster bool `toml:"in-cluster" override:"in-cluster"` APIServers []string `toml:"api-servers" override:"api-servers"` Token string `toml:"token" override:"token,redact"` CAPath string `toml:"ca-path" override:"ca-path"` Namespace string `toml:"namespace" override:"namespace"` Resource string `toml:"resource" override:"resource"` }
func (Config) Prom ¶
func (c Config) Prom(conf *config.ScrapeConfig)
Prom writes the prometheus configuration for discoverer into ScrapeConfig
type Diagnostic ¶
type Diagnostic interface {
WithClusterContext(cluster string) Diagnostic
}
Doesn't actually get used, but its good to have a template here already
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the kubernetes discovery and autoscale service
func NewService ¶
NewService creates a new unopened k8s service
func (*Service) TestOptions ¶
func (s *Service) TestOptions() interface{}
Click to show internal directories.
Click to hide internal directories.