collector

package
v1.2.2-0...-4b8647b Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	Describe(chan<- *prometheus.Desc)
	Collect(chan<- prometheus.Metric)
	String() string
}

type Conntrack

type Conntrack struct {
	Log *zerolog.Logger
	// contains filtered or unexported fields
}

func NewConntrack

func NewConntrack(log *zerolog.Logger) *Conntrack

func (*Conntrack) Collect

func (c *Conntrack) Collect(ch chan<- prometheus.Metric)

func (*Conntrack) Describe

func (c *Conntrack) Describe(ch chan<- *prometheus.Desc)

func (*Conntrack) String

func (c *Conntrack) String() string

type Domain

type Domain struct {
	// contains filtered or unexported fields
}

func NewDomain

func NewDomain(ctx context.Context, libvirtMux *sync.Mutex, sshMux *sync.Mutex, cfg cfg.Cfg, log *zerolog.Logger, libvirtConn *libvirt.Connect, sshConn *ssh.Client) *Domain

func (*Domain) Collect

func (c *Domain) Collect(ch chan<- prometheus.Metric)

func (*Domain) Describe

func (c *Domain) Describe(ch chan<- *prometheus.Desc)

func (*Domain) String

func (c *Domain) String() string

type DomainMem

type DomainMem struct {
	// contains filtered or unexported fields
}

type DomainPorts

type DomainPorts struct {
	// contains filtered or unexported fields
}

type DomainStats

type DomainStats struct {
	// contains filtered or unexported fields
}

type Hypervisor

type Hypervisor struct {
	Log *zerolog.Logger
	// contains filtered or unexported fields
}

func NewHypervisor

func NewHypervisor(mux *sync.Mutex, cfg cfg.Cfg, log *zerolog.Logger, conn *libvirt.Connect) *Hypervisor

func (*Hypervisor) Collect

func (h *Hypervisor) Collect(ch chan<- prometheus.Metric)

func (*Hypervisor) Describe

func (h *Hypervisor) Describe(ch chan<- *prometheus.Desc)

func (*Hypervisor) String

func (h *Hypervisor) String() string

type IsardMetadata

type IsardMetadata struct {
	XMLName xml.Name             `xml:"isard"`
	Who     *IsardMetadataWho    `xml:"who"`
	Parent  *IsardMetadataParent `xml:"parent"`
}

type IsardMetadataParent

type IsardMetadataParent struct {
	XMLName  xml.Name `xml:"parent"`
	ParentID string   `xml:"parent_id,attr"`
}

type IsardMetadataWho

type IsardMetadataWho struct {
	XMLName    xml.Name `xml:"who"`
	UserID     string   `xml:"user_id,attr"`
	GroupID    string   `xml:"group_id,attr"`
	CategoryID string   `xml:"category_id,attr"`
}

type IsardVDIAPI

type IsardVDIAPI struct {
	Log *zerolog.Logger
	// contains filtered or unexported fields
}

func NewIsardVDIAPI

func NewIsardVDIAPI(log *zerolog.Logger, cli *sdk.Client) *IsardVDIAPI

func (*IsardVDIAPI) Collect

func (a *IsardVDIAPI) Collect(ch chan<- prometheus.Metric)

func (*IsardVDIAPI) Describe

func (a *IsardVDIAPI) Describe(ch chan<- *prometheus.Desc)

func (*IsardVDIAPI) String

func (a *IsardVDIAPI) String() string

type IsardVDIAuthentication

type IsardVDIAuthentication struct {
	Log *zerolog.Logger
	// contains filtered or unexported fields
}

func NewIsardVDIAuthentication

func NewIsardVDIAuthentication(log *zerolog.Logger, cli client.Client) *IsardVDIAuthentication

func (*IsardVDIAuthentication) Collect

func (a *IsardVDIAuthentication) Collect(ch chan<- prometheus.Metric)

func (*IsardVDIAuthentication) Describe

func (a *IsardVDIAuthentication) Describe(ch chan<- *prometheus.Desc)

func (*IsardVDIAuthentication) String

func (a *IsardVDIAuthentication) String() string

type OCI

type OCI struct {
	Log *zerolog.Logger
	// contains filtered or unexported fields
}

func NewOCI

func NewOCI(log *zerolog.Logger, cli usageapi.UsageapiClient, tenancy string) *OCI

func (*OCI) Collect

func (o *OCI) Collect(ch chan<- prometheus.Metric)

func (*OCI) Describe

func (o *OCI) Describe(ch chan<- *prometheus.Desc)

func (*OCI) String

func (o *OCI) String() string

type Socket

type Socket struct {
	Log *zerolog.Logger
	// contains filtered or unexported fields
}

func NewSocket

func NewSocket(mux *sync.Mutex, cfg cfg.Cfg, log *zerolog.Logger, conn *ssh.Client) *Socket

func (*Socket) Collect

func (s *Socket) Collect(ch chan<- prometheus.Metric)

func (*Socket) Describe

func (s *Socket) Describe(ch chan<- *prometheus.Desc)

func (*Socket) String

func (s *Socket) String() string

type System

type System struct {
	Log *zerolog.Logger
	// contains filtered or unexported fields
}

func NewSystem

func NewSystem(cfg cfg.Cfg, log *zerolog.Logger) *System

func (*System) Collect

func (s *System) Collect(ch chan<- prometheus.Metric)

func (*System) Describe

func (s *System) Describe(ch chan<- *prometheus.Desc)

func (*System) String

func (s *System) String() string

Jump to

Keyboard shortcuts

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