Skip to content

Commit b9e1af6

Browse files
committed
Open up node exporter web listen port on builders
1 parent 2ca5062 commit b9e1af6

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

cookbooks/boxcutter_backhaul/recipes/default.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
}.include?(node['hostname'])
2222

2323
if nexus_hosts
24+
node.default['boxcutter_prometheus']['node_exporter']['command_line_flags'] = {
25+
'collector.systemd' => nil,
26+
'collector.processes' => nil,
27+
'no-collector.infiniband' => nil,
28+
'no-collector.nfs' => nil,
29+
'collector.textfile' => nil,
30+
'collector.textfile.directory' => '/var/lib/node_exporter/textfile',
31+
'web.listen-address' => ':9100',
32+
}
33+
2434
include_recipe 'boxcutter_prometheus::node_exporter'
2535

2636
storage_blob_store_name = 'default'

cookbooks/boxcutter_builder/recipes/default.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
}
2222

2323
if arm64_self_hosted_runner_list.include?(node['hostname'])
24+
node.default['boxcutter_prometheus']['node_exporter']['command_line_flags'] = {
25+
'collector.systemd' => nil,
26+
'collector.processes' => nil,
27+
'no-collector.infiniband' => nil,
28+
'no-collector.nfs' => nil,
29+
'collector.textfile' => nil,
30+
'collector.textfile.directory' => '/var/lib/node_exporter/textfile',
31+
'web.listen-address' => ':9100',
32+
}
33+
2434
include_recipe 'boxcutter_prometheus::node_exporter'
2535

2636
package 'jq'
@@ -63,6 +73,16 @@
6373
}
6474

6575
if new_amd64_self_hosted_runner_list.include?(node['hostname'])
76+
node.default['boxcutter_prometheus']['node_exporter']['command_line_flags'] = {
77+
'collector.systemd' => nil,
78+
'collector.processes' => nil,
79+
'no-collector.infiniband' => nil,
80+
'no-collector.nfs' => nil,
81+
'collector.textfile' => nil,
82+
'collector.textfile.directory' => '/var/lib/node_exporter/textfile',
83+
'web.listen-address' => ':9100',
84+
}
85+
6686
include_recipe 'boxcutter_prometheus::node_exporter'
6787

6888
package 'jq'

0 commit comments

Comments
 (0)