Skip to content

Commit d35e3df

Browse files
authored
Open default node exporter port (#25)
1 parent bc50ba7 commit d35e3df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cookbooks/boxcutter_prometheus/recipes/node_exporter.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818

19+
# Port 9100 is the default node exporter port
20+
node.default['fb_iptables']['filter']['INPUT']['rules']['node_exporter'] = {
21+
'rules' => [
22+
'-p tcp --dport 9100 -j ACCEPT',
23+
],
24+
}
25+
1926
include_recipe 'boxcutter_prometheus::user'
2027

2128
boxcutter_prometheus_tarball 'node_exporter' do

0 commit comments

Comments
 (0)