Documentation
¶
Overview ¶
Package scanner parses log files
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Metric ¶
type Metric struct {
// contains filtered or unexported fields
}
Metric defines the prometheus counter to increment when a line matches the regular expression.
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner scans a log file to extract the given metrics.
func FromConfig ¶
func FromConfig( scan *store.Scan, config *Config, registerer prometheus.Registerer, ) (*Scanner, error)
FromConfig creates a new scanner, based on the configuration provided.
func (*Scanner) GetLastModified ¶
GetLastModified returns the last time the scanner configuration was updated.
Click to show internal directories.
Click to hide internal directories.