collector

package
v0.0.0-...-6921867 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCollector

type AccountCollector struct {
	Balance *prometheus.Desc
	// contains filtered or unexported fields
}

AccountCollector represents a Linode Account

func NewAccountCollector

func NewAccountCollector(client linodego.Client) *AccountCollector

NewAccountCollector creates an AccountCollector

func (*AccountCollector) Collect

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

Collect implements Collector interface and is called by Prometheus to collect metrics

func (*AccountCollector) Describe

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

Describe implements Collector interface and is called by Prometheus to describe metrics

type ExporterCollector

type ExporterCollector struct {
	Up *prometheus.Desc
	// contains filtered or unexported fields
}

ExporterCollector represents the Linode Exporter (itself)

func NewExporterCollector

func NewExporterCollector(client linodego.Client, osVersion, gitCommit string) *ExporterCollector

NewExporterCollector creates an ExporterCollector

func (*ExporterCollector) Collect

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

Collect implements Collector interface and is called by Prometheus to collect metrics

func (*ExporterCollector) Describe

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

Describe implements Collector interface and is called by Prometheus to describe metrics

type InstanceCollector

type InstanceCollector struct {
	Up     *prometheus.Desc
	Disk   *prometheus.Desc
	Memory *prometheus.Desc
	CPUs   *prometheus.Desc
	// contains filtered or unexported fields
}

InstanceCollector represents a Linode Instance (aka "Linode")

func NewInstanceCollector

func NewInstanceCollector(client linodego.Client) *InstanceCollector

NewInstanceCollector creates an InstanceCollector

func (*InstanceCollector) Collect

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

Collect implements Collector interface and is called by Prometheus to collect metrics

func (*InstanceCollector) Describe

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

Describe implements Collector interface and is called by Prometheus to describe metrics

type InstanceStatsCollector

type InstanceStatsCollector struct {
	CPUUsage   *prometheus.Desc
	DiskIO     *prometheus.Desc
	NetworkIn  *prometheus.Desc
	NetworkOut *prometheus.Desc
	// contains filtered or unexported fields
}

InstanceStatsCollector represents a Linode Instance (aka "Linode") Stats

func NewInstanceStatsCollector

func NewInstanceStatsCollector(client linodego.Client) *InstanceStatsCollector

NewInstanceStatsCollector creates an InstanceStatsCollector

func (*InstanceStatsCollector) Collect

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

Collect implements Collector interface and is called by Prometheus to collect metrics

func (*InstanceStatsCollector) Describe

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

Describe implements Collector interface and is called by Prometheus to describe metrics

type KubernetesCollector

type KubernetesCollector struct {
	Up     *prometheus.Desc
	Pool   *prometheus.Desc
	Linode *prometheus.Desc
	// contains filtered or unexported fields
}

KubernetesCollector represents a Linode Kubernetes Engine cluster (aka "LKE")

func NewKubernetesCollector

func NewKubernetesCollector(client linodego.Client) *KubernetesCollector

NewKubernetesCollector creates a KubernetesCollector

func (*KubernetesCollector) Collect

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

Collect implements Collector interface and is called by Prometheus to collect metrics

func (*KubernetesCollector) Describe

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

Describe implements Collector interface and is called by Prometheus to describe metrics

type NodeBalancerCollector

type NodeBalancerCollector struct {
	Up            *prometheus.Desc
	TransferTotal *prometheus.Desc
	TransferOut   *prometheus.Desc
	TransferIn    *prometheus.Desc
	// contains filtered or unexported fields
}

NodeBalancerCollector represents a Linode NodeBalancer

func NewNodeBalancerCollector

func NewNodeBalancerCollector(client linodego.Client) *NodeBalancerCollector

NewNodeBalancerCollector creates a NodeBalancerCollector

func (*NodeBalancerCollector) Collect

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

Collect implements Collector interface and is called by Prometheus to collect metrics

func (*NodeBalancerCollector) Describe

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

Describe implements Collector interface and is called by Prometheus to describe metrics

type TicketCollector

type TicketCollector struct {
	Count *prometheus.Desc
	// contains filtered or unexported fields
}

TicketCollector represents a Linode Support Ticket

func NewTicketCollector

func NewTicketCollector(client linodego.Client) *TicketCollector

NewTicketCollector creates a TicketCollector

func (*TicketCollector) Collect

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

Collect implements Collector interface and is called by Prometheus to collect metrics

func (*TicketCollector) Describe

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

Describe implements Collector interface and is called by Prometheus to describe metrics

type VolumeCollector

type VolumeCollector struct {
	Up *prometheus.Desc
	// contains filtered or unexported fields
}

VolumeCollector represents a Linode Volume

func NewVolumeCollector

func NewVolumeCollector(client linodego.Client) *VolumeCollector

NewVolumeCollector creates a new VolumeCollector

func (*VolumeCollector) Collect

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

Collect implements Collector interface and is called by Prometheus to collect metrics

func (*VolumeCollector) Describe

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

Describe implement Collector interface and is called by Prometheus to describe metrics

Jump to

Keyboard shortcuts

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