From: Grant Slater Date: Fri, 2 Dec 2022 18:17:30 +0000 (+0000) Subject: prometheus: Fix Mac ARM compatibility (kitchen) X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/52b90342fa2d700915638fd9e5052200a0f41683 prometheus: Fix Mac ARM compatibility (kitchen) ohai on Apple Mac M1 in Docker does not not populate node[:cpu] due to lscpu compatibility issue. Signed-off-by: Grant Slater --- diff --git a/cookbooks/prometheus/resources/exporter.rb b/cookbooks/prometheus/resources/exporter.rb index 6a17ef3ff..c8b4e0cd8 100644 --- a/cookbooks/prometheus/resources/exporter.rb +++ b/cookbooks/prometheus/resources/exporter.rb @@ -125,7 +125,7 @@ action_class do end def executable_architecture - node[:cpu][:architecture] + node[:kernel][:machine] end def executable_options