Versions in this module Expand all Collapse all v2 v2.4.3 Feb 9, 2022 Changes in this version + const BatchSize + const BatchWait + const HostLabel + const LatencyLabel + const MaxBackoff + const MaxRetries + const MinBackoff + const ReservedLabelTenantID + const Timeout + var UserAgent = fmt.Sprintf("promtail/%s", build.Version) + type Client interface + StopNow func() + func New(reg prometheus.Registerer, cfg Config, logger log.Logger) (Client, error) + func NewLogger(reg prometheus.Registerer, log log.Logger, cfgs ...Config) (Client, error) + func NewMulti(reg prometheus.Registerer, logger log.Logger, cfgs ...Config) (Client, error) + func NewWithTripperware(reg prometheus.Registerer, cfg Config, logger log.Logger, tp Tripperware) (Client, error) + type Config struct + BackoffConfig backoff.Config + BatchSize int + BatchWait time.Duration + Client config.HTTPClientConfig + ExternalLabels lokiflag.LabelSet + StreamLagLabels flagext.StringSliceCSV + TenantID string + Timeout time.Duration + URL flagext.URLValue + func (c *Config) RegisterFlags(flags *flag.FlagSet) + func (c *Config) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet) + func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error + type MultiClient struct + func (m *MultiClient) Chan() chan<- api.Entry + func (m *MultiClient) Stop() + func (m *MultiClient) StopNow() + type Tripperware func(http.RoundTripper) http.RoundTripper