]> git.openstreetmap.org Git - chef.git/commitdiff
prometheus: Fix Mac ARM compatibility (kitchen)
authorGrant Slater <github@firefishy.com>
Fri, 2 Dec 2022 18:17:30 +0000 (18:17 +0000)
committerGrant Slater <github@firefishy.com>
Fri, 2 Dec 2022 18:18:49 +0000 (18:18 +0000)
ohai on Apple Mac M1 in Docker does not not populate node[:cpu] due to lscpu compatibility issue.

Signed-off-by: Grant Slater <github@firefishy.com>
cookbooks/prometheus/resources/exporter.rb

index 6a17ef3ff26f3b1f273738fb1ac8ecbe126dfa0b..c8b4e0cd8fac96172e435fc334ab7530b6bdad0d 100644 (file)
@@ -125,7 +125,7 @@ action_class do
   end
 
   def executable_architecture
-    node[:cpu][:architecture]
+    node[:kernel][:machine]
   end
 
   def executable_options