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)
( 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/imroc/req/v3.Logger
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.MachBindLokiLogger(mach am.Api, client Client)
( Level) String() string
Level : github.com/pancsta/asyncmachine-go/internal/nofmt.Stringer
Level : github.com/pandatix/go-abnf.ElemItf
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
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 func WithSendBatchSize(batchSize uint) clientOption func WithSendBatchTimeout(sendTimeout time.Duration) clientOption
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |