Documentation
¶
Overview ¶
Package input provides the stream sources that feed lines to the exporter. Each input registers itself from init() and is selected with -input.type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LinesProcessed = make(chan struct{})
LinesProcessed is received from by the main loop only between lines. Since the line channel is unbuffered, sending a line only means the main loop got it, not that its metrics are updated, but a send on LinesProcessed completes only once every line sent before it has been fully processed
View Source
var ( SkippedLines = prometheus.NewCounter( prometheus.CounterOpts{ Namespace: "stream_exporter", Subsystem: "line_processing", Name: "lines_skipped_total", Help: "Number of lines skipped because they were longer than -input.max-line-size", }, ) )
Functions ¶
func GetAvailableInputs ¶
func GetAvailableInputs() []string
Types ¶
type DryrunFileInput ¶
type DryrunFileInput struct {
// contains filtered or unexported fields
}
func (DryrunFileInput) StartStream ¶
func (input DryrunFileInput) StartStream(ch chan<- string)
type NamedPipeInput ¶
type NamedPipeInput struct {
// contains filtered or unexported fields
}
func (NamedPipeInput) StartStream ¶
func (input NamedPipeInput) StartStream(ch chan<- string)
type SocketInput ¶
type SocketInput struct {
// contains filtered or unexported fields
}
func (SocketInput) StartStream ¶
func (socket SocketInput) StartStream(ch chan<- string)
type StdinInput ¶ added in v0.4.0
type StdinInput struct {
}
func (StdinInput) StartStream ¶ added in v0.4.0
func (input StdinInput) StartStream(ch chan<- string)
type StreamInput ¶
type StreamInput interface {
StartStream(ch chan<- string)
}
func NewInput ¶
func NewInput(inputType string) (StreamInput, error)
type SyslogInput ¶
type SyslogInput struct {
// contains filtered or unexported fields
}
func (SyslogInput) StartStream ¶
func (input SyslogInput) StartStream(ch chan<- string)
type TailingFileInput ¶
type TailingFileInput struct {
// contains filtered or unexported fields
}
func (TailingFileInput) StartStream ¶
func (input TailingFileInput) StartStream(ch chan<- string)
Click to show internal directories.
Click to hide internal directories.