Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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.
func WithRegisterer ¶
func WithRegisterer(reg prometheus.Registerer) Option
WithRegisterer overrides the default registerer for Promtail.
type Promtail ¶
type Promtail struct {
// contains filtered or unexported fields
}
Promtail is the root struct for Promtail.
Directories
¶
Path | Synopsis |
---|---|
logentry
|
|
stats
Package stats provides primitives for recording metrics across the query path.
|
Package stats provides primitives for recording metrics across the query path. |
ratelimiter
Package ratelimiter implements the Leaky Bucket ratelimiting algorithm with memcached and in-memory backends.
|
Package ratelimiter implements the Leaky Bucket ratelimiting algorithm with memcached and in-memory backends. |
Click to show internal directories.
Click to hide internal directories.