Versions in this module Expand all Collapse all v3 v3.0.1 Mar 21, 2022 v3.0.0 Mar 21, 2022 Changes in this version + const BatchSize + const BatchWait + const ClientLabel + 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(metrics *Metrics, cfg Config, streamLagLabels []string, logger log.Logger) (Client, error) + func NewLogger(metrics *Metrics, streamLogLabels []string, log log.Logger, cfgs ...Config) (Client, error) + func NewMulti(metrics *Metrics, streamLagLabels []string, logger log.Logger, cfgs ...Config) (Client, error) + func NewWithTripperware(metrics *Metrics, cfg Config, streamLagLabels []string, logger log.Logger, ...) (Client, error) + type Config struct + BackoffConfig backoff.Config + BatchSize int + BatchWait time.Duration + Client config.HTTPClientConfig + ExternalLabels lokiflag.LabelSet + Name string + 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 Configs struct + Configs []Config + StreamLagLabels dskit_flagext.StringSliceCSV + type Metrics struct + func NewMetrics(reg prometheus.Registerer, streamLagLabels []string) *Metrics + 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 Other modules containing this package github.com/pao214/loki/v2