Skip to content

Commit 1d88fe8

Browse files
authored
Merge pull request #4 from amilsted/main
Recognize p-type GPU instances too!
2 parents b930157 + 14ab9c2 commit 1d88fe8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

grafana/dashboards/gpu.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,15 +1864,15 @@
18641864
"value": "i-0edc71e97259faa4c"
18651865
},
18661866
"datasource": "prometheus",
1867-
"definition": "label_values(node_uname_info{job=~\"ec2_instances\",instance_type=~\"g[3-4].*\"}, instance_id)",
1867+
"definition": "label_values(node_uname_info{job=~\"ec2_instances\",instance_type=~\"[pg][2-4].*\"}, instance_id)",
18681868
"error": null,
18691869
"hide": 0,
18701870
"includeAll": false,
18711871
"label": "Instance ID",
18721872
"multi": false,
18731873
"name": "instance_id",
18741874
"options": [],
1875-
"query": "label_values(node_uname_info{job=~\"ec2_instances\",instance_type=~\"g[3-4].*\"}, instance_id)",
1875+
"query": "label_values(node_uname_info{job=~\"ec2_instances\",instance_type=~\"[pg][2-4].*\"}, instance_id)",
18761876
"refresh": 1,
18771877
"regex": "",
18781878
"skipUrlSync": false,

parallelcluster-setup/install-monitoring.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ case "${cfn_node_type}" in
9696

9797
ComputeFleet)
9898
compute_instance_type=$(ec2-metadata -t | awk '{print $2}')
99-
gpu_instances="g[2-9].*\.[0-9]*[x]*large"
99+
gpu_instances="[pg][2-9].*\.[0-9]*[x]*large"
100100
if [[ $compute_instance_type =~ $gpu_instances ]]; then
101101
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
102102
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.repo | tee /etc/yum.repos.d/nvidia-docker.repo

0 commit comments

Comments
 (0)