Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCollector ¶
func NewCollector(ctx context.Context, cc *collector.CollectorContext, collectNetwork bool, collectDuration prometheus.Observer) prometheus.Collector
NewCollector creates a new collector
Types ¶
type Host ¶
type Host struct { ID string `xml:"id,attr"` Name string `xml:"name"` Cluster struct { ID string `xml:"id,attr"` } `xml:"cluster"` Status string `xml:"status"` CPU struct { Speed int `xml:"speed"` Topology struct { Cores int `xml:"cores"` Sockets int `xml:"sockets"` Threads int `xml:"threads"` } `xml:"topology"` } `xml:"cpu"` Memory int64 `xml:"memory"` }
Host represents the host resource
type HostCollector ¶
type HostCollector struct {
// contains filtered or unexported fields
}
HostCollector collects host statistics from oVirt
func (*HostCollector) Collect ¶
func (c *HostCollector) Collect(ch chan<- prometheus.Metric)
Collect implements Prometheus Collector interface
func (*HostCollector) Describe ¶
func (c *HostCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements Prometheus Collector interface
Click to show internal directories.
Click to hide internal directories.