From c26b5626b3c3256e177d32ae67552bf1e3ef8f07 Mon Sep 17 00:00:00 2001 From: Arthur Silva Sens Date: Tue, 21 Jan 2025 14:48:22 -0300 Subject: [PATCH] Add fallback scrape protocol to ddexporter exporter tests Signed-off-by: Arthur Silva Sens --- exporter/datadogexporter/examples/collector-metrics.yaml | 1 + exporter/datadogexporter/examples/ootb-ec2.yaml | 1 + .../integration_test_internal_metrics_config.yaml | 1 + .../integrationtest/integration_test_logs_config.yaml | 1 + 4 files changed, 4 insertions(+) diff --git a/exporter/datadogexporter/examples/collector-metrics.yaml b/exporter/datadogexporter/examples/collector-metrics.yaml index 4a68e51caa19..c6ba8797ba17 100644 --- a/exporter/datadogexporter/examples/collector-metrics.yaml +++ b/exporter/datadogexporter/examples/collector-metrics.yaml @@ -4,6 +4,7 @@ receivers: scrape_configs: - job_name: 'otelcol' scrape_interval: 10s + fallback_scrape_protocol: "PrometheusText1.0.0" static_configs: - targets: ['0.0.0.0:8888'] diff --git a/exporter/datadogexporter/examples/ootb-ec2.yaml b/exporter/datadogexporter/examples/ootb-ec2.yaml index 731060d5e4b6..ecac3621fd07 100644 --- a/exporter/datadogexporter/examples/ootb-ec2.yaml +++ b/exporter/datadogexporter/examples/ootb-ec2.yaml @@ -39,6 +39,7 @@ receivers: scrape_configs: - job_name: 'otelcol' scrape_interval: 10s + fallback_scrape_protocol: "PrometheusText1.0.0" static_configs: - targets: ['0.0.0.0:8888'] diff --git a/exporter/datadogexporter/integrationtest/integration_test_internal_metrics_config.yaml b/exporter/datadogexporter/integrationtest/integration_test_internal_metrics_config.yaml index 9100aecf8cad..b77e191f96c5 100644 --- a/exporter/datadogexporter/integrationtest/integration_test_internal_metrics_config.yaml +++ b/exporter/datadogexporter/integrationtest/integration_test_internal_metrics_config.yaml @@ -11,6 +11,7 @@ receivers: scrape_configs: - job_name: 'otelcol' scrape_interval: 1s + fallback_scrape_protocol: "PrometheusText1.0.0" static_configs: - targets: [ 'localhost:8888' ] diff --git a/exporter/datadogexporter/integrationtest/integration_test_logs_config.yaml b/exporter/datadogexporter/integrationtest/integration_test_logs_config.yaml index f02d45dafc16..d0e2303da6d1 100644 --- a/exporter/datadogexporter/integrationtest/integration_test_logs_config.yaml +++ b/exporter/datadogexporter/integrationtest/integration_test_logs_config.yaml @@ -11,6 +11,7 @@ receivers: scrape_configs: - job_name: 'otelcol' scrape_interval: 1s + fallback_scrape_protocol: "PrometheusText1.0.0" static_configs: - targets: [ 'localhost:8888' ] metric_relabel_configs: