Documentation ¶
Index ¶
- Constants
- func NewClient(cfg *config.Config, logger log.Logger) (types.LokiClient, error)
- func NewMultiTenantClientWrapper(clientToWrap types.LokiClient, copyLabelSet bool) types.LokiClient
- func NewPromtailClient(cfg client.Config, logger log.Logger) (types.LokiClient, error)
- func NewRemoveTenantIdClient(clientToWrap types.LokiClient) types.LokiClient
- type Entry
- type FakeLokiClient
- type LokiClient
Constants ¶
View Source
const ( MultiTenantClientLabel = "__gardener_multitenant_id__" MultiTenantClientsSeparator = ";" )
Variables ¶
This section is empty.
Functions ¶
func NewMultiTenantClientWrapper ¶ added in v0.37.1
func NewMultiTenantClientWrapper(clientToWrap types.LokiClient, copyLabelSet bool) types.LokiClient
NewMultiTenantClientWrapper returns Loki client which supports more than one tenant id specified under `_gardener_multitenamt_id__` label. The tenants are separated by semicolon.
func NewPromtailClient ¶
NewPromtailClient return promtail client which increments the ForwardedLogs counter on successful call of the Handle function
func NewRemoveTenantIdClient ¶ added in v0.36.0
func NewRemoveTenantIdClient(clientToWrap types.LokiClient) types.LokiClient
NewRemoveTenantIdClient return loki client wich removes the __tenant_id__ value fro the label set
Types ¶
type FakeLokiClient ¶ added in v0.37.0
func (*FakeLokiClient) Stop ¶ added in v0.37.0
func (c *FakeLokiClient) Stop()
func (*FakeLokiClient) StopWait ¶ added in v0.37.0
func (c *FakeLokiClient) StopWait()
type LokiClient ¶ added in v0.36.0
Click to show internal directories.
Click to hide internal directories.