Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { api.EntryHandler // Stop goroutine sending batch of entries. Stop() }
Client pushes entries to Loki and can be stopped
type Config ¶
type Config struct { URL flagext.URLValue BatchWait time.Duration BatchSize int Client config.HTTPClientConfig `yaml:",inline"` BackoffConfig util.BackoffConfig `yaml:"backoff_config"` // The labels to add to any time series or alerts when communicating with loki ExternalLabels lokiflag.LabelSet `yaml:"external_labels,omitempty"` Timeout time.Duration `yaml:"timeout"` }
Config describes configuration for a HTTP pusher client.
func (*Config) RegisterFlags ¶
RegisterFlags registers flags.
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implement Yaml Unmarshaler
type MultiClient ¶
type MultiClient []Client
MultiClient is client pushing to one or more loki instances.
Click to show internal directories.
Click to hide internal directories.