Documentation ¶
Index ¶
Constants ¶
View Source
const ( TraditionalClusterID string = "bcs_unique_const_clusterid" TraditionalNamespace string = "bcs_unique_const_namespace" TraditionalName string = "bcs_unique_const_name" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CollectorMetrics ¶
type CollectorMetrics struct {
Metrics []*PromMetric `json:"metrics"`
}
type CollectorWrapper ¶
type CollectorWrapper struct {
Collector CollectorMetrics `json:"collector"`
}
type Family ¶
type Histogram ¶
type Histogram struct { Labels map[string]string `json:"labels,omitempty"` Buckets map[string]string `json:"buckets,omitempty"` Count string `json:"count"` Sum string `json:"sum"` }
Histogram mirrors the Histogram proto message.
type Metric ¶
type Metric struct { Labels map[string]string `json:"labels,omitempty"` Value string `json:"value"` }
Metric is for all "single value" metrics, i.e. Counter, Gauge, and Untyped.
type MetricWrapper ¶
type MetricWrapper struct {
Data []*Family `json:"data"`
}
type PromMetric ¶
Click to show internal directories.
Click to hide internal directories.