diff --git a/integration-tests/tests/otel-to-prom-metrics/otel_to_prom_metrics_test.go b/integration-tests/tests/otel-to-prom-metrics/otel_to_prom_metrics_test.go index c322adf2a027..b07909220726 100644 --- a/integration-tests/tests/otel-to-prom-metrics/otel_to_prom_metrics_test.go +++ b/integration-tests/tests/otel-to-prom-metrics/otel_to_prom_metrics_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" ) -const query = "http://localhost:9009/prometheus/api/v1/query?query=span_metrics_duration_bucket{job='otel_to_prom_metrics'}" +const query = "http://localhost:9009/prometheus/api/v1/query?query=span_metrics_duration_milliseconds_bucket{job='otel_to_prom_metrics'}" func TestOtelToPromMetrics(t *testing.T) { var metricResponse common.MetricResponse @@ -15,7 +15,7 @@ func TestOtelToPromMetrics(t *testing.T) { err := common.FetchDataFromURL(query, &metricResponse) assert.NoError(c, err) if assert.NotEmpty(c, metricResponse.Data.Result) { - assert.Equal(c, metricResponse.Data.Result[0].Metric.Name, "span_metrics_duration_bucket") + assert.Equal(c, metricResponse.Data.Result[0].Metric.Name, "span_metrics_duration_milliseconds_bucket") assert.Equal(c, metricResponse.Data.Result[0].Metric.Job, "otel_to_prom_metrics") } }, common.DefaultTimeout, common.DefaultRetryInterval, "Data did not satisfy the conditions within the time limit") diff --git a/integration-tests/tests/run-integration-tests.sh b/integration-tests/tests/run-integration-tests.sh index 9360a613ba30..80c6e274d078 100755 --- a/integration-tests/tests/run-integration-tests.sh +++ b/integration-tests/tests/run-integration-tests.sh @@ -17,7 +17,7 @@ cleanup() { docker-compose down fi kill $AGENT_PID || true - rm -rf data-agent + sudo rm -rf data-agent rm -f "$logfile" fi }