Documentation ¶
Index ¶
- Constants
- func ConvertLabels(dimensions []qmonitor.Dimension) []common.Label
- func MakeContainerMetricConditions(clusterid, namespace, workloadname, containername, containerid string) []common.QueryCondition
- func MakePodMetricConditions(clusterid, namespace, podname, workloadname, nodename string) []common.QueryCondition
- func MakeWorkloadMetricConditions(clusterid, namespace, workloadname, workloadkind string) []common.QueryCondition
- func MonitorData2CommonTimeSeries(metric string, result *qmonitor.GetDataResult) []*common.TimeSeries
- func NewProvider(config *datasource.QCloudMonitorConfig) (datasource.Interface, error)
- func Points2Samples(metric string, points []qmonitor.Point) []common.Sample
Constants ¶
View Source
const (
DefaultStep = 1 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
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 ¶
func NewProvider(config *datasource.QCloudMonitorConfig) (datasource.Interface, error)
NewProvider return a QCloud Monitor data provider
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.