Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileCollector ¶
type FileCollector struct {
// contains filtered or unexported fields
}
FileCollector implements prometheus.Collector for counter metrics based on matched line counters.
func NewFileCollector ¶
func NewFileCollector(cfg FileCfg) (*FileCollector, error)
type ProcCfg ¶
type ProcCfg struct { // The command, first item being the executable name/path. Command []string // The CWD for the process. Dir string // If the process exits, wait this long before restarting. Defaults to 30 // seconds if unspecified. RetryInterval util.Duration // Configurations for the variable matching on stdout and stderr. Stdout, Stderr []VarCfg }
Configures matching output from a command's output.
type ProcCollector ¶
type ProcCollector struct {
// contains filtered or unexported fields
}
func NewProcCollector ¶
func NewProcCollector(cfg ProcCfg) (*ProcCollector, error)
func (*ProcCollector) Collect ¶
func (pc *ProcCollector) Collect(ch chan<- promm.Metric)
func (*ProcCollector) Describe ¶
func (pc *ProcCollector) Describe(ch chan<- *promm.Desc)
Click to show internal directories.
Click to hide internal directories.