Skip to content

Commit 0069a09

Browse files
committed
Fix metric collection script (see prev. commit)
1 parent b01c431 commit 0069a09

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

custom-metrics/1m-cost-metrics.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111

1212
export AWS_DEFAULT_REGION=$cfn_region
1313
aws_region_long_name=$(python /usr/local/bin/aws-region.py $cfn_region)
14-
github_repo=$(echo ${cfn_postinstall_args}| cut -d ',' -f 1 )
15-
setup_command=$(echo ${cfn_postinstall_args}| cut -d ',' -f 2 )
16-
monitoring_dir_name=$(basename -s .git ${github_repo})
14+
15+
monitoring_dir_name=$(echo ${cfn_postinstall_args}| cut -d ',' -f 2 )
16+
monitoring_home="/home/${cfn_cluster_user}/${monitoring_dir_name}"
17+
1718
queues=$(/opt/slurm/bin/sinfo --noheader -O partition | sed 's/\*//g')
18-
cluster_config_file="/home/${cfn_cluster_user}/${monitoring_dir_name}/parallelcluster-setup/cluster-config.json"
19+
cluster_config_file="${monitoring_home}/parallelcluster-setup/cluster-config.json"
1920

2021
compute_nodes_total_cost=0
2122

0 commit comments

Comments
 (0)