Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCollector ¶
func NewCollector(ctx context.Context, cc *collector.CollectorContext, collectDuration prometheus.Observer) prometheus.Collector
NewCollector creates a new collector
Types ¶
type StorageDomain ¶
type StorageDomain struct { ID string `xml:"id,attr"` Name string `xml:"name,omitempty"` Storage struct { Path string `xml:"path,omitempty"` Type string `xml:"type,omitempty"` } `xml:"storage,omitempty"` Type string `xml:"type,omitempty"` Available float64 ` xml:"available,omitempty"` Committed float64 `xml:"committed,omitempty"` Used float64 `xml:"used,omitempty"` ExternalStatus string `xml:"external_status,omitempty"` Master bool `xml:"master,omitempty"` DataCenters struct { DataCenter struct { ID string `xml:"id,attr"` } `xml:"data_center"` } `xml:"data_centers,omitempty"` }
StorageDomain represents the storage domain resource
type StorageDomainCollector ¶
type StorageDomainCollector struct {
// contains filtered or unexported fields
}
StorageDomainCollector collects storage domain statistics from oVirt
func (*StorageDomainCollector) Collect ¶
func (c *StorageDomainCollector) Collect(ch chan<- prometheus.Metric)
Collect implements Prometheus Collector interface
func (*StorageDomainCollector) Describe ¶
func (c *StorageDomainCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements Prometheus Collector interface
type StorageDomains ¶
type StorageDomains struct {
Domains []StorageDomain `xml:"storage_domain"`
}
StorageDomains is a collection of storage domains
Click to show internal directories.
Click to hide internal directories.