collector

package
v0.0.0-...-64c01a7 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExporterCollector

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

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

func NewExporterCollector

func NewExporterCollector(osVersion, goVersion, gitCommit string, startTime int64) *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 StatusCollector

type StatusCollector struct {
	ServiceAlert   *prometheus.Desc
	Infrastructure *prometheus.Desc
	// contains filtered or unexported fields
}

StatusCollector collects metrics about the Vultr service's status API

func NewStatusCollector

func NewStatusCollector() *StatusCollector

NewStatusCollector returns a new StatusCollector

func (*StatusCollector) Collect

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

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

func (*StatusCollector) Describe

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

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

Jump to

Keyboard shortcuts

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