Add a flag that will make test gather metrics from all running components after the test finishes.

This commit is contained in:
gmarek
2015-12-23 15:56:56 +01:00
parent c36226bc39
commit 2dcafa3854
8 changed files with 125 additions and 28 deletions

View File

@@ -61,8 +61,6 @@ var KnownKubeletMetrics = map[string][]string{
"container_spec_memory_swap_limit_bytes": {"id", "image", "kubernetes_container_name", "kubernetes_namespace", "kubernetes_pod_name", "name"},
"container_start_time_seconds": {"id", "image", "kubernetes_container_name", "kubernetes_namespace", "kubernetes_pod_name", "name"},
"container_tasks_state": {"id", "image", "kubernetes_container_name", "kubernetes_namespace", "kubernetes_pod_name", "name", "state"},
"get_token_count": {},
"get_token_fail_count": {},
"kubelet_container_manager_latency_microseconds": {"operation_type", "quantile"},
"kubelet_container_manager_latency_microseconds_count": {"operation_type"},
"kubelet_container_manager_latency_microseconds_sum": {"operation_type"},
@@ -98,6 +96,12 @@ var KnownKubeletMetrics = map[string][]string{
"rest_client_request_status_codes": {"code", "host", "method"},
}
var KubeletMetricsLabelsToSkip = sets.NewString(
"kubernetes_namespace",
"image",
"name",
)
type KubeletMetrics Metrics
func NewKubeletMetrics() KubeletMetrics {