Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶ added in v1.3.0
func (c Config) Prom(conf *config.ScrapeConfig)
Prom writes the prometheus configuration for discoverer into ScrapeConfig
type Configs ¶ added in v1.3.0
type Configs []Config
func (*Configs) UnmarshalTOML ¶ added in v1.3.0
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.