Skip to content

Commit

Permalink
Fix metric collection script (see prev. commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaven committed Nov 19, 2020
1 parent b01c431 commit 0069a09
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions custom-metrics/1m-cost-metrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@

export AWS_DEFAULT_REGION=$cfn_region
aws_region_long_name=$(python /usr/local/bin/aws-region.py $cfn_region)
github_repo=$(echo ${cfn_postinstall_args}| cut -d ',' -f 1 )
setup_command=$(echo ${cfn_postinstall_args}| cut -d ',' -f 2 )
monitoring_dir_name=$(basename -s .git ${github_repo})

monitoring_dir_name=$(echo ${cfn_postinstall_args}| cut -d ',' -f 2 )
monitoring_home="/home/${cfn_cluster_user}/${monitoring_dir_name}"

queues=$(/opt/slurm/bin/sinfo --noheader -O partition | sed 's/\*//g')
cluster_config_file="/home/${cfn_cluster_user}/${monitoring_dir_name}/parallelcluster-setup/cluster-config.json"
cluster_config_file="${monitoring_home}/parallelcluster-setup/cluster-config.json"

compute_nodes_total_cost=0

Expand Down

0 comments on commit 0069a09

Please sign in to comment.