Versions in this module Expand all Collapse all v1 v1.6.2 Jan 17, 2024 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", version.Version) + type Client interface + Stop func() + func New(cfg Config, logger log.Logger) (Client, error) + func NewLogger(log log.Logger, externalLabels lokiflag.LabelSet, cfgs ...Config) (Client, error) + func NewMulti(logger log.Logger, externalLabels flagext.LabelSet, cfgs ...Config) (Client, error) + type Config struct + BackoffConfig util.BackoffConfig + BatchSize int + BatchWait time.Duration + Client config.HTTPClientConfig + ExternalLabels lokiflag.LabelSet + 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 []Client + func (m MultiClient) Handle(labels model.LabelSet, time time.Time, entry string) error + func (m MultiClient) Stop()