Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct { config.InstanceConfig NamePrefix string `toml:"name_prefix"` Progs string `toml:"progs"` Logs []string `toml:"logs"` IgnoreFileRegPattern string `toml:"ignore_filename_regex_pattern"` OverrideTimeZone string `toml:"override_timezone"` EmitProgLabel string `toml:"emit_prog_label"` EmitMetricTimestamp string `toml:"emit_metric_timestamp"` PollInterval time.Duration `toml:"poll_interval"` PollLogInterval time.Duration `toml:"poll_log_interval"` MetricPushInterval time.Duration `toml:"metric_push_interval"` MaxRegexpLen int `toml:"max_regexp_length"` MaxRecursionDepth int `toml:"max_recursion_depth"` SyslogUseCurrentYear string `toml:"syslog_use_current_year"` // true LogRuntimeErrors string `toml:"vm_logs_runtime_errors"` // true // contains filtered or unexported fields }
func (*Instance) Gather ¶
func (ins *Instance) Gather(slist *types.SampleList)
Gather retrieves all the configured fields and tables. Any error encountered does not halt the process. The errors are accumulated and returned at the end. func (s *Instance) Gather(acc telegraf.Accumulator) error {
type MTail ¶
type MTail struct { config.PluginConfig Instances []*Instance `toml:"instances"` }
MTail holds the configuration for the plugin.
func (*MTail) Description ¶
Description returns a one-sentence description on the input.
func (*MTail) GetInstances ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
exporter
Package exporter provides the interface for getting metrics out of mtail, into your monitoring system of choice.
|
Package exporter provides the interface for getting metrics out of mtail, into your monitoring system of choice. |
metrics
Package metrics provides storage for metrics being recorded by mtail programs.
|
Package metrics provides storage for metrics being recorded by mtail programs. |
runtime/code
Package code contains the bytecode instructions for the mtail virtual machine.
|
Package code contains the bytecode instructions for the mtail virtual machine. |
runtime/compiler/opt
package opt has a compiler pass for making optimisations on the AST.
|
package opt has a compiler pass for making optimisations on the AST. |
runtime/compiler/parser
Package parser implements the parse phase of the mtail program compilation.
|
Package parser implements the parse phase of the mtail program compilation. |
runtime/compiler/position
Package position implements a data structure for storing source code positions.
|
Package position implements a data structure for storing source code positions. |
runtime/vm
Package vm provides a virtual machine environment for executing mtail bytecode.
|
Package vm provides a virtual machine environment for executing mtail bytecode. |
tailer
Package tailer provides a class that is responsible for tailing log files and extracting new log lines to be passed into the virtual machines.
|
Package tailer provides a class that is responsible for tailing log files and extracting new log lines to be passed into the virtual machines. |
tailer/logstream
Package logstream provides an interface and implementations of log source streaming.
|
Package logstream provides an interface and implementations of log source streaming. |
testutil
Reimport the go-cmp package as the name 'cmp' conflicts with the cmp instruction in the vm.
|
Reimport the go-cmp package as the name 'cmp' conflicts with the cmp instruction in the vm. |
Click to show internal directories.
Click to hide internal directories.