Documentation
¶
Index ¶
- Constants
- Variables
- func ClearRegistry()
- func ClearUserParamMetrics() (metricsFallback map[string]*Metric)
- func RegisterMetrics(impl Accessor, name string, params ...string)
- func RestoreUserParamMetrics(metrics map[string]*Metric)
- type Accessor
- type Base
- type Collector
- type Configurator
- type ContextProvider
- type Exporter
- type GlobalOptions
- type Meta
- type Metric
- type RegexpMatcher
- type Request
- type Result
- type ResultWriter
- type Runner
- type SystemOptions
- type Watcher
Constants ¶
View Source
const (
DefaultCapacity = 100
)
Variables ¶
View Source
var UnsupportedMetricError error
Functions ¶
func ClearRegistry ¶
func ClearRegistry()
Types ¶
type Accessor ¶
type Base ¶
type Collector ¶
Collector - interface for periodical metric collection
type Configurator ¶
type Configurator interface { // Configure method passes global and private plugin configuration after it has been activated. Configure(globalOptions *GlobalOptions, privateOptions interface{}) // Validate method validates private plugin configuration during agent startup. Validate(privateOptions interface{}) error }
Configurator - interface for plugin configuration in agent conf files
type ContextProvider ¶
type ContextProvider interface { ClientID() uint64 ItemID() uint64 Output() ResultWriter Meta() *Meta GlobalRegexp() RegexpMatcher }
type Exporter ¶
type Exporter interface { // Export method exports data based on the key 'key' and its parameters 'params'. Export(key string, params []string, context ContextProvider) (interface{}, error) }
Exporter - interface for exporting collected metrics
type GlobalOptions ¶
GlobalOptions are global agent configuration parameters that can be accessed by plugins. In most cases it's recommended to allow plugins overriding global configuration parameters they are using with plugin specific parameters.
type Meta ¶
type Meta struct { Data interface{} // contains filtered or unexported fields }
type RegexpMatcher ¶
type Request ¶
type Result ¶
type ResultWriter ¶
type Runner ¶
type Runner interface { // Start method activates plugin. Start() // Stop method deactivates pluing. Stop() }
Runner - interface for managing background processes
type SystemOptions ¶
type Watcher ¶
type Watcher interface { // Watch method instructs plugin to watch for events based on item configuration in 'requests'. Watch(requests []*Request, context ContextProvider) }
Watcher - interface for fully custom monitoring
Click to show internal directories.
Click to hide internal directories.