[Ceilometer] RADOS GW metrics : cannot get radosgw.objects.size metric

Taltavull Jean-François jean-francois.taltavull at elca.ch
Mon Oct 24 14:26:06 UTC 2022


Hello,

I'm trying to get the 'radosgw.objects.size' metric, that is the total bucket objects size per tenant. I expected to get one sample per tenant but I get one sample per bucket instead, as with the 'rados.containers.objects.size' metric.

Here is my pollster definition:
'''
- name: "radosgw.objects.size"
  sample_type: "gauge"
  unit: "B"
  value_attribute: ". | value['usage'] | value.get('rgw.main',{'size':0}) | value['size']"
  url_path: "FQDN/admin/bucket?stats=True"
  module: "awsauth"
  authentication_object: "S3Auth"
  authentication_parameters: my_access_key,my_secret_key,FQDN
  user_id_attribute: "owner | value.split('$') | value[0]"
  project_id_attribute: "tenant"
  resource_id_attribute: "id"
'''

I tried with "resource_id_attribute: "tenant" but it does not work better.

Any idea ? Is there something wrong in the pollster definition ?

Regards,
Jean-Francois



More information about the openstack-discuss mailing list