Can you show us the json you are trying to process with Ceilometer? Then,we can move on from there. You can post here a minimalistic version of the json output.

On Fri, Oct 28, 2022 at 4:32 AM Taltavull Jean-François <jean-francois.taltavull@elca.ch> wrote:
Hello,

I can ask the question another way: what's the difference between 'radosgw.containers.objects.size' and 'radosgw.objects.size' metrics ?

Thanks,

JF

> -----Original Message-----
> From: Taltavull Jean-François
> Sent: lundi, 24 octobre 2022 16:26
> To: openstack-discuss <openstack-discuss@lists.openstack.org>
> Subject: [Ceilometer] RADOS GW metrics : cannot get radosgw.objects.size
> metric
>
> 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



--
Rafael Weingärtner