Skip to content

Commit

Permalink
Dump only fio metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
gargnitingoogle committed Sep 27, 2023
1 parent d9c52cf commit ee3181c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions perfmetrics/scripts/fetch_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def _parse_arguments(argv):
else:
temp = fio_metrics_obj.get_metrics(args.fio_json_output_path)

print(temp)
sys.exit("Exiting right after fio metrics")

print('Waiting for 360 seconds for metrics to be updated on VM...')
# It takes up to 240 seconds for sampled data to be visible on the VM metrics graph
# So, waiting for 360 seconds to ensure the returned metrics are not empty.
Expand Down
3 changes: 2 additions & 1 deletion perfmetrics/scripts/run_load_test_and_fetch_metrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ echo "Overall fio end epoch time:" `date +%s`

echo Installing requirements..
pip install --require-hashes -r requirements.txt --user
gsutil cp gs://periodic-perf-tests/creds.json gsheet
test -f "gsheet/creds.json" || ( echo 'gsheet/creds.json not found. Copy it from gs://periodic-perf-tests/creds.json ' ; exit 1 ; )
# gsutil cp gs://periodic-perf-tests/creds.json gsheet
echo Fetching results..
# Upload data to the gsheet only when it runs through kokoro.
if [ "${KOKORO_JOB_TYPE}" != "RELEASE" ] && [ "${KOKORO_JOB_TYPE}" != "CONTINUOUS_INTEGRATION" ] && [ "${KOKORO_JOB_TYPE}" != "PRESUBMIT_GITHUB" ];
Expand Down
2 changes: 1 addition & 1 deletion perfmetrics/scripts/vm_metrics/vm_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from gsheet import gsheet
from typing import List

PROJECT_NAME = 'projects/gcs-fuse-test-ml'
PROJECT_NAME = 'projects/gcs-fuse-test'
CPU_UTI_METRIC_TYPE = 'compute.googleapis.com/instance/cpu/utilization'
RECEIVED_BYTES_COUNT_METRIC_TYPE = 'compute.googleapis.com/instance/network/received_bytes_count'
OPS_LATENCY_METRIC_TYPE = 'custom.googleapis.com/gcsfuse/fs/ops_latency'
Expand Down

0 comments on commit ee3181c

Please sign in to comment.