Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(ci CollectorInterface)
Types ¶
type CollectionManager ¶
type CollectionManager struct {
Collectors map[string]CollectorInterface
}
var Cm *CollectionManager
func (*CollectionManager) Add ¶
func (cm *CollectionManager) Add(ci CollectorInterface)
func (*CollectionManager) Empty ¶
func (cm *CollectionManager) Empty() bool
func (*CollectionManager) Find ¶
func (cm *CollectionManager) Find(name string) CollectorInterface
func (*CollectionManager) Start ¶
func (cm *CollectionManager) Start(names ...string)
type CollectorInterface ¶
type CollectorInterface interface {
Name() string
Description() string
Gather() (types.MetricsSection, error)
}
Click to show internal directories.
Click to hide internal directories.