Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/clients/cmd/fluent-bit/client.go

15 lines
469 B

package main
import (
"github.com/go-kit/log"
"github.com/grafana/loki/clients/pkg/promtail/client"
)
// NewClient creates a new client based on the fluentbit configuration.
func NewClient(cfg *config, logger log.Logger, metrics *client.Metrics, streamLagLabels []string) (client.Client, error) {
if cfg.bufferConfig.buffer {
return NewBuffer(cfg, logger, metrics, streamLagLabels)
}
return client.New(metrics, cfg.clientConfig, streamLagLabels, 0, logger)
}