package promtail

Import Path
	github.com/ic2hrmk/promtail (on go.dev)

Dependency Relation
	imports 12 packages, and imported by 2 packages


Package-Level Type Names (total 7)
/* sort by: | */
( BasicAuthExchanger) SetBasicAuth(username, password string) *net/http.Request
( Client) Close() ( Client) Debugf(format string, args ...interface{}) ( Client) Errorf(format string, args ...interface{}) ( Client) Fatalf(format string, args ...interface{}) ( Client) Infof(format string, args ...interface{}) ( Client) Logf(level Level, format string, args ...interface{}) ( Client) LogfWithLabels(level Level, labels map[string]string, format string, args ...interface{}) ( Client) Panicf(format string, args ...interface{}) ( Client) Ping() (*PongResponse, error) ( Client) Warnf(format string, args ...interface{}) Client : github.com/stretchr/testify/assert.TestingT func NewClient(exchanger StreamsExchanger, labels map[string]string, options ...clientOption) (Client, error) func NewJSONv1Client(lokiAddress string, defaultLabels map[string]string, options ...clientOption) (Client, error) func github.com/pancsta/asyncmachine-go/pkg/telemetry.BindLokiLogger(mach am.Api, client Client)
( Level) String() string Level : expvar.Var Level : fmt.Stringer func Client.Logf(level Level, format string, args ...interface{}) func Client.LogfWithLabels(level Level, labels map[string]string, format string, args ...interface{}) const Debug const Error const Fatal const Info const Panic const Warn
Args []interface{} Format string Timestamp time.Time
Entries []*LogEntry Labels map[string]string Level Level func StreamsExchanger.Push(streams []*LogStream) error
IsReady bool func Client.Ping() (*PongResponse, error) func StreamsExchanger.Ping() (*PongResponse, error)
( StreamsExchanger) Ping() (*PongResponse, error) ( StreamsExchanger) Push(streams []*LogStream) error func NewJSONv1Exchanger(lokiAddress string) StreamsExchanger func NewClient(exchanger StreamsExchanger, labels map[string]string, options ...clientOption) (Client, error)
Package-Level Functions (total 7)
Creates a Promtail client with a custom Streams exchanger NOTE: options are applied before client start
func NewJSONv1Client(lokiAddress string, defaultLabels map[string]string, options ...clientOption) (Client, error)
Creates a client with direct send logic (nor batch neither queue) capable to exchange with Loki v1 API via JSON Read more at: https://github.com/grafana/loki/blob/master/docs/api.md#post-lokiapiv1push
func WithBasicAuth(username, password string) clientOption
func WithErrorCallback(errorHandler func(err error)) clientOption
Package-Level Constants (total 6)
const Debug Level = 0
const Error Level = 3
const Fatal Level = 4
const Info Level = 1
const Panic Level = 5
const Warn Level = 2