From c9e343a321533128bf89040ab74d40d66126e633 Mon Sep 17 00:00:00 2001 From: Yotam loewenbach Date: Wed, 20 Nov 2024 18:15:04 +0700 Subject: [PATCH] run otel demo in tests --- .github/workflows/logzio-monitoring-test.yaml | 6 ++++++ .github/workflows/logzio-telemetry-test.yaml | 8 +++++++- tests/resources/otel-demo-monitoring.yaml | 18 ++++++++++++++++++ tests/resources/otel-demo.yaml | 18 ++++++++++++++++++ 4 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 tests/resources/otel-demo-monitoring.yaml create mode 100644 tests/resources/otel-demo.yaml diff --git a/.github/workflows/logzio-monitoring-test.yaml b/.github/workflows/logzio-monitoring-test.yaml index d8226566..dd555d0a 100644 --- a/.github/workflows/logzio-monitoring-test.yaml +++ b/.github/workflows/logzio-monitoring-test.yaml @@ -148,6 +148,12 @@ jobs: kubectl apply -f tests/resources/tracegen-monitoring.yaml kubectl rollout status deployment/trace-gen --timeout=300s + - name: Run otel demo + run: | + helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts + helm repo update + helm install otel-demo -f tests/resources/otel-demo-monitoring.yaml open-telemetry/opentelemetry-demo --version 0.32.5 + kubectl rollout status deployment/otel-demo-loadgenerator --timeout=300s - name: Sleep run: sleep 180 diff --git a/.github/workflows/logzio-telemetry-test.yaml b/.github/workflows/logzio-telemetry-test.yaml index a8de79ee..8214f564 100644 --- a/.github/workflows/logzio-telemetry-test.yaml +++ b/.github/workflows/logzio-telemetry-test.yaml @@ -73,7 +73,13 @@ jobs: run: | kubectl apply -f tests/resources/tracegen.yaml kubectl rollout status deployment/trace-gen --timeout=300s - + - name: Run otel demo + run: | + helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts + helm repo update + helm install otel-demo -f tests/resources/otel-demo.yaml open-telemetry/opentelemetry-demo --version 0.32.5 + kubectl rollout status deployment/otel-demo-loadgenerator --timeout=300s + - name: sleep for 3 minutes run: sleep 180 diff --git a/tests/resources/otel-demo-monitoring.yaml b/tests/resources/otel-demo-monitoring.yaml new file mode 100644 index 00000000..15fa2935 --- /dev/null +++ b/tests/resources/otel-demo-monitoring.yaml @@ -0,0 +1,18 @@ + +default: + envOverrides: + - name: OTEL_COLLECTOR_NAME + value: logzio-monitoring-otel-collector.monitoring.svc.cluster.local + +opentelemetry-collector: + enabled: false + +jaeger: + enabled: false + +prometheus: + enabled: false + +grafana: + enabled: false + diff --git a/tests/resources/otel-demo.yaml b/tests/resources/otel-demo.yaml new file mode 100644 index 00000000..cb433700 --- /dev/null +++ b/tests/resources/otel-demo.yaml @@ -0,0 +1,18 @@ + +default: + envOverrides: + - name: OTEL_COLLECTOR_NAME + value: logzio-k8s-telemetry-otel-collector.default.svc.cluster.local + +opentelemetry-collector: + enabled: false + +jaeger: + enabled: false + +prometheus: + enabled: false + +grafana: + enabled: false +