From 2c58a6ce3368072fb6fc9e8e28d5956747e5d9f1 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 28 Oct 2020 20:23:54 +0000 Subject: [PATCH 1/1] Configure ipmi exporter for prometheus --- cookbooks/hardware/recipes/default.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index e8f903f64..fca803197 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -174,7 +174,14 @@ service "haveged" do action [:enable, :start] end -package "ipmitool" if node[:kernel][:modules].include?("ipmi_si") +if node[:kernel][:modules].include?("ipmi_si") + package "ipmitool" + package "freeipmi-tools" + + prometheus_exporter "ipmi" do + port 9290 + end +end package "irqbalance" -- 2.39.5