collector

package
v0.0.0-...-e3f51ed Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BillingCollector

type BillingCollector struct {
	System         System
	Client         *govultr.Client
	Log            logr.Logger
	PendingCharges *prometheus.Desc
	Balance        *prometheus.Desc
}

BillingCollector represents billing related metrics

func NewBillingCollector

func NewBillingCollector(s System, client *govultr.Client, log logr.Logger) *BillingCollector

NewBillingCollector creates a new BillingCollector

func (*BillingCollector) Collect

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

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*BillingCollector) Describe

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

Describe implements Prometheus' Collector interface and is used to describe metrics

type BlockStorageCollector

type BlockStorageCollector struct {
	System System
	Client *govultr.Client
	Log    logr.Logger
	Up     *prometheus.Desc
	Block  *prometheus.Desc
}

BlockStorageCollector represents Block Storage

func NewBlockStorageCollector

func NewBlockStorageCollector(s System, client *govultr.Client, log logr.Logger) *BlockStorageCollector

NewBlockStorageCollector create a new BlockStorageCollector

func (*BlockStorageCollector) Collect

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

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*BlockStorageCollector) Describe

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

Describe implements Prometheus' Collector interface and is used to describe metrics

type Build

type Build struct {
	GitCommit string
	GoVersion string
	OsVersion string
	StartTime int64
}

Build is a type that represents the build info

type ExporterCollector

type ExporterCollector struct {
	System System
	Build  Build
	Log    logr.Logger

	StartTime *prometheus.Desc
	BuildInfo *prometheus.Desc
}

ExporterCollector collects metrics, mostly runtime, about this exporter in general.

func NewExporterCollector

func NewExporterCollector(s System, b Build, log logr.Logger) *ExporterCollector

NewExporterCollector returns a new ExporterCollector.

func (*ExporterCollector) Collect

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

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*ExporterCollector) Describe

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

Describe implements Prometheus' Collector interface and is used to describe metrics

type KubernetesCollector

type KubernetesCollector struct {
	System    System
	Client    *govultr.Client
	Log       logr.Logger
	Up        *prometheus.Desc
	NodePools *prometheus.Desc
	Nodes     *prometheus.Desc
}

KubernetesCollector represents Kubernetes Engine

func NewKubernetesCollector

func NewKubernetesCollector(s System, client *govultr.Client, log logr.Logger) *KubernetesCollector

NewKubernetesCollector creates a new KubernetesCollector

func (*KubernetesCollector) Collect

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

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*KubernetesCollector) Describe

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

Describe implements Prometheus' Collector interface and is used to describe metrics

type LoadBalancerCollector

type LoadBalancerCollector struct {
	System    System
	Client    *govultr.Client
	Log       logr.Logger
	Up        *prometheus.Desc
	Instances *prometheus.Desc
}

LoadBalancerCollector represents Load Balancers

func NewLoadBalancerCollector

func NewLoadBalancerCollector(s System, client *govultr.Client, log logr.Logger) *LoadBalancerCollector

NewLoadBalancerCollector creates a new LoadBalancerCollector

func (*LoadBalancerCollector) Collect

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

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*LoadBalancerCollector) Describe

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

Describe implements Prometheus' Collector interface and is used to Describe metrics

type ReservedIPsCollector

type ReservedIPsCollector struct {
	System System
	Client *govultr.Client
	Log    logr.Logger
	Up     *prometheus.Desc
}

ReservedIPsCollector represents Reserved IPs

func NewReservedIPsCollector

func NewReservedIPsCollector(s System, client *govultr.Client, log logr.Logger) *ReservedIPsCollector

NewReservedIPsCollector creates a new ResevedIPsCollector

func (*ReservedIPsCollector) Collect

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

Collect implements Prometheus' Collector interface and is used to collect metrics

func (*ReservedIPsCollector) Describe

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

Describe implements Prometheus' Collector interface and is used to describe metrics

type System

type System struct {
	Namespace string
	Subsystem string
	Version   string
}

Jump to

Keyboard shortcuts

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