Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ID string `json:"id" yaml:"id" toml:"id"` LogFile string `json:"log_file" yaml:"log_file" toml:"log_file"` Metrics []*Metric `json:"metrics" yaml:"metrics" toml:"metrics"` }
Config defines a log to watch.
type Metric ¶
type Metric struct { Matcher *regexp.Regexp Namer *template.Template Tagger *template.Template Type string `json:"type" yaml:"type" toml:"type"` ValueKey string Match string `json:"match" yaml:"match" toml:"match"` Name string `json:"name" yaml:"name" toml:"name"` Tags string `json:"tags" toml:"tags" yaml:"tags"` MatchParts []string }
Metric is a metric definition for the log config.
Click to show internal directories.
Click to hide internal directories.