From 4a52931975457552447ac31d01413fd538c8aa42 Mon Sep 17 00:00:00 2001 From: namkyu1999 Date: Fri, 22 Nov 2024 18:09:24 +0900 Subject: [PATCH] add an env Signed-off-by: namkyu1999 --- faults/load/experiments.yaml | 4 ++++ faults/load/k6-loadgen/engine.yaml | 4 ++++ faults/load/k6-loadgen/fault.yaml | 3 +++ 3 files changed, 11 insertions(+) diff --git a/faults/load/experiments.yaml b/faults/load/experiments.yaml index 0dd544a4b..037741ea4 100644 --- a/faults/load/experiments.yaml +++ b/faults/load/experiments.yaml @@ -88,6 +88,10 @@ spec: - name: LIB_IMAGE_PULL_POLICY value: "Always" + # Provide the prefix of the metric if you enabled observability + - name: OTEL_METRIC_PREFIX + value: "k6_" + labels: name: k6-loadgen app.kubernetes.io/part-of: litmus diff --git a/faults/load/k6-loadgen/engine.yaml b/faults/load/k6-loadgen/engine.yaml index 72f710edc..3b42fa241 100644 --- a/faults/load/k6-loadgen/engine.yaml +++ b/faults/load/k6-loadgen/engine.yaml @@ -39,3 +39,7 @@ spec: # Provide the image pull policy of the helper pod - name: LIB_IMAGE_PULL_POLICY value: "Always" + + # Provide the prefix of the metric if you enabled observability + - name: OTEL_METRIC_PREFIX + value: "k6_" \ No newline at end of file diff --git a/faults/load/k6-loadgen/fault.yaml b/faults/load/k6-loadgen/fault.yaml index ab572bd57..3510a5337 100644 --- a/faults/load/k6-loadgen/fault.yaml +++ b/faults/load/k6-loadgen/fault.yaml @@ -88,6 +88,9 @@ spec: - name: LIB_IMAGE_PULL_POLICY value: "Always" + # Provide the prefix of the metric if you enabled observability + - name: OTEL_METRIC_PREFIX + value: "k6_" labels: name: k6-loadgen app.kubernetes.io/part-of: litmus