[ovirt-users] Re: sdk api and follow question / bug

2018-05-14 Thread Peter Hudec
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi,

I'm running query

uri:
https://dipovirt-engine02.cnc.sk//ovirt-engin/api/vms?follow=statistics,
nics.statistics,disk_attachments.disk.statistics

headers: {'Accept': 'application/json'}

The result contains the disk_attachments.disk.statistics section only
for the first VM.

regards
Peter Hudec


On 14/05/2018 09:45, Ondra Machacek wrote:
> On 05/10/2018 10:32 AM, Peter Hudec wrote: Hi,
> 
> I'm using API to get stats about the VM using the FOLLOW syntax 
> described in 
> http://ovirt.github.io/ovirt-engine-api-model/4.2/#documents/003_commo
n_
>
> 
concepts/follow
> 
> In my case I list all VM with FOLLOWING - 'statistics', -
> 'nics.statistics', - 'disk_attachments.disk.statistics'
> 
> On my env with about 50 VM the query took about 12s but the paring
> for the monitoring system is easy.
> 
> The question is, it's better to split the code and use more queries
> as the note in the API docs recommends? Not sure it will be faster
> and less cpu intensive on the engine side.
> 
>> It won't. It's better just in terms of network load, not engine
>> load.
> 
> 
> Also the disk_attachments.disk.statistics on VMs seems to be
> broken, I'm not getting the data on 4.2.2 installation. /using json
> syntax, not xml/
> 
>> Can you please describe what exactly isn't working? You won't get
>> that for any VM? Can describe the steps how to reproduce it? Do
>> you get HTTP 404 or 500?
> 
> 
> regards Peter
> 
> -- *Peter Hudec* Infraštruktúrny architekt phu...@cnc.sk
> 
> 
> *CNC, a.s.* Borská 6, 841 04 Bratislava Recepcia: +421 2  35 000
> 100
> 
> Mobil:+421 905 997 203 *www.cnc.sk* 
> 
>> ___ Users mailing
>> list -- users@ovirt.org To unsubscribe send an email to
>> users-le...@ovirt.org
>> 

- -- 
*Peter Hudec*
Infraštruktúrny architekt
phu...@cnc.sk 

*CNC, a.s.*
Borská 6, 841 04 Bratislava
Recepcia: +421 2  35 000 100

Mobil:+421 905 997 203
*www.cnc.sk* 

-BEGIN PGP SIGNATURE-

iQIzBAEBCgAdFiEEqSUbhuEwhryifNeVQnvVWOJ35BAFAlr557QACgkQQnvVWOJ3
5BBlvxAAknUNEAzVdHpTf9uvE0IkOkdxfj79cEKOWDjRoDVjK+XOUOjvlxDKOjHe
0LZC3cfrEL8ASLFkzT16NYpX16SNXHgobbHcMBjy6xAs8r2hqSdG9D5bjrjoYO6R
Wsm8qewnINkaKyGYF7vKP72o9o7pGhY2MArR1IJjAjFGqUd0uXHoK4T1IkVv59q9
2DuiCFaAIrrVYUQnYrjHp994Bk0CalXzKrtVmYHoOUAvsd6kPpNRSjJpwReor2XI
sf6jr+TzhQtMokLbfW5GnvvkeQVDQDzDhqHnCuv5wEsMF63oFDIGNcL/bOgcqXh/
BVkTqnZqeL3B++GccJgRWbojZ8wk3mUuNyccHifjJiFPogvokcSppPI6EY4tJXM1
slX6WXIJnpMbcFBRrLYyCrN9C0qY3YSYP41AP8YwJGWHJNI6eG7at3eQn+Fs6ipj
XVTswVOx7MV7z4M5eWFnqnTRQkKyDtVVgcjom6LJMd0LdN5RJt6HbfbAvPeTw06h
ExLXis73A1ARgFx4Xf4SHXmqkHB3xmwB46KHFzL/u06AXHVgnQczViaQ//V6EveV
gZQc2eYk+QC3wkFq1Fkt0/1dYDZ2Mfsx/LOjZo6BfWKJUmIdDRQHIi0Akg0yRQ+L
2/3QL0kOHE5dV2JnAeMHv8tdcKAQSWWdnqJtXoDRgW4GaMxbHw8=
=scp6
-END PGP SIGNATURE-
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org


[ovirt-users] Re: sdk api and follow question / bug

2018-05-14 Thread Ondra Machacek

On 05/10/2018 10:32 AM, Peter Hudec wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi,

I'm using API to get stats about the VM using the FOLLOW syntax
described in
http://ovirt.github.io/ovirt-engine-api-model/4.2/#documents/003_common_
concepts/follow

In my case I list all VM with FOLLOWING
  - 'statistics',
  - 'nics.statistics',
  - 'disk_attachments.disk.statistics'

On my env with about 50 VM the query took about 12s but the paring for
the monitoring system is easy.

The question is, it's better to split the code and use more queries as
the note in the API docs recommends? Not sure it will be faster and
less cpu intensive on the engine side.


It won't. It's better just in terms of network load, not engine load.



Also the disk_attachments.disk.statistics on VMs seems to be broken,
I'm not getting the data on 4.2.2 installation. /using json syntax,
not xml/


Can you please describe what exactly isn't working?
You won't get that for any VM? Can describe the steps how to reproduce
it? Do you get HTTP 404 or 500?



regards
Peter

- -- 
*Peter Hudec*

Infraštruktúrny architekt
phu...@cnc.sk 

*CNC, a.s.*
Borská 6, 841 04 Bratislava
Recepcia: +421 2  35 000 100

Mobil:+421 905 997 203
*www.cnc.sk* 

-BEGIN PGP SIGNATURE-

iQIzBAEBCgAdFiEERCwM7E/ZOYb1ejhCbZu8qDuIhFsFAlr0A60ACgkQbZu8qDuI
hFuh9RAAxP7o7Ve7tGN2c9ClG5FQcOpUH9Jwa6JiieEauFP3ivIdN1vVwA+YhgVW
Ij9iDrXBWdtlVrlQojqInMrWjNUQoeSAiJGTee/LztjeKrxK7Hkbd6JC8GAL0WbK
NWjHtzODX98MHhY7tgFoCW0xApUcN4c+jp5E8IuN/Gh19Ml3Nk9okUbbXDAnOxNK
1n5y1wnye2Gjk7hVwHoccY4V74FgjQ/hKbVRwjhDXHsHa9VHBpLJKtRhu1+5JdDj
ba79B5KM7w9CYI/QnLDsKeGLHsEylEnw6zY6+seitRAtIGfe7XB+PDddt9dSoC91
bwZfVEx6GCUr6lp+YJsbd/BCFdjLpMhWuI1q3d0A1rzuB4P/9/ehK2fB5ZtE5IDx
snkfNOk9sn/+AxuR79GnORdAOL38VFtNg1vZeHBVCg9byQ+mPcIlXdavYmZw9Sn3
lqsuS8xzcVltRw30eF9ne8uIlDETUdLQ84/RI2kxcbXT6naGWH9pbtto5ttY84Oc
QLAzIKeSFj9GFQm06b5wCReA7gpApU1eMeBlXEhGfUwwpQ4Ma2QjGVHLM6yyIbHG
uqKQcaU2z0gZANmDMw1RSv6AbDiDYvF5UNznCJklrxKycLKgiLVYEfsDcT8+mSKK
pFqazDVn6HzEa+SnU+peSQxb0N1oCfnufUqyCumih+8FNmjr1V8=
=u7vS
-END PGP SIGNATURE-
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org


___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org