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
Click to show internal directories.
Click to hide internal directories.