Versions in this module Expand all Collapse all v0 v0.1.0 Dec 16, 2023 Changes in this version + const BatchSize + const BatchWait + const HostLabel + const JSONContentType + const LatencyLabel + const MaxBackoff + const MaxRetries + const MinBackoff + const ReservedLabelTenantID + const Timeout + var UserAgent = fmt.Sprintf("promtail/%s", version.Version) + func NewBatch(entries ...Entry) *batch + type Client struct + func New(cfg Config) (*Client, error) + func NewWithDefault(url string) (*Client, error) + func NewWithLogger(cfg Config, logger log.Logger) (*Client, error) + func (c *Client) Handle(ls model.LabelSet, t time.Time, s string) error + func (c *Client) SendBatch(tenantID string, batch *batch) + func (c *Client) Stop() + func (c *Client) UnregisterLatencyMetric(labels model.LabelSet) + type Config struct + BackoffConfig backoff.BackoffConfig + BatchSize int + BatchWait time.Duration + Client config.HTTPClientConfig + EncodeJson bool + ExternalLabels labelutil.LabelSet + TenantID string + Timeout time.Duration + URL urlutil.URLValue + func NewDefaultConfig(url string) (Config, error) + 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 Entry struct + Labels model.LabelSet