collectors

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConstMetric added in v0.6.0

type ConstMetric struct {
	// contains filtered or unexported fields
}

type HistogramMetric added in v0.6.0

type HistogramMetric struct {
	// contains filtered or unexported fields
}

type MonitoringCollector

type MonitoringCollector struct {
	// contains filtered or unexported fields
}

func NewMonitoringCollector

func NewMonitoringCollector(monitoringService *monitoring.Service, filters map[string]bool, logger log.Logger) (*MonitoringCollector, error)

func (*MonitoringCollector) Collect

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

func (*MonitoringCollector) Describe

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

type TimeSeriesMetrics added in v0.6.0

type TimeSeriesMetrics struct {
	// contains filtered or unexported fields
}

func (*TimeSeriesMetrics) CollectNewConstHistogram added in v0.6.0

func (t *TimeSeriesMetrics) CollectNewConstHistogram(timeSeries *monitoring.TimeSeries, reportTime time.Time, labelKeys []string, dist *monitoring.Distribution, buckets map[float64]uint64, labelValues []string)

func (*TimeSeriesMetrics) CollectNewConstMetric added in v0.6.0

func (t *TimeSeriesMetrics) CollectNewConstMetric(timeSeries *monitoring.TimeSeries, reportTime time.Time, labelKeys []string, metricValueType prometheus.ValueType, metricValue float64, labelValues []string)

func (*TimeSeriesMetrics) Complete added in v0.6.0

func (t *TimeSeriesMetrics) Complete()

Jump to

Keyboard shortcuts

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