From d7c536fa993ea50d761e45c1e828b24fef2a7fcb Mon Sep 17 00:00:00 2001 From: Povilas Versockas Date: Fri, 22 Jul 2022 10:21:49 +0300 Subject: [PATCH] add coralogix metric mocks --- .../otconfig.tpl | 35 +++++++++++++++++++ .../parameters.tfvars | 9 +++++ 2 files changed, 44 insertions(+) create mode 100644 terraform/testcases/coralogix_exporter_metric_mock/otconfig.tpl create mode 100644 terraform/testcases/coralogix_exporter_metric_mock/parameters.tfvars diff --git a/terraform/testcases/coralogix_exporter_metric_mock/otconfig.tpl b/terraform/testcases/coralogix_exporter_metric_mock/otconfig.tpl new file mode 100644 index 000000000..4f4855543 --- /dev/null +++ b/terraform/testcases/coralogix_exporter_metric_mock/otconfig.tpl @@ -0,0 +1,35 @@ +extensions: + pprof: + endpoint: 0.0.0.0:1777 +receivers: + otlp: + protocols: + grpc: + endpoint: 0.0.0.0:${grpc_port} + +processors: + batch: + +exporters: + logging: + loglevel: debug + coralogix: + endpoint: "${mock_endpoint}" + metrics: + endpoint: "${mock_endpoint}" + compression: none + tls: + insecure: true + private_key: "e83138ae-fe21-11ec-b939-0242ac120002" + application_name: "APP_NAME" + subsystem_name: "SUBSYSTEM" +service: + pipelines: + metrics: + receivers: [otlp] + processors: [batch] + exporters: [coralogix] + extensions: [pprof] + telemetry: + logs: + level: debug diff --git a/terraform/testcases/coralogix_exporter_metric_mock/parameters.tfvars b/terraform/testcases/coralogix_exporter_metric_mock/parameters.tfvars new file mode 100644 index 000000000..a2b1fcce4 --- /dev/null +++ b/terraform/testcases/coralogix_exporter_metric_mock/parameters.tfvars @@ -0,0 +1,9 @@ +# data type will be emitted. Possible values: metric or trace +soaking_data_mode = "metric" + +sample_app = "spark" + +sample_app_image = "public.ecr.aws/aws-otel-test/aws-otel-java-spark:latest" + +mocked_server = "grpc_metrics" +mock_endpoint = "mocked-server:55671"