diff --git a/.github/actions/prometheus-metrics-calc/action.yml b/.github/actions/prometheus-metrics-calc/action.yml index 477db47a2..866b8fff2 100644 --- a/.github/actions/prometheus-metrics-calc/action.yml +++ b/.github/actions/prometheus-metrics-calc/action.yml @@ -122,6 +122,7 @@ runs: mv tmp.json ${HORREUM_OUTPUT_FILE_NAME} #Removing ispn metrics file for next execution rm "${{ inputs.ispnCacheName}}_ispn_metrics_file_count" + rm "${{ inputs.ispnCacheName}}_ispn_metrics_file_sum" - id: gatling-report-parse-and-store name: Parses gatling report and stores got information in JSON file. diff --git a/.github/actions/prometheus-run-queries/action.yml b/.github/actions/prometheus-run-queries/action.yml index 1346465df..89856e9b6 100644 --- a/.github/actions/prometheus-run-queries/action.yml +++ b/.github/actions/prometheus-run-queries/action.yml @@ -63,10 +63,10 @@ runs: # language=bash run: | curl -s -H "Authorization: Bearer $OC_TOKEN" -k "https://$THANOS_HOST/api/v1/query" --data-urlencode \ - "query=avg(vendor_rpc_manager_cross_site_replication_times_seconds_sum{job='infinispan-admin', namespace='${{ inputs.project }}',container='infinispan', cache='${{ inputs.ispnCacheName }}'})" \ + "query=round(avg(vendor_rpc_manager_cross_site_replication_times_seconds_sum{job='infinispan-admin', namespace='${{ inputs.project }}',container='infinispan', cache='${{ inputs.ispnCacheName }}'}))" \ | jq '.data.result[0].value[1]' -r >> "${{ inputs.ispnCacheName}}_ispn_metrics_file_sum" curl -s -H "Authorization: Bearer $OC_TOKEN" -k "https://$THANOS_HOST/api/v1/query" --data-urlencode \ - "query=avg(vendor_rpc_manager_cross_site_replication_times_seconds_count{job='infinispan-admin', namespace='${{ inputs.project }}',container='infinispan', cache='${{ inputs.ispnCacheName }}'})" \ + "query=round(avg(vendor_rpc_manager_cross_site_replication_times_seconds_count{job='infinispan-admin', namespace='${{ inputs.project }}',container='infinispan', cache='${{ inputs.ispnCacheName }}'}))" \ | jq '.data.result[0].value[1]' -r >> "${{ inputs.ispnCacheName}}_ispn_metrics_file_count" env: THANOS_HOST: ${{ env.THANOS_HOST }}