Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
11
plugins/inputs/slurm/testcases/gather/expected.out
Normal file
11
plugins/inputs/slurm/testcases/gather/expected.out
Normal file
|
@ -0,0 +1,11 @@
|
|||
slurm_diag,source=127.0.0.1 bf_active=false,bf_queue_len=1i,bf_queue_len_mean=1i,jobs_canceled=0i,jobs_completed=287i,jobs_failed=1i,jobs_pending=0i,jobs_running=100i,jobs_started=287i,jobs_submitted=287i,schedule_cycle_last=298i,schedule_cycle_mean=137i,server_thread_count=3i 1723464650000000000
|
||||
|
||||
slurm_jobs,job_id=20464,name=gridjob,source=127.0.0.1 command="/tmp/SLURM_job_script.OjQEIH",cpus=2i,current_working_directory="/home/sessiondir/zv6NDmqNcv5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmXSJKDmFRYcQm",group_id=2005i,nice=50i,node_count=1i,nodes="naboo222",partition="atlas",priority=4294881265i,standard_error="/home/sessiondir/zv6NDmqNcv5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmXSJKDmFRYcQm.comment",standard_input="/dev/null",standard_output="/home/sessiondir/zv6NDmqNcv5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmXSJKDmFRYcQm.comment",start_time=1722989851i,state="RUNNING",state_reason="None",submit_time=1722989851i,tasks=1i,time_limit=3600i,tres_billing=1,tres_cpu=1,tres_mem=2000,tres_node=1 1723464650000000000
|
||||
slurm_jobs,job_id=20468,name=gridjob,source=127.0.0.1 command="/tmp/SLURM_job_script.XTwtdj",cpus=2i,current_working_directory="/home/sessiondir/ljvLDmQccv5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmcSJKDmor4c2n",group_id=2005i,nice=50i,node_count=1i,nodes="naboo222",partition="atlas",priority=4294881261i,standard_error="/home/sessiondir/ljvLDmQccv5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmcSJKDmor4c2n.comment",standard_input="/dev/null",standard_output="/home/sessiondir/ljvLDmQccv5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmcSJKDmor4c2n.comment",start_time=1722990772i,state="RUNNING",state_reason="None",submit_time=1722990772i,tasks=1i,time_limit=3600i,tres_billing=1,tres_cpu=1,tres_mem=2000,tres_node=1 1723464650000000000
|
||||
slurm_jobs,job_id=23772,name=gridjob,source=127.0.0.1 command="/tmp/SLURM_job_script.8PMmVe",cpus=8i,current_working_directory="/home/sessiondir/nN8KDmNMPx5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmeIKKDml0xJjm",group_id=2005i,nice=50i,node_count=1i,nodes="naboo147",partition="atlas",priority=4294877957i,standard_error="/home/sessiondir/nN8KDmNMPx5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmeIKKDml0xJjm.comment",standard_input="/dev/null",standard_output="/home/sessiondir/nN8KDmNMPx5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmeIKKDml0xJjm.comment",start_time=1723457333i,state="COMPLETED",state_reason="None",submit_time=1723457333i,tasks=8i,time_limit=3600i,tres_billing=8,tres_cpu=8,tres_mem=16000,tres_node=1 1723464650000000000
|
||||
|
||||
slurm_nodes,name=naboo145,source=127.0.0.1 alloc_cpu=0i,alloc_memory=0i,architecture="x86_64",cores=18i,cpu_load=27i,cpus=36i,free_memory=86423i,real_memory=94791i,slurmd_version="22.05.9",state="idle",tres_billing=36,tres_cpu=36,tres_mem=94791,weight=1i 1723464650000000000
|
||||
slurm_nodes,name=naboo146,source=127.0.0.1 alloc_cpu=0i,alloc_memory=0i,architecture="x86_64",cores=18i,cpu_load=0i,cpus=36i,free_memory=92151i,real_memory=94791i,slurmd_version="22.05.9",state="idle",tres_billing=36,tres_cpu=36,tres_mem=94791,weight=1i 1723464650000000000
|
||||
slurm_nodes,name=naboo147,source=127.0.0.1 alloc_cpu=36i,alloc_memory=56000i,architecture="x86_64",cores=18i,cpu_load=2969i,cpus=36i,free_memory=10908i,real_memory=94793i,slurmd_version="22.05.9",state="allocated",tres_billing=36,tres_cpu=36,tres_mem=94793,tres_used_cpu=36,tres_used_mem=56000,weight=1i 1723464650000000000
|
||||
|
||||
slurm_partitions,name=atlas,source=127.0.0.1 nodes="naboo145,naboo146,naboo147,naboo216,naboo219,naboo222,naboo224,naboo225,naboo227,naboo228,naboo229,naboo234,naboo235,naboo236,naboo237,naboo238,naboo239,naboo240,naboo241,naboo242,naboo243",state="UP",total_cpu=632i,total_nodes=21i,tres_billing=632,tres_cpu=632,tres_mem=1415207,tres_node=21 1723464650000000000
|
224
plugins/inputs/slurm/testcases/gather/responses/diag.json
Normal file
224
plugins/inputs/slurm/testcases/gather/responses/diag.json
Normal file
|
@ -0,0 +1,224 @@
|
|||
{
|
||||
"meta": {
|
||||
"plugin": {
|
||||
"type": "openapi\/v0.0.38",
|
||||
"name": "Slurm OpenAPI v0.0.38"
|
||||
},
|
||||
"Slurm": {
|
||||
"version": {
|
||||
"major": 22,
|
||||
"micro": 9,
|
||||
"minor": 5
|
||||
},
|
||||
"release": "22.05.9"
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
],
|
||||
"statistics": {
|
||||
"rpcs_by_message_type": [
|
||||
{
|
||||
"message_type": "REQUEST_JOB_INFO",
|
||||
"type_id": 2003,
|
||||
"count": 73587,
|
||||
"average_time": 658,
|
||||
"total_time": 48479000
|
||||
},
|
||||
{
|
||||
"message_type": "REQUEST_PARTITION_INFO",
|
||||
"type_id": 2009,
|
||||
"count": 158967,
|
||||
"average_time": 101,
|
||||
"total_time": 16185440
|
||||
},
|
||||
{
|
||||
"message_type": "MESSAGE_NODE_REGISTRATION_STATUS",
|
||||
"type_id": 1002,
|
||||
"count": 18690,
|
||||
"average_time": 137,
|
||||
"total_time": 2566758
|
||||
},
|
||||
{
|
||||
"message_type": "REQUEST_COMPLETE_BATCH_SCRIPT",
|
||||
"type_id": 5018,
|
||||
"count": 12233,
|
||||
"average_time": 486,
|
||||
"total_time": 5946490
|
||||
},
|
||||
{
|
||||
"message_type": "REQUEST_AUTH_TOKEN",
|
||||
"type_id": 5039,
|
||||
"count": 36,
|
||||
"average_time": 291,
|
||||
"total_time": 10489
|
||||
},
|
||||
{
|
||||
"message_type": "REQUEST_BUILD_INFO",
|
||||
"type_id": 2001,
|
||||
"count": 28201,
|
||||
"average_time": 194,
|
||||
"total_time": 5486061
|
||||
},
|
||||
{
|
||||
"message_type": "REQUEST_PING",
|
||||
"type_id": 1008,
|
||||
"count": 28201,
|
||||
"average_time": 103,
|
||||
"total_time": 2925195
|
||||
},
|
||||
{
|
||||
"message_type": "REQUEST_NODE_INFO",
|
||||
"type_id": 2007,
|
||||
"count": 85379,
|
||||
"average_time": 175,
|
||||
"total_time": 15007960
|
||||
},
|
||||
{
|
||||
"message_type": "REQUEST_FED_INFO",
|
||||
"type_id": 2049,
|
||||
"count": 24466,
|
||||
"average_time": 109,
|
||||
"total_time": 2681655
|
||||
},
|
||||
{
|
||||
"message_type": "REQUEST_JOB_INFO_SINGLE",
|
||||
"type_id": 2021,
|
||||
"count": 24466,
|
||||
"average_time": 121,
|
||||
"total_time": 2963320
|
||||
},
|
||||
{
|
||||
"message_type": "REQUEST_SUBMIT_BATCH_JOB",
|
||||
"type_id": 4003,
|
||||
"count": 12233,
|
||||
"average_time": 6504,
|
||||
"total_time": 79574600
|
||||
},
|
||||
{
|
||||
"message_type": "REQUEST_STATS_INFO",
|
||||
"type_id": 2035,
|
||||
"count": 1040,
|
||||
"average_time": 61,
|
||||
"total_time": 64431
|
||||
},
|
||||
{
|
||||
"message_type": "MESSAGE_EPILOG_COMPLETE",
|
||||
"type_id": 6012,
|
||||
"count": 40,
|
||||
"average_time": 86,
|
||||
"total_time": 3455
|
||||
},
|
||||
{
|
||||
"message_type": "REQUEST_RESERVATION_INFO",
|
||||
"type_id": 2024,
|
||||
"count": 1017,
|
||||
"average_time": 47,
|
||||
"total_time": 48788
|
||||
},
|
||||
{
|
||||
"message_type": "REQUEST_LICENSE_INFO",
|
||||
"type_id": 1021,
|
||||
"count": 42,
|
||||
"average_time": 43,
|
||||
"total_time": 1823
|
||||
},
|
||||
{
|
||||
"message_type": "REQUEST_UPDATE_NODE",
|
||||
"type_id": 3002,
|
||||
"count": 2,
|
||||
"average_time": 415,
|
||||
"total_time": 830
|
||||
}
|
||||
],
|
||||
"rpcs_by_user": [
|
||||
{
|
||||
"user": "root",
|
||||
"user_id": 0,
|
||||
"count": 456365,
|
||||
"average_time": 224,
|
||||
"total_time": 102371523
|
||||
},
|
||||
{
|
||||
"user": "atl001",
|
||||
"user_id": 2006,
|
||||
"count": 11699,
|
||||
"average_time": 6611,
|
||||
"total_time": 77353396
|
||||
},
|
||||
{
|
||||
"user": "atl002",
|
||||
"user_id": 2007,
|
||||
"count": 120,
|
||||
"average_time": 3684,
|
||||
"total_time": 442106
|
||||
},
|
||||
{
|
||||
"user": "ops001",
|
||||
"user_id": 18006,
|
||||
"count": 298,
|
||||
"average_time": 4447,
|
||||
"total_time": 1325496
|
||||
},
|
||||
{
|
||||
"user": "ops003",
|
||||
"user_id": 18008,
|
||||
"count": 58,
|
||||
"average_time": 3732,
|
||||
"total_time": 216488
|
||||
},
|
||||
{
|
||||
"user": "ops002",
|
||||
"user_id": 18007,
|
||||
"count": 58,
|
||||
"average_time": 4088,
|
||||
"total_time": 237114
|
||||
},
|
||||
{
|
||||
"user": "99",
|
||||
"user_id": 99,
|
||||
"count": 2,
|
||||
"average_time": 86,
|
||||
"total_time": 172
|
||||
}
|
||||
],
|
||||
"parts_packed": 1,
|
||||
"req_time": 1723103198,
|
||||
"req_time_start": 1723075200,
|
||||
"server_thread_count": 3,
|
||||
"agent_queue_size": 0,
|
||||
"agent_count": 0,
|
||||
"agent_thread_count": 0,
|
||||
"dbd_agent_queue_size": 0,
|
||||
"gettimeofday_latency": 21,
|
||||
"schedule_cycle_max": 1116,
|
||||
"schedule_cycle_last": 298,
|
||||
"schedule_cycle_total": 960,
|
||||
"schedule_cycle_mean": 137,
|
||||
"schedule_cycle_mean_depth": 0,
|
||||
"schedule_cycle_per_minute": 2,
|
||||
"schedule_queue_length": 1,
|
||||
"jobs_submitted": 287,
|
||||
"jobs_started": 287,
|
||||
"jobs_completed": 287,
|
||||
"jobs_canceled": 0,
|
||||
"jobs_failed": 1,
|
||||
"jobs_pending": 0,
|
||||
"jobs_running": 100,
|
||||
"job_states_ts": 1723103172,
|
||||
"bf_backfilled_jobs": 1626,
|
||||
"bf_last_backfilled_jobs": 14,
|
||||
"bf_backfilled_het_jobs": 0,
|
||||
"bf_cycle_counter": 12,
|
||||
"bf_cycle_mean": 440,
|
||||
"bf_depth_mean": 1,
|
||||
"bf_depth_mean_try": 1,
|
||||
"bf_cycle_last": 387,
|
||||
"bf_cycle_max": 811,
|
||||
"bf_queue_len": 1,
|
||||
"bf_queue_len_mean": 1,
|
||||
"bf_table_size": 1,
|
||||
"bf_table_size_mean": 1,
|
||||
"bf_when_last_cycle": 1723102514,
|
||||
"bf_active": false
|
||||
}
|
||||
}
|
448
plugins/inputs/slurm/testcases/gather/responses/jobs.json
Normal file
448
plugins/inputs/slurm/testcases/gather/responses/jobs.json
Normal file
|
@ -0,0 +1,448 @@
|
|||
{
|
||||
"meta": {
|
||||
"plugin": {
|
||||
"type": "openapi\/v0.0.38",
|
||||
"name": "Slurm OpenAPI v0.0.38"
|
||||
},
|
||||
"Slurm": {
|
||||
"version": {
|
||||
"major": 22,
|
||||
"micro": 9,
|
||||
"minor": 5
|
||||
},
|
||||
"release": "22.05.9"
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
],
|
||||
"jobs": [
|
||||
{
|
||||
"account": "",
|
||||
"accrue_time": 1722989851,
|
||||
"admin_comment": "",
|
||||
"array_job_id": 0,
|
||||
"array_task_id": null,
|
||||
"array_max_tasks": 0,
|
||||
"array_task_string": "",
|
||||
"association_id": 0,
|
||||
"batch_features": "",
|
||||
"batch_flag": true,
|
||||
"batch_host": "naboo222",
|
||||
"flags": [
|
||||
"JOB_WAS_RUNNING",
|
||||
"JOB_MEM_SET"
|
||||
],
|
||||
"burst_buffer": "",
|
||||
"burst_buffer_state": "",
|
||||
"cluster": "local",
|
||||
"cluster_features": "",
|
||||
"command": "\/tmp\/SLURM_job_script.OjQEIH",
|
||||
"comment": "",
|
||||
"container": "",
|
||||
"contiguous": false,
|
||||
"core_spec": null,
|
||||
"thread_spec": null,
|
||||
"cores_per_socket": null,
|
||||
"billable_tres": 2.0,
|
||||
"cpus_per_task": null,
|
||||
"cpu_frequency_minimum": null,
|
||||
"cpu_frequency_maximum": null,
|
||||
"cpu_frequency_governor": null,
|
||||
"cpus_per_tres": "",
|
||||
"deadline": 0,
|
||||
"delay_boot": 0,
|
||||
"dependency": "",
|
||||
"derived_exit_code": 0,
|
||||
"eligible_time": 1722989851,
|
||||
"end_time": 1723205851,
|
||||
"excluded_nodes": "",
|
||||
"exit_code": 0,
|
||||
"features": "",
|
||||
"federation_origin": "",
|
||||
"federation_siblings_active": "",
|
||||
"federation_siblings_viable": "",
|
||||
"gres_detail": [
|
||||
],
|
||||
"group_id": 2005,
|
||||
"group_name": "atlas",
|
||||
"job_id": 20464,
|
||||
"job_resources": {
|
||||
"nodes": "naboo222",
|
||||
"allocated_hosts": 1,
|
||||
"allocated_nodes": [
|
||||
{
|
||||
"sockets": {
|
||||
"0": {
|
||||
"cores": {
|
||||
"0": "allocated"
|
||||
}
|
||||
}
|
||||
},
|
||||
"nodename": "naboo222",
|
||||
"cpus_used": 0,
|
||||
"memory_used": 0,
|
||||
"memory_allocated": 4000
|
||||
}
|
||||
]
|
||||
},
|
||||
"job_state": "RUNNING",
|
||||
"last_sched_evaluation": 1722989851,
|
||||
"licenses": "",
|
||||
"max_cpus": 0,
|
||||
"max_nodes": 0,
|
||||
"mcs_label": "",
|
||||
"memory_per_tres": "",
|
||||
"name": "gridjob",
|
||||
"nodes": "naboo222",
|
||||
"nice": 50,
|
||||
"tasks_per_core": null,
|
||||
"tasks_per_node": 0,
|
||||
"tasks_per_socket": null,
|
||||
"tasks_per_board": 0,
|
||||
"cpus": 2,
|
||||
"node_count": 1,
|
||||
"tasks": 1,
|
||||
"het_job_id": 0,
|
||||
"het_job_id_set": "",
|
||||
"het_job_offset": 0,
|
||||
"partition": "atlas",
|
||||
"prefer": "",
|
||||
"memory_per_node": null,
|
||||
"memory_per_cpu": 2000,
|
||||
"minimum_cpus_per_node": 1,
|
||||
"minimum_tmp_disk_per_node": 0,
|
||||
"preempt_time": 0,
|
||||
"pre_sus_time": 0,
|
||||
"priority": 4294881265,
|
||||
"profile": null,
|
||||
"qos": "",
|
||||
"reboot": false,
|
||||
"required_nodes": "",
|
||||
"requeue": false,
|
||||
"resize_time": 0,
|
||||
"restart_cnt": 0,
|
||||
"resv_name": "",
|
||||
"shared": null,
|
||||
"show_flags": [
|
||||
"SHOW_ALL",
|
||||
"SHOW_DETAIL",
|
||||
"SHOW_LOCAL"
|
||||
],
|
||||
"sockets_per_board": 0,
|
||||
"sockets_per_node": null,
|
||||
"start_time": 1722989851,
|
||||
"state_description": "",
|
||||
"state_reason": "None",
|
||||
"standard_error": "\/home\/sessiondir\/zv6NDmqNcv5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmXSJKDmFRYcQm.comment",
|
||||
"standard_input": "\/dev\/null",
|
||||
"standard_output": "\/home\/sessiondir\/zv6NDmqNcv5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmXSJKDmFRYcQm.comment",
|
||||
"submit_time": 1722989851,
|
||||
"suspend_time": 0,
|
||||
"system_comment": "",
|
||||
"time_limit": 3600,
|
||||
"time_minimum": 0,
|
||||
"threads_per_core": null,
|
||||
"tres_bind": "",
|
||||
"tres_freq": "",
|
||||
"tres_per_job": "",
|
||||
"tres_per_node": "",
|
||||
"tres_per_socket": "",
|
||||
"tres_per_task": "",
|
||||
"tres_req_str": "cpu=1,mem=2000M,node=1,billing=1",
|
||||
"tres_alloc_str": "cpu=2,mem=4000M,node=1,billing=2",
|
||||
"user_id": 2006,
|
||||
"user_name": "atl001",
|
||||
"wckey": "",
|
||||
"current_working_directory": "\/home\/sessiondir\/zv6NDmqNcv5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmXSJKDmFRYcQm"
|
||||
},
|
||||
{
|
||||
"account": "",
|
||||
"accrue_time": 1722990772,
|
||||
"admin_comment": "",
|
||||
"array_job_id": 0,
|
||||
"array_task_id": null,
|
||||
"array_max_tasks": 0,
|
||||
"array_task_string": "",
|
||||
"association_id": 0,
|
||||
"batch_features": "",
|
||||
"batch_flag": true,
|
||||
"batch_host": "naboo222",
|
||||
"flags": [
|
||||
"JOB_WAS_RUNNING",
|
||||
"JOB_MEM_SET"
|
||||
],
|
||||
"burst_buffer": "",
|
||||
"burst_buffer_state": "",
|
||||
"cluster": "local",
|
||||
"cluster_features": "",
|
||||
"command": "\/tmp\/SLURM_job_script.XTwtdj",
|
||||
"comment": "",
|
||||
"container": "",
|
||||
"contiguous": false,
|
||||
"core_spec": null,
|
||||
"thread_spec": null,
|
||||
"cores_per_socket": null,
|
||||
"billable_tres": 2.0,
|
||||
"cpus_per_task": null,
|
||||
"cpu_frequency_minimum": null,
|
||||
"cpu_frequency_maximum": null,
|
||||
"cpu_frequency_governor": null,
|
||||
"cpus_per_tres": "",
|
||||
"deadline": 0,
|
||||
"delay_boot": 0,
|
||||
"dependency": "",
|
||||
"derived_exit_code": 0,
|
||||
"eligible_time": 1722990772,
|
||||
"end_time": 1723206772,
|
||||
"excluded_nodes": "",
|
||||
"exit_code": 0,
|
||||
"features": "",
|
||||
"federation_origin": "",
|
||||
"federation_siblings_active": "",
|
||||
"federation_siblings_viable": "",
|
||||
"gres_detail": [
|
||||
],
|
||||
"group_id": 2005,
|
||||
"group_name": "atlas",
|
||||
"job_id": 20468,
|
||||
"job_resources": {
|
||||
"nodes": "naboo222",
|
||||
"allocated_hosts": 1,
|
||||
"allocated_nodes": [
|
||||
{
|
||||
"sockets": {
|
||||
"1": {
|
||||
"cores": {
|
||||
"2": "allocated"
|
||||
}
|
||||
}
|
||||
},
|
||||
"nodename": "naboo222",
|
||||
"cpus_used": 0,
|
||||
"memory_used": 0,
|
||||
"memory_allocated": 4000
|
||||
}
|
||||
]
|
||||
},
|
||||
"job_state": "RUNNING",
|
||||
"last_sched_evaluation": 1722990772,
|
||||
"licenses": "",
|
||||
"max_cpus": 0,
|
||||
"max_nodes": 0,
|
||||
"mcs_label": "",
|
||||
"memory_per_tres": "",
|
||||
"name": "gridjob",
|
||||
"nodes": "naboo222",
|
||||
"nice": 50,
|
||||
"tasks_per_core": null,
|
||||
"tasks_per_node": 0,
|
||||
"tasks_per_socket": null,
|
||||
"tasks_per_board": 0,
|
||||
"cpus": 2,
|
||||
"node_count": 1,
|
||||
"tasks": 1,
|
||||
"het_job_id": 0,
|
||||
"het_job_id_set": "",
|
||||
"het_job_offset": 0,
|
||||
"partition": "atlas",
|
||||
"prefer": "",
|
||||
"memory_per_node": null,
|
||||
"memory_per_cpu": 2000,
|
||||
"minimum_cpus_per_node": 1,
|
||||
"minimum_tmp_disk_per_node": 0,
|
||||
"preempt_time": 0,
|
||||
"pre_sus_time": 0,
|
||||
"priority": 4294881261,
|
||||
"profile": null,
|
||||
"qos": "",
|
||||
"reboot": false,
|
||||
"required_nodes": "",
|
||||
"requeue": false,
|
||||
"resize_time": 0,
|
||||
"restart_cnt": 0,
|
||||
"resv_name": "",
|
||||
"shared": null,
|
||||
"show_flags": [
|
||||
"SHOW_ALL",
|
||||
"SHOW_DETAIL",
|
||||
"SHOW_LOCAL"
|
||||
],
|
||||
"sockets_per_board": 0,
|
||||
"sockets_per_node": null,
|
||||
"start_time": 1722990772,
|
||||
"state_description": "",
|
||||
"state_reason": "None",
|
||||
"standard_error": "\/home\/sessiondir\/ljvLDmQccv5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmcSJKDmor4c2n.comment",
|
||||
"standard_input": "\/dev\/null",
|
||||
"standard_output": "\/home\/sessiondir\/ljvLDmQccv5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmcSJKDmor4c2n.comment",
|
||||
"submit_time": 1722990772,
|
||||
"suspend_time": 0,
|
||||
"system_comment": "",
|
||||
"time_limit": 3600,
|
||||
"time_minimum": 0,
|
||||
"threads_per_core": null,
|
||||
"tres_bind": "",
|
||||
"tres_freq": "",
|
||||
"tres_per_job": "",
|
||||
"tres_per_node": "",
|
||||
"tres_per_socket": "",
|
||||
"tres_per_task": "",
|
||||
"tres_req_str": "cpu=1,mem=2000M,node=1,billing=1",
|
||||
"tres_alloc_str": "cpu=2,mem=4000M,node=1,billing=2",
|
||||
"user_id": 2006,
|
||||
"user_name": "atl001",
|
||||
"wckey": "",
|
||||
"current_working_directory": "\/home\/sessiondir\/ljvLDmQccv5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmcSJKDmor4c2n"
|
||||
},
|
||||
{
|
||||
"account": "",
|
||||
"accrue_time": 1723457333,
|
||||
"admin_comment": "",
|
||||
"array_job_id": 0,
|
||||
"array_task_id": null,
|
||||
"array_max_tasks": 0,
|
||||
"array_task_string": "",
|
||||
"association_id": 0,
|
||||
"batch_features": "",
|
||||
"batch_flag": true,
|
||||
"batch_host": "naboo147",
|
||||
"flags": [
|
||||
"TRES_STR_CALC",
|
||||
"JOB_MEM_SET"
|
||||
],
|
||||
"burst_buffer": "",
|
||||
"burst_buffer_state": "",
|
||||
"cluster": "local",
|
||||
"cluster_features": "",
|
||||
"command": "\/tmp\/SLURM_job_script.8PMmVe",
|
||||
"comment": "",
|
||||
"container": "",
|
||||
"contiguous": false,
|
||||
"core_spec": null,
|
||||
"thread_spec": null,
|
||||
"cores_per_socket": null,
|
||||
"billable_tres": 8.0,
|
||||
"cpus_per_task": null,
|
||||
"cpu_frequency_minimum": null,
|
||||
"cpu_frequency_maximum": null,
|
||||
"cpu_frequency_governor": null,
|
||||
"cpus_per_tres": "",
|
||||
"deadline": 0,
|
||||
"delay_boot": 0,
|
||||
"dependency": "",
|
||||
"derived_exit_code": 0,
|
||||
"eligible_time": 1723457333,
|
||||
"end_time": 1723463525,
|
||||
"excluded_nodes": "",
|
||||
"exit_code": 0,
|
||||
"features": "",
|
||||
"federation_origin": "",
|
||||
"federation_siblings_active": "",
|
||||
"federation_siblings_viable": "",
|
||||
"gres_detail": [
|
||||
],
|
||||
"group_id": 2005,
|
||||
"group_name": "atlas",
|
||||
"job_id": 23772,
|
||||
"job_resources": {
|
||||
"nodes": "naboo147",
|
||||
"allocated_hosts": 1,
|
||||
"allocated_nodes": [
|
||||
{
|
||||
"sockets": {
|
||||
"0": {
|
||||
"cores": {
|
||||
"3": "allocated",
|
||||
"10": "allocated",
|
||||
"12": "allocated",
|
||||
"13": "allocated"
|
||||
}
|
||||
},
|
||||
"1": {
|
||||
"cores": {
|
||||
"8": "allocated",
|
||||
"11": "allocated",
|
||||
"12": "allocated",
|
||||
"13": "allocated"
|
||||
}
|
||||
}
|
||||
},
|
||||
"nodename": "naboo147",
|
||||
"cpus_used": 0,
|
||||
"memory_used": 0,
|
||||
"memory_allocated": 16000
|
||||
}
|
||||
]
|
||||
},
|
||||
"job_state": "COMPLETED",
|
||||
"last_sched_evaluation": 1723457333,
|
||||
"licenses": "",
|
||||
"max_cpus": 0,
|
||||
"max_nodes": 0,
|
||||
"mcs_label": "",
|
||||
"memory_per_tres": "",
|
||||
"name": "gridjob",
|
||||
"nodes": "naboo147",
|
||||
"nice": 50,
|
||||
"tasks_per_core": null,
|
||||
"tasks_per_node": 8,
|
||||
"tasks_per_socket": null,
|
||||
"tasks_per_board": 0,
|
||||
"cpus": 8,
|
||||
"node_count": 1,
|
||||
"tasks": 8,
|
||||
"het_job_id": 0,
|
||||
"het_job_id_set": "",
|
||||
"het_job_offset": 0,
|
||||
"partition": "atlas",
|
||||
"prefer": "",
|
||||
"memory_per_node": null,
|
||||
"memory_per_cpu": 2000,
|
||||
"minimum_cpus_per_node": 8,
|
||||
"minimum_tmp_disk_per_node": 0,
|
||||
"preempt_time": 0,
|
||||
"pre_sus_time": 0,
|
||||
"priority": 4294877957,
|
||||
"profile": null,
|
||||
"qos": "",
|
||||
"reboot": false,
|
||||
"required_nodes": "",
|
||||
"requeue": false,
|
||||
"resize_time": 0,
|
||||
"restart_cnt": 0,
|
||||
"resv_name": "",
|
||||
"shared": null,
|
||||
"show_flags": [
|
||||
"SHOW_ALL",
|
||||
"SHOW_DETAIL",
|
||||
"SHOW_LOCAL"
|
||||
],
|
||||
"sockets_per_board": 0,
|
||||
"sockets_per_node": null,
|
||||
"start_time": 1723457333,
|
||||
"state_description": "",
|
||||
"state_reason": "None",
|
||||
"standard_error": "\/home\/sessiondir\/nN8KDmNMPx5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmeIKKDml0xJjm.comment",
|
||||
"standard_input": "\/dev\/null",
|
||||
"standard_output": "\/home\/sessiondir\/nN8KDmNMPx5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmeIKKDml0xJjm.comment",
|
||||
"submit_time": 1723457333,
|
||||
"suspend_time": 0,
|
||||
"system_comment": "",
|
||||
"time_limit": 3600,
|
||||
"time_minimum": 0,
|
||||
"threads_per_core": null,
|
||||
"tres_bind": "",
|
||||
"tres_freq": "",
|
||||
"tres_per_job": "",
|
||||
"tres_per_node": "",
|
||||
"tres_per_socket": "",
|
||||
"tres_per_task": "",
|
||||
"tres_req_str": "cpu=8,mem=16000M,node=1,billing=8",
|
||||
"tres_alloc_str": "cpu=8,mem=16000M,node=1,billing=8",
|
||||
"user_id": 2006,
|
||||
"user_name": "atl001",
|
||||
"wckey": "",
|
||||
"current_working_directory": "\/home\/sessiondir\/nN8KDmNMPx5nKG01gq4B3BRpm7wtQmABFKDmbnHPDmeIKKDml0xJjm"
|
||||
}
|
||||
]
|
||||
}
|
175
plugins/inputs/slurm/testcases/gather/responses/nodes.json
Normal file
175
plugins/inputs/slurm/testcases/gather/responses/nodes.json
Normal file
|
@ -0,0 +1,175 @@
|
|||
{
|
||||
"meta": {
|
||||
"plugin": {
|
||||
"type": "openapi\/v0.0.38",
|
||||
"name": "Slurm OpenAPI v0.0.38"
|
||||
},
|
||||
"Slurm": {
|
||||
"version": {
|
||||
"major": 22,
|
||||
"micro": 9,
|
||||
"minor": 5
|
||||
},
|
||||
"release": "22.05.9"
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"architecture": "x86_64",
|
||||
"burstbuffer_network_address": "",
|
||||
"boards": 1,
|
||||
"boot_time": 1719400973,
|
||||
"comment": "",
|
||||
"cores": 18,
|
||||
"cpu_binding": 0,
|
||||
"cpu_load": 27,
|
||||
"extra": "",
|
||||
"free_memory": 86423,
|
||||
"cpus": 36,
|
||||
"last_busy": 1723102876,
|
||||
"features": "",
|
||||
"active_features": "",
|
||||
"gres": "",
|
||||
"gres_drained": "N\/A",
|
||||
"gres_used": "",
|
||||
"mcs_label": "",
|
||||
"name": "naboo145",
|
||||
"next_state_after_reboot": "invalid",
|
||||
"address": "naboo145",
|
||||
"hostname": "naboo145",
|
||||
"state": "idle",
|
||||
"state_flags": [
|
||||
"DRAIN"
|
||||
],
|
||||
"next_state_after_reboot_flags": [
|
||||
],
|
||||
"operating_system": "Linux 5.14.0-427.13.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 30 18:22:29 EDT 2024",
|
||||
"owner": null,
|
||||
"partitions": [
|
||||
"atlas"
|
||||
],
|
||||
"port": 6818,
|
||||
"real_memory": 94791,
|
||||
"reason": "Kill task failed",
|
||||
"reason_changed_at": 1723077306,
|
||||
"reason_set_by_user": "root",
|
||||
"slurmd_start_time": 1720394759,
|
||||
"sockets": 2,
|
||||
"threads": 1,
|
||||
"temporary_disk": 0,
|
||||
"weight": 1,
|
||||
"tres": "cpu=36,mem=94791M,billing=36",
|
||||
"slurmd_version": "22.05.9",
|
||||
"alloc_memory": 0,
|
||||
"alloc_cpus": 0,
|
||||
"idle_cpus": 36,
|
||||
"tres_used": null,
|
||||
"tres_weighted": 0.0
|
||||
},
|
||||
{
|
||||
"architecture": "x86_64",
|
||||
"burstbuffer_network_address": "",
|
||||
"boards": 1,
|
||||
"boot_time": 1719400759,
|
||||
"comment": "",
|
||||
"cores": 18,
|
||||
"cpu_binding": 0,
|
||||
"cpu_load": 0,
|
||||
"extra": "",
|
||||
"free_memory": 92151,
|
||||
"cpus": 36,
|
||||
"last_busy": 1722780995,
|
||||
"features": "",
|
||||
"active_features": "",
|
||||
"gres": "",
|
||||
"gres_drained": "N\/A",
|
||||
"gres_used": "",
|
||||
"mcs_label": "",
|
||||
"name": "naboo146",
|
||||
"next_state_after_reboot": "invalid",
|
||||
"address": "naboo146",
|
||||
"hostname": "naboo146",
|
||||
"state": "idle",
|
||||
"state_flags": [
|
||||
"DRAIN"
|
||||
],
|
||||
"next_state_after_reboot_flags": [
|
||||
],
|
||||
"operating_system": "Linux 5.14.0-427.13.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 30 18:22:29 EDT 2024",
|
||||
"owner": null,
|
||||
"partitions": [
|
||||
"atlas"
|
||||
],
|
||||
"port": 6818,
|
||||
"real_memory": 94791,
|
||||
"reason": "Kill task failed",
|
||||
"reason_changed_at": 1722748927,
|
||||
"reason_set_by_user": "root",
|
||||
"slurmd_start_time": 1720394759,
|
||||
"sockets": 2,
|
||||
"threads": 1,
|
||||
"temporary_disk": 0,
|
||||
"weight": 1,
|
||||
"tres": "cpu=36,mem=94791M,billing=36",
|
||||
"slurmd_version": "22.05.9",
|
||||
"alloc_memory": 0,
|
||||
"alloc_cpus": 0,
|
||||
"idle_cpus": 36,
|
||||
"tres_used": null,
|
||||
"tres_weighted": 0.0
|
||||
},
|
||||
{
|
||||
"architecture": "x86_64",
|
||||
"burstbuffer_network_address": "",
|
||||
"boards": 1,
|
||||
"boot_time": 1719406605,
|
||||
"comment": "",
|
||||
"cores": 18,
|
||||
"cpu_binding": 0,
|
||||
"cpu_load": 2969,
|
||||
"extra": "",
|
||||
"free_memory": 10908,
|
||||
"cpus": 36,
|
||||
"last_busy": 1722881704,
|
||||
"features": "",
|
||||
"active_features": "",
|
||||
"gres": "",
|
||||
"gres_drained": "N\/A",
|
||||
"gres_used": "",
|
||||
"mcs_label": "",
|
||||
"name": "naboo147",
|
||||
"next_state_after_reboot": "invalid",
|
||||
"address": "naboo147",
|
||||
"hostname": "naboo147",
|
||||
"state": "allocated",
|
||||
"state_flags": [
|
||||
],
|
||||
"next_state_after_reboot_flags": [
|
||||
],
|
||||
"operating_system": "Linux 5.14.0-427.13.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 30 18:22:29 EDT 2024",
|
||||
"owner": null,
|
||||
"partitions": [
|
||||
"atlas"
|
||||
],
|
||||
"port": 6818,
|
||||
"real_memory": 94793,
|
||||
"reason": "",
|
||||
"reason_changed_at": 0,
|
||||
"reason_set_by_user": null,
|
||||
"slurmd_start_time": 1720394759,
|
||||
"sockets": 2,
|
||||
"threads": 1,
|
||||
"temporary_disk": 0,
|
||||
"weight": 1,
|
||||
"tres": "cpu=36,mem=94793M,billing=36",
|
||||
"slurmd_version": "22.05.9",
|
||||
"alloc_memory": 56000,
|
||||
"alloc_cpus": 36,
|
||||
"idle_cpus": 0,
|
||||
"tres_used": "cpu=36,mem=56000M",
|
||||
"tres_weighted": 36.0
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
"meta": {
|
||||
"plugin": {
|
||||
"type": "openapi\/v0.0.38",
|
||||
"name": "Slurm OpenAPI v0.0.38"
|
||||
},
|
||||
"Slurm": {
|
||||
"version": {
|
||||
"major": 22,
|
||||
"micro": 9,
|
||||
"minor": 5
|
||||
},
|
||||
"release": "22.05.9"
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
],
|
||||
"partitions": [
|
||||
{
|
||||
"flags": [
|
||||
"default"
|
||||
],
|
||||
"preemption_mode": [
|
||||
"disabled"
|
||||
],
|
||||
"allowed_allocation_nodes": "",
|
||||
"allowed_accounts": "",
|
||||
"allowed_groups": "",
|
||||
"allowed_qos": "",
|
||||
"alternative": "",
|
||||
"billing_weights": "",
|
||||
"default_memory_per_cpu": null,
|
||||
"default_memory_per_node": null,
|
||||
"default_time_limit": null,
|
||||
"denied_accounts": "",
|
||||
"denied_qos": "",
|
||||
"preemption_grace_time": 0,
|
||||
"maximum_cpus_per_node": -1,
|
||||
"maximum_memory_per_cpu": null,
|
||||
"maximum_memory_per_node": null,
|
||||
"maximum_nodes_per_job": -1,
|
||||
"max_time_limit": -1,
|
||||
"min nodes per job": 0,
|
||||
"name": "atlas",
|
||||
"nodes": "naboo145,naboo146,naboo147,naboo216,naboo219,naboo222,naboo224,naboo225,naboo227,naboo228,naboo229,naboo234,naboo235,naboo236,naboo237,naboo238,naboo239,naboo240,naboo241,naboo242,naboo243",
|
||||
"over_time_limit": null,
|
||||
"priority_job_factor": 1,
|
||||
"priority_tier": 1,
|
||||
"qos": "",
|
||||
"state": "UP",
|
||||
"total_cpus": 632,
|
||||
"total_nodes": 21,
|
||||
"tres": "cpu=632,mem=1415207M,node=21,billing=632"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"meta": {
|
||||
"plugin": {
|
||||
"type": "openapi\/v0.0.38",
|
||||
"name": "Slurm OpenAPI v0.0.38"
|
||||
},
|
||||
"Slurm": {
|
||||
"version": {
|
||||
"major": 22,
|
||||
"micro": 9,
|
||||
"minor": 5
|
||||
},
|
||||
"release": "22.05.9"
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
],
|
||||
"reservations": [
|
||||
]
|
||||
}
|
8
plugins/inputs/slurm/testcases/gather/telegraf.conf
Normal file
8
plugins/inputs/slurm/testcases/gather/telegraf.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
[[inputs.slurm]]
|
||||
url = "willBeOverriden"
|
||||
response_timeout = "5s"
|
||||
# enabled_endpoints = []
|
||||
|
||||
## Credentials for JWT-based authentication
|
||||
username = "root"
|
||||
token = "topSecret"
|
Loading…
Add table
Add a link
Reference in a new issue