Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics holds a set of Docker target metrics.
func NewMetrics ¶
func NewMetrics(reg prometheus.Registerer) *Metrics
NewMetrics creates a new set of Docker target metrics. If reg is non-nil, the metrics will be registered.
type Target ¶
type Target struct {
// contains filtered or unexported fields
}
Target enables reading Docker container logs.
func NewTarget ¶
func NewTarget(metrics *Metrics, logger log.Logger, handler loki.EntryHandler, position positions.Positions, containerID string, labels model.LabelSet, relabelConfig []*relabel.Config, client client.APIClient) (*Target, error)
NewTarget starts a new target to read logs from a given container ID.
func (*Target) Details ¶
func (t *Target) Details() interface{}
Details returns target-specific details.
func (*Target) StartIfNotRunning ¶
func (t *Target) StartIfNotRunning()
StartIfNotRunning starts processing container logs. The operation is idempotent , i.e. the processing cannot be started twice.
Click to show internal directories.
Click to hide internal directories.