Versions in this module Expand all Collapse all v2 v2.30.1 Jul 6, 2021 Changes in this version + var DefaultSDConfig = SDConfig + type Discovery struct + func NewDiscovery(conf *SDConfig, logger log.Logger) *Discovery + func (d *Discovery) Run(ctx context.Context, ch chan<- []*targetgroup.Group) + type SDConfig struct + Files []string + RefreshInterval model.Duration + func (*SDConfig) Name() string + func (c *SDConfig) NewDiscoverer(opts discovery.DiscovererOptions) (discovery.Discoverer, error) + func (c *SDConfig) SetDirectory(dir string) + func (c *SDConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type TimestampCollector struct + Description *prometheus.Desc + func NewTimestampCollector() *TimestampCollector + func (t *TimestampCollector) Collect(ch chan<- prometheus.Metric) + func (t *TimestampCollector) Describe(ch chan<- *prometheus.Desc) Other modules containing this package github.com/wangjc0216/prometheus