Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Label reserved to override the tenant ID while processing // pipeline stages ReservedLabelTenantID = "__tenant_id__" LatencyLabel = "filename" HostLabel = "host" )
Variables ¶
View Source
var UserAgent = fmt.Sprintf("grafana/%s", setting.BuildVersion)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Chan() chan<- Entry Stop() StopNow() }
Client pushes entries to Loki and can be stopped
func New ¶
func New(reg prometheus.Registerer, cfg Config, logger log.Logger) (Client, error)
New makes a new Client.
func NewWithTripperware ¶
func NewWithTripperware(reg prometheus.Registerer, cfg Config, logger log.Logger, tp Tripperware) (Client, error)
NewWithTripperware creates a new Loki client with a custom tripperware.
type Config ¶
type Config struct { URL flagext.URLValue BatchWait time.Duration BatchSize int Client config.HTTPClientConfig BackoffConfig backoff.Config Timeout time.Duration TenantID string }
Config describes configuration for a HTTP pusher client.
type Tripperware ¶
type Tripperware func(http.RoundTripper) http.RoundTripper
Tripperware can wrap a roundtripper.
Click to show internal directories.
Click to hide internal directories.