-----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 phudec(a)cnc.sk
> <mailto:phudec@cnc.sk
> *CNC, a.s.* Borská 6, 841 04 Bratislava Recepcia: +421 2 35 000
> 100
>
> Mobil:+421 905 997 203 *www.cnc.sk* <http:///www.cnc.sk
>> _______________________________________________ Users mailing
>> list -- users(a)ovirt.org To unsubscribe send an email to
>> users-leave(a)ovirt.org
>>
- --
*Peter Hudec*
Infraštruktúrny architekt
phudec(a)cnc.sk <mailto:phudec@cnc.sk>
*CNC, a.s.*
Borská 6, 841 04 Bratislava
Recepcia: +421 2 35 000 100
Mobil:+421 905 997 203
*www.cnc.sk* <http:///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-----