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"` // Targets is a list of targets identified by a label set. Each target is // uniquely identifiable in the group by its address label. Targets []string `toml:"targets" override:"targets"` // Labels is a set of labels that is common across all targets in the group. Labels map[string]string `toml:"labels" override:"labels"` }
Config is a static list of of labeled target groups
func (*Config) Init ¶
func (s *Config) Init()
Init the static configuration to an empty set of structures
func (Config) Prom ¶
func (s Config) Prom(c *config.ScrapeConfig)
Prom writes the prometheus configuration for discoverer into ScrapeConfig
func (Config) PromConfig ¶
func (s Config) PromConfig() []*config.TargetGroup
PromConfig returns the prometheus configuration for this discoverer
type Service ¶
type Service struct { Configs []Config // contains filtered or unexported fields }
Service is the static discovery service
func NewService ¶
NewService creates a new unopened service
func (*Service) TestOptions ¶
func (s *Service) TestOptions() interface{}
TestOptions returns an object that is in turn passed to Test.
Click to show internal directories.
Click to hide internal directories.