Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultTimestampLocal is a Valuer that returns the current time in UTC // when bound. DefaultTimestampLocal = log.TimestampFormat( func() time.Time { return time.Now().Local() }, time.RFC3339Nano, ) )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(p *Promtail)
Option is a function that can be passed to the New method of Promtail and customize the Promtail that is created.
func WithLogger ¶
WithLogger overrides the default logger for Promtail.
type Promtail ¶
type Promtail struct {
// contains filtered or unexported fields
}
Promtail is the root struct for Promtail...
Click to show internal directories.
Click to hide internal directories.