Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTags ¶
GetTags return all the fields of an object in a single map of tags. - rootprefix is the name of the object. - sep is the string separator between 2 layers of deepness (e.g. "test-myfloatarray-1").
func GetTagsRec ¶
Types ¶
type MetricElt ¶
type MetricElt struct { Metric plugin.MetricType // contains filtered or unexported fields }
type Slack ¶
func NewSlackCollector ¶
func NewSlackCollector() *Slack
func (*Slack) CollectMetrics ¶
func (s *Slack) CollectMetrics(metrics []plugin.MetricType) ([]plugin.MetricType, error)
CollectMetrics returns metrics from Slack
func (*Slack) GetConfigPolicy ¶
func (s *Slack) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)
GetConfigPolicy returns a ConfigPolicy
func (*Slack) GetMetricTypes ¶
func (s *Slack) GetMetricTypes(config plugin.ConfigType) (metricTypes []plugin.MetricType, err error)
GetMetricTypes returns the metric types exposed by gopsutil
Click to show internal directories.
Click to hide internal directories.