metricserver

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0, BSD-2-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(config *rest.Config) (providers.RealTime, error)

Types

type MetricsClient

type MetricsClient interface {
	GetMetricValue(metric *metricquery.Metric) ([]*common.TimeSeries, error)
}

type ResourceMetric

type ResourceMetric struct {
	Timestamp time.Time
	Window    time.Duration
	Value     float64
	// Labels must keep the same with prometheus labels and other data labels
	// todo: we must remove predictor dependency to the labels for single-metric-multi-series scene
	Labels []common.Label
}

ResourceMetric contains metric value (the metric values are expected to be the metric as a milli-value)

type ResourceMetricInfo

type ResourceMetricInfo []ResourceMetric

ResourceMetricInfo contains metrics as an array of ResourceMetric

Jump to

Keyboard shortcuts

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