Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IDName = "container_id"
IDName is the name that is used to identify the id being collected in the metric
Functions ¶
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector provides the ability to collect container stats and export them in the prometheus format
func NewCollector ¶
NewCollector registers the collector with the provided namespace and returns it so that cgroups can be added for collection
func (*Collector) Add ¶
Add adds the provided cgroup and id so that metrics are collected and exported
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
Collect prometheus metrics
func (*Collector) Describe ¶
func (c *Collector) Describe(ch chan<- *prometheus.Desc)
Describe prometheus metrics
Click to show internal directories.
Click to hide internal directories.