Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CGROUP_EVENTS = []string{"cycles", "instructions", "cache-references", "cache-misses",
"branch-instructions", "branch-misses", "stalled-cycles-frontend",
"stalled-cycles-backend", "ref-cycles"}
Functions ¶
func Meta ¶
func Meta() *plugin.PluginMeta
Types ¶
type Perfevents ¶
type Perfevents struct { Init func() error // contains filtered or unexported fields }
func NewPerfeventsCollector ¶
func NewPerfeventsCollector() *Perfevents
New initializes Perfevents plugin
func (*Perfevents) CollectMetrics ¶
func (p *Perfevents) CollectMetrics(mts []plugin.MetricType) ([]plugin.MetricType, error)
CollectMetrics returns HW metrics from perf events subsystem for Cgroups present on the host.
func (*Perfevents) GetConfigPolicy ¶
func (p *Perfevents) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)
GetConfigPolicy returns a ConfigPolicy
func (*Perfevents) GetMetricTypes ¶
func (p *Perfevents) GetMetricTypes(_ plugin.ConfigType) ([]plugin.MetricType, error)
GetMetricTypes returns the metric types exposed by perf events subsystem
Click to show internal directories.
Click to hide internal directories.