X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2644c33f556000f2c1eabe316784921af50be10c..7dea747820c21c7d45070bff703d58534aada3ba:/cookbooks/prometheus/recipes/default.rb diff --git a/cookbooks/prometheus/recipes/default.rb b/cookbooks/prometheus/recipes/default.rb index 2ad1d69aa..6e88362a4 100644 --- a/cookbooks/prometheus/recipes/default.rb +++ b/cookbooks/prometheus/recipes/default.rb @@ -113,3 +113,11 @@ prometheus_exporter "node" do ] metric_relabel metric_relabel end + +unless node[:prometheus][:snmp].empty? + prometheus_exporter "snmp" do + port 9116 + options "--config.file=/opt/prometheus/exporters/snmp/snmp.yml" + register_target false + end +end