Versions in this module Expand all Collapse all v2 v2.5.2 Apr 27, 2022 Changes in this version + type Option func(p *Promtail) + func WithLogger(log log.Logger) Option + func WithRegisterer(reg prometheus.Registerer) Option + type Promtail struct + func New(cfg config.Config, metrics *client.Metrics, dryRun bool, opts ...Option) (*Promtail, error) + func (p *Promtail) ActiveTargets() map[string][]target.Target + func (p *Promtail) Client() client.Client + func (p *Promtail) Run() error + func (p *Promtail) Shutdown()