<DIV>Hi, Julien</DIV>
<DIV> </DIV>
<DIV>I am using master branch and newest code for testing.</DIV>
<DIV> </DIV>
<DIV>For the purpose for learning the structure of gnocchi, I changed the default UUID type of mysql from binary to char, so I can easily link the resource-id(I mean in database), metric id and directory name of storing measures.</DIV>
<DIV> </DIV>
<DIV>When I did that, I found all the metrics where their resource id is combined(here, I mean in Ceilometer, such as instance-xxx-tapxxxx) have no measures stored.</DIV>
<DIV> </DIV>
<DIV>Log in Ceilometer collector records this:</DIV>
<DIV>"</DIV>
<DIV>2015-09-11 07:55:55.097 10636 ERROR ceilometer.dispatcher.gnocchi [-] Resource instance-00000001-4641f59e-994c-4255-b0ec-43a276d1c19c-tap8aadb7ad-d7 creation failed with status: 400: <html><BR> <head><BR>  <title>400 Bad Request</title><BR> </head><BR> <body><BR>  <h1>400 Bad Request</h1><BR>  The server could not comply with the request since it is either malformed or otherwise incorrect.<br /><br /><BR>Invalid input: required key not provided @ data['display_name']</DIV>
<DIV> </body><BR></html><BR></DIV>
<DIV>"</DIV>
<DIV>So I wander whether gnocchi cannot deal with such combined resource-id metrics or whether it is because I change the UUID type or whatever.</DIV>
<DIV> </DIV>
<DIV>And another question is how to query measures for those metrics whose resource id is combined.</DIV>
<DIV> </DIV>
<DIV>For example, I want to query the network traffic of an vm, I know the instance uuid 1111-2222, I know metric name 'network.incoming.byte.rate' but I do not know the exact resouce_id and metric id. What procedure should I do ? </DIV>
<DIV>
<DIV style="FONT-SIZE: 12px; FONT-FAMILY: Arial Narrow; COLOR: #909090">------------------</DIV>
<DIV style="FONT-SIZE: 14px; FONT-FAMILY: Verdana; COLOR: #000">Luo Gangyi 
<DIV>
<DIV>luogangyi@cmss.chinamobile.com</DIV></DIV></DIV></DIV>
<DIV> </DIV>
<DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12px; FONT-FAMILY: Arial Narrow; PADDING-BOTTOM: 2px; PADDING-TOP: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px">------------------ Original ------------------</DIV>
<DIV style="FONT-SIZE: 12px; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px">
<DIV><B>From: </B> "Julien Danjou";<julien@danjou.info>;</DIV>
<DIV><B>Date: </B> Fri, Sep 11, 2015 06:31 PM</DIV>
<DIV><B>To: </B> "Luo Gangyi"<lgy181@foxmail.com>; <WBR></DIV>
<DIV><B>Cc: </B> "OpenStack Development Mailing L"<openstack-dev@lists.openstack.org>; <WBR></DIV>
<DIV><B>Subject: </B> Re: [openstack-dev] [Ceilometer][Gnocchi] Gnocchi cannot deal with combined resource-id ?</DIV></DIV>
<DIV><BR></DIV>On Fri, Sep 11 2015, Luo Gangyi wrote:<BR><BR>Hi Luo,<BR><BR>> I find that gnocchi cannot deal with combined resource-id such as<BR>> instance-xxxxxx-tapxxxxxx or instance-xxxx-vda. I'm not sure whether it is my<BR>> configuration problem or just bug.<BR><BR>Which version are you testing? The master branch has no support for<BR>resource ID that are not UUID.<BR><BR>> And if such combined resource-id can be processed correctly, what about its<BR>> metadata(or called attributes)? In current design, gnocchi seems treat<BR>> instance-aaa, instance-aaa-tap111, instance-aaa-tap222 as equal although they<BR>> have parent-child relationship and share many attributes.<BR><BR>We just merged support for those resources. We do not store any<BR>attribute other than the name and parent instance AFAICS. What do you<BR>miss as an attribute exactly?<BR><BR>-- <BR>Julien Danjou<BR># Free Software hacker<BR># http://julien.danjou.info<BR><BR>
<DIV></DIV></DIV>