exporter

package
v0.0.0-...-3899698 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestDuration

func RequestDuration() *prometheus.HistogramVec

RequestDuration tracks the duration of API requests by collector.

func RequestFailures

func RequestFailures() *prometheus.CounterVec

RequestFailures tracks the number of API failures by collector.

Types

type GeneralCollector

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

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

func NewGeneralCollector

func NewGeneralCollector(version string, date string, goversion string, started time.Time) *GeneralCollector

NewGeneralCollector returns a new GeneralCollector.

func (*GeneralCollector) Collect

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

Collect is called by the Prometheus registry when collecting metrics.

func (*GeneralCollector) Describe

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

Describe sends the super-set of all possible descriptors of metrics collected by this Collector.

type UserCollector

type UserCollector struct {
	Dummy *prometheus.Desc
	// contains filtered or unexported fields
}

UserCollector collects metrics about the users.

func NewUserCollector

func NewUserCollector(logger log.Logger, c *client.Client, failures *prometheus.CounterVec, duration *prometheus.HistogramVec, timeout time.Duration) *UserCollector

NewUserCollector returns a new UserCollector.

func (*UserCollector) Collect

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

Collect is called by the Prometheus registry when collecting metrics.

func (*UserCollector) Describe

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

Describe sends the super-set of all possible descriptors of metrics collected by this Collector.

Jump to

Keyboard shortcuts

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