From 2fccf62e2060ecf5abbd3d37fccd01664323de4e Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 24 Oct 2020 13:30:05 +0900 Subject: [PATCH] Specify attributes for `snmp_exporter`. --- cookbooks/prometheus/attributes.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cookbooks/prometheus/attributes.rb b/cookbooks/prometheus/attributes.rb index 221f13f..3c90455 100644 --- a/cookbooks/prometheus/attributes.rb +++ b/cookbooks/prometheus/attributes.rb @@ -45,4 +45,11 @@ node.reverse_merge!({ 'storage' => '/opt/filestat_exporter/', 'location' => '/usr/local/bin/' }, + 'snmp_exporter' => { + 'url' => 'https://github.com/prometheus/snmp_exporter/releases/download/', + 'prefix' => 'snmp_exporter-', + 'postfix' => '.linux-amd64.tar.gz', + 'storage' => '/opt/snmp_exporter/', + 'location' => '/usr/local/bin/' + }, })