Skip to content

Commit a6cf7f3

Browse files
authored
Fix cpu counts for sinfo node (#20167)
* fix cpu count for sinfo node * changelog * Rename 20166.fixed to 20167.fixed
1 parent bd73500 commit a6cf7f3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

slurm/changelog.d/20167.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix cpu count for sinfo node by using the correct query parameter

slurm/datadog_checks/slurm/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"-ahO",
66
"Partition:|,NodeList:|,CPUs:|,Available:|,Memory:|,Cluster:|,NodeAIOT:|,StateLong:|,Nodes:",
77
]
8-
SINFO_NODE_PARAMS = ["-haNO", "PartitionName:|,Available:|,NodeList:|,NodeAIOT:|,Memory:|,Cluster:"]
8+
SINFO_NODE_PARAMS = ["-haNO", "PartitionName:|,Available:|,NodeList:|,CPUsState:|,Memory:|,Cluster:"]
99
SINFO_ADDITIONAL_NODE_PARAMS = "|,CPUsLoad:|,FreeMem:|,Disk:|,StateLong:|,Reason:|,features_act:|,Threads:"
1010
GPU_PARAMS = "|,Gres:|,GresUsed:"
1111
SQUEUE_PARAMS = ["-aho", "%A|%u|%j|%T|%N|%C|%R|%m"]

0 commit comments

Comments
 (0)