qcloudmonitor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultStep = 1 * time.Minute
)

Variables

This section is empty.

Functions

func ConvertLabels

func ConvertLabels(dimensions []qmonitor.Dimension) []common.Label

func MakeContainerMetricConditions

func MakeContainerMetricConditions(clusterid, namespace, workloadname, containername, containerid string) []common.QueryCondition

must specify clusterid, namespace, workloadname, containername

func MakePodMetricConditions

func MakePodMetricConditions(clusterid, namespace, podname, workloadname, nodename string) []common.QueryCondition

func MakeWorkloadMetricConditions

func MakeWorkloadMetricConditions(clusterid, namespace, workloadname, workloadkind string) []common.QueryCondition

func MonitorData2CommonTimeSeries

func MonitorData2CommonTimeSeries(metric string, result *qmonitor.GetDataResult) []*common.TimeSeries

func NewProvider

NewProvider return a QCloud Monitor data provider

func Points2Samples

func Points2Samples(metric string, points []qmonitor.Point) []common.Sample

Types

This section is empty.

Jump to

Keyboard shortcuts

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