Versions in this module Expand all Collapse all v0 v0.54.2 Jan 28, 2025 Changes in this version + var DefaultSDConfig = SDConfig + type Discovery struct + func NewDiscovery(conf *SDConfig, logger log.Logger, metrics discovery.DiscovererMetrics) (*Discovery, error) + func (d *Discovery) Run(ctx context.Context, ch chan<- []*targetgroup.Group) + type SDConfig struct + Files []string + RefreshInterval model.Duration + func (*SDConfig) Name() string + func (*SDConfig) NewDiscovererMetrics(reg prometheus.Registerer, rmi discovery.RefreshMetricsInstantiator) discovery.DiscovererMetrics + 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) v0.54.1-promotel-v1.0.0 Jan 28, 2025