storagedomain

package
v0.0.0-...-b524ce4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name(ctx context.Context, id string, cl collector.Client) string

Name retrieves domain name

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

func Get

Get retrieves domain information

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL