Documentation ¶
Index ¶
- type FlusherLoki
- func (f *FlusherLoki) Description() string
- func (f *FlusherLoki) Flush(projectName string, logstoreName string, configName string, ...) error
- func (f *FlusherLoki) Init(context pipeline.Context) error
- func (f *FlusherLoki) IsReady(projectName string, logstoreName string, logstoreKey int64) bool
- func (f *FlusherLoki) SetUrgent(flag bool)
- func (f *FlusherLoki) Stop() error
- func (f *FlusherLoki) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlusherLoki ¶
type FlusherLoki struct { // Convert ilogtail data convert config Convert convertConfig // URL url of loki server URL string // TenantID empty string means single tenant mode TenantID string // MaxMessageWait maximum wait period before sending batch of message MaxMessageWait time.Duration // MaxMessageBytes maximum batch size of message to accrue before sending MaxMessageBytes int // Timeout maximum time to wait for server to respond Timeout time.Duration // MinBackoff minimum backoff time between retries MinBackoff time.Duration // MaxBackoff maximum backoff time between retries MaxBackoff time.Duration // MaxRetries maximum number of retries when sending batches MaxRetries int // DynamicLabels labels to be parsed from logs DynamicLabels []string // StaticLabels labels to add to each log StaticLabels model.LabelSet // ClientConfig http client config ClientConfig promconf.HTTPClientConfig // contains filtered or unexported fields }
func NewFlusherLoki ¶
func NewFlusherLoki() *FlusherLoki
func (*FlusherLoki) Description ¶
func (f *FlusherLoki) Description() string
func (*FlusherLoki) IsReady ¶
func (f *FlusherLoki) IsReady(projectName string, logstoreName string, logstoreKey int64) bool
func (*FlusherLoki) SetUrgent ¶
func (f *FlusherLoki) SetUrgent(flag bool)
func (*FlusherLoki) Stop ¶
func (f *FlusherLoki) Stop() error
func (*FlusherLoki) Validate ¶
func (f *FlusherLoki) Validate() error
Click to show internal directories.
Click to hide internal directories.