Fix Glance image size metrics

Change-Id: I0b570381c855a636d87d24113ff652f6db046d6a
diff --git a/collectd/files/plugin/openstack_glance.py b/collectd/files/plugin/openstack_glance.py
index 4efe103..f2e45ab 100644
--- a/collectd/files/plugin/openstack_glance.py
+++ b/collectd/files/plugin/openstack_glance.py
@@ -66,7 +66,7 @@
             return d.get('size', 0)
 
         def groupby_size(d):
-            p = 'public' if d.get('is_public', True) else 'private'
+            p = d['visibility']
             status = d.get('status', 'unknown').lower()
             if is_snap(d):
                 return 'snapshots_size.%s.%s' % (p, status)