Documentation ¶ Index ¶ func Register(plugin Plugin) type Plugin func Plugins() []Plugin Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Register ¶ func Register(plugin Plugin) Register a plugin. Use this function before starting a Metrononme server. Types ¶ type Plugin ¶ type Plugin interface { // Name of the plugin. Name() string // Snapshot asks the plugin to return a snapshot of the metrics. Snapshot() (interface{}, error) } Plugin is a component that watches a resource and can return metrics. func Plugins ¶ func Plugins() []Plugin Plugins returns a list of all registered plugins. Source Files ¶ View all Source files plugin.go registry.go Directories ¶ Show internal Expand all Path Synopsis elasticsearch loadavg mem swap Click to show internal directories. Click to hide internal directories.