Merge "Fix collectd decoder for Xenial compute nodes"
diff --git a/heka/files/lua/decoders/collectd.lua b/heka/files/lua/decoders/collectd.lua
index 0cf54cd..3988c17 100644
--- a/heka/files/lua/decoders/collectd.lua
+++ b/heka/files/lua/decoders/collectd.lua
@@ -459,7 +459,7 @@
msg['Fields']['name'] = 'logged_users'
msg['Fields']['hostname'] = sample['host']
table.insert(msg['Fields']['tag_fields'], 'hostname')
- elseif metric_source == 'libvirt' then
+ elseif metric_source == 'libvirt' or metric_source == 'virt' then
-- collectd sends the instance's ID in the 'host' field
msg['Fields']['instance_id'] = sample['host']
table.insert(msg['Fields']['tag_fields'], 'instance_id')