Skip to content

Commit d6822f1

Browse files
committed
rename variables
1 parent 26bed73 commit d6822f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clusterloader2/testing/list/modules/measurements.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Input params
44
# Valid actions: "start", "gather"
55
{{$action := .action}}
6-
{{$ENABLE_CONTAINER_MEMORY_USAGE_MEASUREMENT := DefaultParam .CL2_ENABLE_CONTAINER_MEMORY_USAGE_MEASUREMENT true}}
7-
{{$CONTAINER_MEMORY_THRESHOLD := DefaultParam .CL2_CONTAINER_MEMORY_THRESHOLD 100}}
6+
{{$ENABLE_APISERVER_MEMORY_USAGE_THRESHOLD := DefaultParam .CL2_ENABLE_APISERVER_MEMORY_USAGE_THRESHOLD_MEASUREMENT true}}
7+
{{$CONTAINER_MEMORY_THRESHOLD_MEGABYTES := DefaultParam .CL2_CONTAINER_MEMORY_THRESHOLD_MEGABYTES 4000}}
88

99

1010
steps:
@@ -20,7 +20,7 @@ steps:
2020
Method: TestMetrics
2121
Params:
2222
action: {{$action}}
23-
{{if $ENABLE_CONTAINER_MEMORY_USAGE_MEASUREMENT}}
23+
{{if $ENABLE_APISERVER_MEMORY_USAGE_THRESHOLD}}
2424
- Identifier: APIServerMemoryUsage
2525
Method: GenericPrometheusQuery
2626
Params:
@@ -39,7 +39,7 @@ steps:
3939
container_memory_working_set_bytes{namespace="monitoring", pod=~"kube-apiserver.*"}
4040
/ 1024 / 1024
4141
)[%v:])
42-
threshold: {{$CONTAINER_MEMORY_THRESHOLD}}
42+
threshold: {{$CONTAINER_MEMORY_THRESHOLD_MEGABYTES}}
4343
requireSamples: false
4444
lowerBound: false
4545
{{end}}

0 commit comments

Comments
 (0)