diff --git a/influxdb.rb b/influxdb.rb index 6c95059..9cdfc63 100644 --- a/influxdb.rb +++ b/influxdb.rb @@ -53,7 +53,7 @@ def run(event_data) key.gsub!(',', '\,') # This will merge : default conf tags < check embedded tags < sensu client/host tag - tags = conf.fetch(:tags, {}).merge(event['check']['influxdb']['tags']).merge({'host' => host}) + tags = conf.fetch('tags', {}).merge(event['check']['influxdb']['tags']).merge({'host' => host}) tags.each do |tag, val| key += ",#{tag}=#{val}" end