Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
wildum committed Oct 11, 2023
1 parent 3fd7593 commit 569d6e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ 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
assert.EventuallyWithT(t, func(c *assert.CollectT) {
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")
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/tests/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 569d6e9

Please sign in to comment.