Versions in this module Expand all Collapse all v0 v0.2.0 Sep 15, 2017 v0.1.0 Sep 5, 2017 Changes in this version + const CustomMetricPrefix + const MetricFamilyCpu + const MetricFamilyFilesystem + const MetricFamilyGeneral + const MetricFamilyMemory + const MetricFamilyNetwork + var AdditionalMetrics = []Metric + var AllAggregations = map[AggregationType]bool + var AllMetrics = append(append(append(append(StandardMetrics, AdditionalMetrics), RateMetrics), ...), ...) + var CpuMetrics = []Metric + var FilesystemMetrics = []Metric + var LabelContainerBaseImage = LabelDescriptor + var LabelContainerName = LabelDescriptor + var LabelCustomMetricName = LabelDescriptor + var LabelGCEResourceID = LabelDescriptor + var LabelGCEResourceType = LabelDescriptor + var LabelHostID = LabelDescriptor + var LabelHostname = LabelDescriptor + var LabelLabels = LabelDescriptor + var LabelMetricSetType = LabelDescriptor + var LabelNamespaceName = LabelDescriptor + var LabelNodename = LabelDescriptor + var LabelPodId = LabelDescriptor + var LabelPodName = LabelDescriptor + var LabelPodNamespaceUID = LabelDescriptor + var LabelResourceID = LabelDescriptor + var LabeledMetrics = []Metric + var MemoryMetrics = []Metric + var MetricCpuLimit = Metric + var MetricCpuRequest = Metric + var MetricCpuUsage = Metric + var MetricCpuUsageRate = Metric + var MetricFamilies = map[MetricFamily][]Metric + var MetricFilesystemAvailable = Metric + var MetricFilesystemInodes = Metric + var MetricFilesystemInodesFree = Metric + var MetricFilesystemLimit = Metric + var MetricFilesystemUsage = Metric + var MetricMemoryCache = Metric + var MetricMemoryLimit = Metric + var MetricMemoryMajorPageFaults = Metric + var MetricMemoryMajorPageFaultsRate = Metric + var MetricMemoryPageFaults = Metric + var MetricMemoryPageFaultsRate = Metric + var MetricMemoryRSS = Metric + var MetricMemoryRequest = Metric + var MetricMemoryUsage = Metric + var MetricMemoryWorkingSet = Metric + var MetricNetworkRx = Metric + var MetricNetworkRxErrors = Metric + var MetricNetworkRxErrorsRate = Metric + var MetricNetworkRxRate = Metric + var MetricNetworkTx = Metric + var MetricNetworkTxErrors = Metric + var MetricNetworkTxErrorsRate = Metric + var MetricNetworkTxRate = Metric + var MetricNodeCpuAllocatable = Metric + var MetricNodeCpuCapacity = Metric + var MetricNodeCpuReservation = Metric + var MetricNodeCpuUtilization = Metric + var MetricNodeMemoryAllocatable = Metric + var MetricNodeMemoryCapacity = Metric + var MetricNodeMemoryReservation = Metric + var MetricNodeMemoryUtilization = Metric + var MetricSetTypeCluster = "cluster" + var MetricSetTypeNamespace = "ns" + var MetricSetTypeNode = "node" + var MetricSetTypePod = "pod" + var MetricSetTypePodContainer = "pod_container" + var MetricSetTypeSystemContainer = "sys_container" + var MetricUptime = Metric + var MultiTypedAggregations = []AggregationType + var NetworkMetrics = []Metric + var NodeAutoscalingMetrics = []Metric + var RateMetrics = []Metric + var RateMetricsMapping = map[string]Metric + var StandardMetrics = []Metric + func ClusterKey() string + func GcmLabels() map[string]LabelDescriptor + func GcmNodeAutoscalingLabels() map[string]LabelDescriptor + func IsNodeAutoscalingMetric(name string) bool + func NamespaceKey(namespace string) string + func NodeContainerKey(node, container string) string + func NodeKey(node string) string + func PodContainerKey(namespace, podName, containerName string) string + func PodKey(namespace, podName string) string + type AggregationType string + var AggregationTypeAverage AggregationType = "average" + var AggregationTypeCount AggregationType = "count" + var AggregationTypeMaximum AggregationType = "max" + var AggregationTypeMedian AggregationType = "median" + var AggregationTypeMinimum AggregationType = "min" + var AggregationTypePercentile50 AggregationType = "50-perc" + var AggregationTypePercentile95 AggregationType = "95-perc" + var AggregationTypePercentile99 AggregationType = "99-perc" + type AggregationValue struct + Aggregations map[AggregationType]MetricValue + Count *uint64 + type AsHistoricalSource interface + Historical func() HistoricalSource + type DataBatch struct + MetricSets map[string]*MetricSet + Timestamp time.Time + type DataProcessor interface + Name func() string + Process func(*DataBatch) (*DataBatch, error) + type DataSink interface + ExportData func(*DataBatch) + Name func() string + Stop func() + type HistoricalKey struct + ContainerName string + NamespaceName string + NodeName string + ObjectType string + PodId string + PodName string + func (key *HistoricalKey) String() string + type HistoricalSource interface + GetAggregation func(metricName string, aggregations []AggregationType, metricKeys []HistoricalKey, ...) (map[HistoricalKey][]TimestampedAggregationValue, error) + GetLabeledAggregation func(metricName string, labels map[string]string, aggregations []AggregationType, ...) (map[HistoricalKey][]TimestampedAggregationValue, error) + GetLabeledMetric func(metricName string, labels map[string]string, metricKeys []HistoricalKey, ...) (map[HistoricalKey][]TimestampedMetricValue, error) + GetMetric func(metricName string, metricKeys []HistoricalKey, start, end time.Time) (map[HistoricalKey][]TimestampedMetricValue, error) + GetMetricNames func(metricKey HistoricalKey) ([]string, error) + GetNamespaces func() ([]string, error) + GetNodes func() ([]string, error) + GetPodsFromNamespace func(namespace string) ([]string, error) + GetSystemContainersFromNode func(node string) ([]string, error) + type LabelDescriptor struct + Description string + Key string + func CommonLabels() []LabelDescriptor + func ContainerLabels() []LabelDescriptor + func MetricLabels() []LabelDescriptor + func PodLabels() []LabelDescriptor + func SupportedLabels() []LabelDescriptor + type LabeledMetric struct + Labels map[string]string + Name string + func (this *LabeledMetric) GetValue() interface{} + type Metric struct + GetLabeledMetric func(*cadvisor.ContainerSpec, *cadvisor.ContainerStats) []LabeledMetric + GetValue func(*cadvisor.ContainerSpec, *cadvisor.ContainerStats) MetricValue + HasLabeledMetric func(*cadvisor.ContainerSpec) bool + HasValue func(*cadvisor.ContainerSpec) bool + type MetricDescriptor struct + Description string + Labels []LabelDescriptor + Name string + Type MetricType + Units UnitsType + ValueType ValueType + type MetricFamily string + func MetricFamilyForName(metricName string) MetricFamily + type MetricSet struct + CreateTime time.Time + LabeledMetrics []LabeledMetric + Labels map[string]string + MetricValues map[string]MetricValue + ScrapeTime time.Time + type MetricType int8 + const MetricCumulative + const MetricDelta + const MetricGauge + func (self *MetricType) String() string + type MetricValue struct + FloatValue float32 + IntValue int64 + MetricType MetricType + ValueType ValueType + func (this *MetricValue) GetValue() interface{} + type MetricsSource interface + Name func() string + ScrapeMetrics func(start, end time.Time) *DataBatch + type MetricsSourceProvider interface + GetMetricsSources func() []MetricsSource + type TimestampedAggregationValue struct + BucketSize time.Duration + Timestamp time.Time + type TimestampedMetricValue struct + Timestamp time.Time + type UnitsType int8 + const UnitsBytes + const UnitsCount + const UnitsMillicores + const UnitsMilliseconds + const UnitsNanoseconds + func (self *UnitsType) String() string + type ValueType int8 + const ValueFloat + const ValueInt64 + func (self *ValueType) String() string Incompatible versions in this module v3.9.0-alpha.1+incompatible Dec 20, 2017 v3.9.0-alpha.0+incompatible Dec 17, 2017