Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackoffConfig ¶
type BackoffConfig = util.BackoffConfig
type Client ¶
type Client interface {
EntryHandler
// Stop goroutine sending batch of entries.
Stop()
}
Client pushes entries to Loki and can be stopped
type Config ¶
type Config struct {
URL *url.URL
BatchWait time.Duration
BatchSize int
Client HTTPClientConfig
BackoffConfig BackoffConfig
// The labels to add to any time series or alerts when communicating with loki
ExternalLabels model.LabelSet
Timeout time.Duration
}
Config describes configuration for a HTTP pusher client.
type EntryHandler ¶
EntryHandler is something that can "handle" entries.
type HTTPClientConfig ¶
type HTTPClientConfig = config.HTTPClientConfig
Provide the types for convenience and forward compatibility by reducing direct dependencies.
type MultiClient ¶
type MultiClient []Client
MultiClient is client pushing to one or more loki instances.
type MultiError ¶
type MultiError []error
The MultiError type implements the error interface, and contains the Errors used to construct it.
func (*MultiError) Add ¶
func (es *MultiError) Add(err error)
Add adds the error to the error list if it is not nil.
func (MultiError) Err ¶
func (es MultiError) Err() error
Err returns the error list as an error or nil if it is empty.
func (MultiError) Error ¶
func (es MultiError) Error() string
Returns a concatenated string of the contained errors
Click to show internal directories.
Click to hide internal directories.