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"` Servers []string `toml:"servers" override:"servers"` Paths []string `toml:"paths" override:"paths"` Timeout toml.Duration `toml:"timeout" override:"timeout"` }
Config is a Nerve service discovery configuration
func (Config) Prom ¶
func (n Config) Prom(c *config.ScrapeConfig)
Prom writes the prometheus configuration for discoverer into ScrapeConfig
func (Config) PromConfig ¶
func (n Config) PromConfig() *zookeeper.NerveSDConfig
PromConfig returns the prometheus configuration for this discoverer
type Diagnostic ¶ added in v1.4.0
type Diagnostic scraper.Diagnostic
type Service ¶
type Service struct { Configs []Config // contains filtered or unexported fields }
Service is the nerve discovery service
func NewService ¶
func NewService(c []Config, r scraper.Registry, d Diagnostic) *Service
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.