test/cases/api: use the request_count metric
In future it will be possible to drop the total_compose_requests metric in favour of the request_count metric.
This commit is contained in:
parent
2837b2a3ad
commit
ebe43bd680
1 changed files with 3 additions and 3 deletions
|
|
@ -413,7 +413,7 @@ function collectMetrics(){
|
|||
--cert /etc/osbuild-composer/client-crt.pem \
|
||||
https://localhost/metrics)
|
||||
|
||||
echo "$METRICS_OUTPUT" | grep "^image_builder_composer_total_compose_requests" | cut -f2 -d' '
|
||||
echo "$METRICS_OUTPUT" | grep "^image_builder_composer_request_count.*path=\"/api/image-builder-composer/v2/compose\"" | cut -f2 -d' '
|
||||
}
|
||||
|
||||
function testNewMetricsPort(){
|
||||
|
|
@ -424,8 +424,8 @@ function testNewMetricsPort(){
|
|||
https://localhost/metrics)
|
||||
METRICS_OUTPUT2=$(curl http://localhost:8008/metrics)
|
||||
|
||||
COMPOSES1=$(echo "$METRICS_OUTPUT1" | grep "^image_builder_composer_total_compose_requests" | cut -f2 -d' ')
|
||||
COMPOSES2=$(echo "$METRICS_OUTPUT2" | grep "^image_builder_composer_total_compose_requests" | cut -f2 -d' ')
|
||||
COMPOSES1=$(echo "$METRICS_OUTPUT1" | grep "^image_builder_composer_request_count.*path=\"/api/image-builder-composer/v2/compose\"" | cut -f2 -d' ')
|
||||
COMPOSES2=$(echo "$METRICS_OUTPUT2" | grep "^image_builder_composer_request_count.*path=\"/api/image-builder-composer/v2/compose\"" | cut -f2 -d' ')
|
||||
|
||||
test "$COMPOSES1" = "$COMPOSES2"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue