Skip to content

Commit f4d5ccc

Browse files
authored
Sy/slurm user (#19182)
* add all user query param * changelog
1 parent 07dbc93 commit f4d5ccc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

slurm/changelog.d/19182.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add all user query param to the different queries

slurm/datadog_checks/slurm/constants.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
# All rights reserved
33
# Licensed under a 3-clause BSD style license (see LICENSE)
44
SINFO_PARTITION_PARAMS = [
5-
"-hO",
5+
"-ahO",
66
"Partition:|,NodeList:|,CPUs:|,Available:|,Memory:|,Cluster:|,NodeAIOT:|,StateLong:|,Nodes:",
77
]
8-
SINFO_NODE_PARAMS = ["-hNO", "PartitionName:|,Available:|,NodeList:|,NodeAIOT:|,Memory:|,Cluster:"]
8+
SINFO_NODE_PARAMS = ["-haNO", "PartitionName:|,Available:|,NodeList:|,NodeAIOT:|,Memory:|,Cluster:"]
99
SINFO_ADDITIONAL_NODE_PARAMS = "|,CPUsLoad:|,FreeMem:|,Disk:|,StateLong:|,Reason:|,features_act:|,Threads:"
1010
GPU_PARAMS = "|,Gres:|,GresUsed:"
11-
SQUEUE_PARAMS = ["-ho", "%A|%u|%j|%T|%N|%C|%R|%m"]
12-
SSHARE_PARAMS = ["-lnPU"]
11+
SQUEUE_PARAMS = ["-aho", "%A|%u|%j|%T|%N|%C|%R|%m"]
12+
SSHARE_PARAMS = ["-alnPU"]
1313
SACCT_PARAMS = [
14-
"-npo",
14+
"-anpo",
1515
"JobID,JobName%40,Partition,Account,AllocCPUs,AllocTRES%40,Elapsed,CPUTimeRAW,MaxRSS,MaxVMSize,AveCPU,AveRSS,State,ExitCode,Start,End,NodeList",
1616
"--units=M",
1717
]

0 commit comments

Comments
 (0)