Versions in this module Expand all Collapse all v2 v2.30.1 Jul 6, 2021 Changes in this version + var DefaultNerveSDConfig = NerveSDConfig + var DefaultServersetSDConfig = ServersetSDConfig + type Discovery struct + func NewDiscovery(srvs []string, timeout time.Duration, paths []string, logger log.Logger, ...) (*Discovery, error) + func NewNerveDiscovery(conf *NerveSDConfig, logger log.Logger) (*Discovery, error) + func NewServersetDiscovery(conf *ServersetSDConfig, logger log.Logger) (*Discovery, error) + func (d *Discovery) Run(ctx context.Context, ch chan<- []*targetgroup.Group) + type NerveSDConfig struct + Paths []string + Servers []string + Timeout model.Duration + func (*NerveSDConfig) Name() string + func (c *NerveSDConfig) NewDiscoverer(opts discovery.DiscovererOptions) (discovery.Discoverer, error) + func (c *NerveSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type ServersetSDConfig struct + Paths []string + Servers []string + Timeout model.Duration + func (*ServersetSDConfig) Name() string + func (c *ServersetSDConfig) NewDiscoverer(opts discovery.DiscovererOptions) (discovery.Discoverer, error) + func (c *ServersetSDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error Other modules containing this package github.com/wangjc0216/prometheus