Hi, Julien
  
 I am using master branch and newest code for testing.
  
 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.
  
 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.
  
 Log in Ceilometer collector records this:
 "
 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>
 <head>
  <title>400 Bad Request</title>
 </head>
 <body>
  <h1>400 Bad Request</h1>
  The server could not comply with the request since it is either malformed or 
otherwise incorrect.<br /><br />
Invalid input: required key not provided @ data['display_name']
  </body>
</html>

 "
 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.
  
 And another question is how to query measures for those metrics whose resource 
id is combined.
  
 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 ? 
  ------------------
 Luo Gangyi   [email protected]



  
  

 

 ------------------ Original ------------------
  From:  "Julien Danjou";<[email protected]>;
 Date:  Fri, Sep 11, 2015 06:31 PM
 To:  "Luo Gangyi"<[email protected]>; 
 Cc:  "OpenStack Development Mailing L"<[email protected]>; 
 Subject:  Re: [openstack-dev] [Ceilometer][Gnocchi] Gnocchi cannot deal with 
combined resource-id ?

 

On Fri, Sep 11 2015, Luo Gangyi wrote:

Hi Luo,

> I find that gnocchi cannot deal with combined resource-id such as
> instance-xxxxxx-tapxxxxxx or instance-xxxx-vda. I'm not sure whether it is my
> configuration problem or just bug.

Which version are you testing? The master branch has no support for
resource ID that are not UUID.

> And if such combined resource-id can be processed correctly, what about its
> metadata(or called attributes)? In current design, gnocchi seems treat
> instance-aaa, instance-aaa-tap111, instance-aaa-tap222 as equal although they
> have parent-child relationship and share many attributes.

We just merged support for those resources. We do not store any
attribute other than the name and parent instance AFAICS. What do you
miss as an attribute exactly?

-- 
Julien Danjou
# Free Software hacker
# http://julien.danjou.info
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: [email protected]?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to