collectors

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

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(
	projectID string,
	metricsTypePrefixes []string,
	metricsInterval time.Duration,
	metricsOffset time.Duration,
	monitoringService *monitoring.Service,
	collectorFillMissingLabels bool,
	monitoringDropDelegatedProjects bool,
) (*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, 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, 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