[openstack-dev] [telemetry][ceilometer][gnocchi] Query on adding new meters to Gnocchi
Mehdi Abaakouk
sileht at sileht.net
Thu Jun 8 08:13:40 UTC 2017
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: sileht at sileht.net
irc: sileht
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170608/1daecfd8/attachment.sig>
More information about the OpenStack-dev
mailing list