<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 14, 2017 at 2:05 PM, Matt Riedemann <span dir="ltr"><<a href="mailto:mriedemos@gmail.com" target="_blank">mriedemos@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
</blockquote>
<br>
Chet, are you aware of the instance actions API?<br>
<br>
<a href="https://developer.openstack.org/api-ref/compute/#servers-actions-servers-os-instance-actions" rel="noreferrer" target="_blank">https://developer.openstack.or<wbr>g/api-ref/compute/#servers-act<wbr>ions-servers-os-instance-actio<wbr>ns</a><br>
<br>
That might not give you all of the information you care about though, like the source and target host since it's not specific to migrations.<br></blockquote><div><br></div><div>We use that as well. It can be be useful, but its not all encompassing and sometimes can give the impression that something didn't happen when it did (different versions of nova have had different gaps over the years). Its mostly working now so we probably need to rely more heavily on it in our newer deploys.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
This does bring up something Sean Dague and I were talking about today, which is we would like to know how often a certain API is used, like shelve for example. We don't have a great way to mine this data today in the API. We have the instance actions API, but that doesn't support listing actions for all instances in all projects, or even all instances in a single project. It's scoped to a specific instance.<br>
<br>
So what we spit-balled was putting something simple and easy into nova-manage which could be used to dump stats on instance actions.<br>
<br>
For example, we could list the total number of some action taken on a single instance, or all instances in a project, or all instances for all projects. And maybe provide a time window filter so you can get a week, or a month, etc.<br>
<br>
This came up because I wanted to ask the operators list how often people use the shelve API in their cloud, but that's kind of hard to know. If we had something like this in nova-manage, it would be relatively easy for developers to poll operators for API usage and get a report back, e.g. there were 25 shelve operations on all instances in my cloud in the last week.<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></blockquote><div><br></div><div>Where would you be storing these stats? I would be worried that the act of tracking this might put a load on the system.</div><div><br></div></div></div></div>