Versions in this module Expand all Collapse all v1 v1.6.3 Jan 15, 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 + StopNow func() + func New(reg prometheus.Registerer, cfg Config, logger log.Logger) (Client, error) + func NewLogger(reg prometheus.Registerer, log log.Logger, externalLabels lokiflag.LabelSet, ...) (Client, error) + func NewMulti(reg prometheus.Registerer, logger log.Logger, externalLabels flagext.LabelSet, ...) (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 struct + func (m *MultiClient) Chan() chan<- api.Entry + func (m *MultiClient) Stop() + func (m *MultiClient) StopNow()