Skip to content

Commit 5799e94

Browse files
author
Aman Shah
committed
Merge pull request 'Updated the params to exporter' (#1406) from slurm_address into master
Reviewed-on: https://gitea.obmondo.com/EnableIT/LinuxAid/pulls/1406
2 parents ff95ac7 + de9854d commit 5799e94

File tree

1 file changed

+1
-5
lines changed
  • modules/enableit/common/manifests/monitor/exporter

1 file changed

+1
-5
lines changed

modules/enableit/common/manifests/monitor/exporter/slurm.pp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434

3535
$_address = $listen_address.split(':')[0]
3636
$_port = $listen_address.split(':')[1]
37-
$_options = [
38-
"--address=${_address}",
39-
"--port=${_port}",
40-
]
4137

4238
prometheus::daemon { 'prometheus-slurm-exporter':
4339
package_name => 'obmondo-slurm-exporter',
@@ -53,7 +49,7 @@
5349
notify_service => Service['prometheus-slurm-exporter'],
5450
real_download_url => 'https://github.com/rivosinc/prometheus-slurm-exporter',
5551
export_scrape_job => $enable,
56-
options => $_options.join(' '),
52+
options => "-web.listen-address ${listen_address}",
5753
scrape_port => Integer($listen_address.split(':')[1]),
5854
scrape_host => $trusted['certname'],
5955
scrape_job_name => 'slurm',

0 commit comments

Comments
 (0)