On Thu, Jun 08, 2017 at 08:30:32AM +0000, Deepthi V V wrote:
Thanks Mehdi for the information. I will soon upload a spec for adding the 
meters.

We don't use spec, just open a bug, or directly send patches.

Thanks,
Deepthi

-----Original Message-----
From: Mehdi Abaakouk [mailto:sil...@sileht.net]
Sent: Thursday, June 08, 2017 1:44 PM
To: OpenStack Development Mailing List (not for usage questions) 
<openstack-dev@lists.openstack.org>
Subject: Re: [openstack-dev] [telemetry][ceilometer][gnocchi] Query on adding 
new meters to Gnocchi

Hi,

On Thu, Jun 08, 2017 at 05:35:43AM +0000, Deepthi V V wrote:
Hi,

I am trying to add new meters/resource types in gnocchi. I came across 2 files:
Gnocchi_resources.yaml and ceilometer_update script which will make Gnocchi api 
calls for resource_type addition.
I have a few queries. Could you please clarify them.


 1.  Is it sufficient to add the resource types only in gnocchi_resources.yaml 
file.

No, you also need to create resource type with the Gnocchi API.

 2.  OR is the ceilometer_update script also required to be modified. Is this 
script responsible for defining attributes in metadata.

This script is only for Ceilometer supported resource types. We do not support 
upgrade if this script is changed or if you add/remove attributes to Ceilometer 
resource types.

 3.  If I have to perform function done by step 2, as an alternative to 
updating the script, is it correct to bring up the system in following order
    *   Change gnocchi_resources.yaml for new resource types.
    *   Start ceilometer and gnocchi processes.
    *   Execute Gnocchi REST apis to create new resource types.

I see to two solutions depending of your use case:

* if your new resource types aim to support a not yet handled Openstack
 resource. You should consider to contribute upstream to update
 ceilometer-upgrade and gnocchi_resources.yaml

* if not, then option 3 is the good way to go.

Regards,

--
Mehdi Abaakouk
mail: sil...@sileht.net
irc: sileht

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

--
Mehdi Abaakouk
mail: sil...@sileht.net
irc: sileht

Attachment: signature.asc
Description: PGP signature

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to