Skip to content

Commit

Permalink
test: Update test outputs with procfs fixture
Browse files Browse the repository at this point in the history
Signed-off-by: Mahendra Paipuri <[email protected]>
  • Loading branch information
mahendrapaipuri committed Jan 6, 2024
1 parent 5948369 commit fd15129
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ batchjob_slurm_job_memory_used_bytes{batch="slurm",hostname="",jobaccount="testa
batchjob_slurm_job_memsw_fail_count{batch="slurm",hostname="",jobaccount="testacc",jobid="1009248",jobuser="testusr",jobuuid="0f0ac288-dbd4-a9a3-df3a-ab14ef9d51d5",step="",task=""} 0
# HELP batchjob_slurm_job_memsw_total_bytes Swap total in bytes
# TYPE batchjob_slurm_job_memsw_total_bytes gauge
batchjob_slurm_job_memsw_total_bytes{batch="slurm",hostname="",jobaccount="testacc",jobid="1009248",jobuser="testusr",jobuuid="0f0ac288-dbd4-a9a3-df3a-ab14ef9d51d5",step="",task=""} 1.6378171392e+10
batchjob_slurm_job_memsw_total_bytes{batch="slurm",hostname="",jobaccount="testacc",jobid="1009248",jobuser="testusr",jobuuid="0f0ac288-dbd4-a9a3-df3a-ab14ef9d51d5",step="",task=""} 1.6042172416e+10
# HELP batchjob_slurm_job_memsw_used_bytes Swap used in bytes
# TYPE batchjob_slurm_job_memsw_used_bytes gauge
batchjob_slurm_job_memsw_used_bytes{batch="slurm",hostname="",jobaccount="testacc",jobid="1009248",jobuser="testusr",jobuuid="0f0ac288-dbd4-a9a3-df3a-ab14ef9d51d5",step="",task=""} 0
# HELP batchjob_slurm_job_system_memory_total_bytes Available total system memory in bytes
# TYPE batchjob_slurm_job_system_memory_total_bytes gauge
batchjob_slurm_job_system_memory_total_bytes{batch="slurm",hostname=""} 1.6378171392e+10
batchjob_slurm_job_system_memory_total_bytes{batch="slurm",hostname=""} 1.6042172416e+10
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
# HELP go_goroutines Number of goroutines that currently exist.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ batchjob_slurm_job_memory_total_bytes{batch="slurm",hostname="",jobaccount="test
batchjob_slurm_job_memory_used_bytes{batch="slurm",hostname="",jobaccount="testacc",jobid="1009248",jobuser="testusr",jobuuid="0f0ac288-dbd4-a9a3-df3a-ab14ef9d51d5",step="",task=""} 4.111491072e+09
# HELP batchjob_slurm_job_system_memory_total_bytes Available total system memory in bytes
# TYPE batchjob_slurm_job_system_memory_total_bytes gauge
batchjob_slurm_job_system_memory_total_bytes{batch="slurm",hostname=""} 1.6378171392e+10
batchjob_slurm_job_system_memory_total_bytes{batch="slurm",hostname=""} 1.6042172416e+10
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
# HELP go_goroutines Number of goroutines that currently exist.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ batchjob_slurm_job_memory_total_bytes{batch="slurm",hostname="",jobaccount="test
batchjob_slurm_job_memory_used_bytes{batch="slurm",hostname="",jobaccount="testacc",jobid="1009248",jobuser="testusr",jobuuid="0f0ac288-dbd4-a9a3-df3a-ab14ef9d51d5",step="",task=""} 4.111491072e+09
# HELP batchjob_slurm_job_system_memory_total_bytes Available total system memory in bytes
# TYPE batchjob_slurm_job_system_memory_total_bytes gauge
batchjob_slurm_job_system_memory_total_bytes{batch="slurm",hostname=""} 1.6378171392e+10
batchjob_slurm_job_system_memory_total_bytes{batch="slurm",hostname=""} 1.6042172416e+10
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
# HELP go_goroutines Number of goroutines that currently exist.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ batchjob_slurm_job_memory_total_bytes{batch="slurm",hostname="",jobaccount="test
batchjob_slurm_job_memory_used_bytes{batch="slurm",hostname="",jobaccount="testacc",jobid="1009248",jobuser="testusr",jobuuid="0f0ac288-dbd4-a9a3-df3a-ab14ef9d51d5",step="",task=""} 4.111491072e+09
# HELP batchjob_slurm_job_system_memory_total_bytes Available total system memory in bytes
# TYPE batchjob_slurm_job_system_memory_total_bytes gauge
batchjob_slurm_job_system_memory_total_bytes{batch="slurm",hostname=""} 1.6378171392e+10
batchjob_slurm_job_system_memory_total_bytes{batch="slurm",hostname=""} 1.6042172416e+10
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
# HELP go_goroutines Number of goroutines that currently exist.
Expand Down
4 changes: 4 additions & 0 deletions scripts/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ then
./bin/batchjob_exporter \
--path.sysfs="pkg/collector/fixtures/sys" \
--path.cgroupfs="pkg/collector/fixtures/sys/fs/cgroup" \
--path.procfs="pkg/collector/fixtures/proc" \
--collector.slurm.create.unique.jobids \
--collector.slurm.job.props.path="pkg/collector/fixtures/slurmjobprops" \
--collector.slurm.gpu.type="nvidia" \
Expand All @@ -211,6 +212,7 @@ then
./bin/batchjob_exporter \
--path.sysfs="pkg/collector/fixtures/sys" \
--path.cgroupfs="pkg/collector/fixtures/sys/fs/cgroup" \
--path.procfs="pkg/collector/fixtures/proc" \
--collector.slurm.create.unique.jobids \
--collector.slurm.job.props.path="pkg/collector/fixtures/slurmjobprops" \
--collector.slurm.gpu.type="amd" \
Expand All @@ -227,6 +229,7 @@ then
./bin/batchjob_exporter \
--path.sysfs="pkg/collector/fixtures/sys" \
--path.cgroupfs="pkg/collector/fixtures/sys/fs/cgroup" \
--path.procfs="pkg/collector/fixtures/proc" \
--collector.slurm.create.unique.jobids \
--collector.slurm.job.props.path="pkg/collector/fixtures/slurmjobprops" \
--collector.slurm.force.cgroups.version="v2" \
Expand Down Expand Up @@ -255,6 +258,7 @@ then
./bin/batchjob_exporter \
--path.sysfs="pkg/collector/fixtures/sys" \
--path.cgroupfs="pkg/collector/fixtures/sys/fs/cgroup" \
--path.procfs="pkg/collector/fixtures/proc" \
--collector.slurm.create.unique.jobids \
--collector.slurm.job.props.path="pkg/collector/fixtures/slurmjobprops" \
--collector.slurm.gpu.type="amd" \
Expand Down

0 comments on commit fd15129

Please sign in to comment.