Skip to content

Commit 78e9ba9

Browse files
authored
Merge pull request kubernetes#131012 from dims/adjust-metrics-ranges-to-reflect-additional-ci-job-environments
Adjust metrics ranges to reflect additional CI job environments
2 parents 37afe38 + a75cd2e commit 78e9ba9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e_node/container_metrics_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ var _ = SIGDescribe("ContainerMetrics", "[LinuxOnly]", framework.WithNodeConform
5656
"container_fs_reads_total": boundedSample(0, 100),
5757
"container_fs_usage_bytes": boundedSample(0, 1000000),
5858
"container_fs_writes_bytes_total": boundedSample(0, 1000000),
59-
"container_fs_writes_total": boundedSample(0, 100),
59+
"container_fs_writes_total": boundedSample(0, 200),
6060
"container_last_seen": boundedSample(time.Now().Add(-maxStatsAge).Unix(), time.Now().Add(2*time.Minute).Unix()),
61-
"container_memory_cache": boundedSample(1*e2evolume.Kb, 10*e2evolume.Mb),
61+
"container_memory_cache": boundedSample(0, 10*e2evolume.Mb),
6262
"container_memory_failcnt": preciseSample(0),
6363
"container_memory_failures_total": boundedSample(0, 1000000),
6464
"container_memory_mapped_file": boundedSample(0, 10000000),
@@ -79,7 +79,7 @@ var _ = SIGDescribe("ContainerMetrics", "[LinuxOnly]", framework.WithNodeConform
7979
"container_tasks_state": preciseSample(0),
8080
"container_threads": boundedSample(0, 10),
8181
"container_threads_max": boundedSample(0, 100000),
82-
"container_ulimits_soft": boundedSample(0, 10000000),
82+
"container_ulimits_soft": boundedSample(0, 1073741816),
8383
}
8484
appendMatchesForContainer(f.Namespace.Name, pod0, pod1, "busybox-container", ctrMatches, keys, gstruct.AllowDuplicates|gstruct.IgnoreExtras)
8585

0 commit comments

Comments
 (0)