Prism

Welcome to the Nutanix NEXT community. To get started please read our short welcome post. Thanks!

cancel
Showing results for 
Search instead for 
Did you mean: 

Analysis tab data export question

SOLVED Go to solution
Trailblazer

Analysis tab data export question

Hello everyone,

 

I have a question concerning the analysis tab on the Prism Element UI. 

 

To get started i will shortly explain what our current situation is:

 

Last year we sold some Nutanix boxes to a customer. In this contract we also included monitor/management services. As an agreement, every month we schedule a meeting with our customer where we evaluate performance of the nutanix clusters. There are 3 main fields we focus on during the meeting; Cluster host usage, storage performance and storage usage. (See picture below)

 

 

 

In this report we include all the data we extracted from the analysis tab on Prism Element. We import this data into excel and pour that data into graphs. (See picture below).

 

 

 

This is where our problems arise.

 

As you can see we need both monthly & lifetime graphs from our data. In order to get to this graph we have to:

-export the data from Prism Element

*You cannot select begin & enddate so after we export we have to manually trim the data to our needs and import this from one excel to another which takes a massive amount of time to do.

Picture of raw data from an exported .csv file:

 

 

 

*The date format in the raw data is not compatible with excel, so we have convert the dates to another format.

*We need our data in Percentile and we also need daily averages for every last month.

*For latency, throughput and bandwidth we also need to format the data in excel to get the 

graphs.

 

Conclusion: As you can see we need to invest huge amounts of time into something that should be simple out of the box. Especially when you already have an implemented analysis tab.

 

So does anyone here has experienced the same problem?

Is there a possible solution to this? 

Maybe utilizing Rest API's?

 

Thanks in advance!

 

Seba

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Nutanix Employee

Re: Analysis tab data export question

Hi @sverhoevne,

 

Here is the screenshot of the example of extract the cpu and memory usage from Feb 1, 2017 to Feb 28, 2017 with the interval of 30 minutes. The star_time and end_time is the epoch time is microseconds. In this case, the start_time is 1485907200000000 and the end_time is 1488326400000000. You can refer to https://www.epochconverter.com for the conversion and language-specific functions. 

 

14 REPLIES
Nutanix Employee

Re: Analysis tab data export question

Hi @sverhoevne,

 

Thanks for bringing this up. The best way to extract a certain range of data is probably through the REST API. The API allows you to specifies the start time and end time of the stats you are pulling. 

Trailblazer

Re: Analysis tab data export question

Hello @harryhy

 

Thanks for the fast reply.

 

We are aware that you can do this through REST API.

 

How to exactly do this is another matter..

 

Can you elaborate or are there guides available?

 

Thanks in advance

 

Seba

Trailblazer

Re: Analysis tab data export question

@harryhy

 

Do you have any solution to this?

Nutanix Employee

Re: Analysis tab data export question

Hi @sverhoevne,

 

For example, you can use /cluster/stats to get those stats with defined start and end time. Please see the screenshot below.

Trailblazer

Re: Analysis tab data export question

@harryhy

 

Thanks for the response.

 

I don't really know how to get started with that. Can you give an example how to get a report from february 1st to the 28th?  I don't really see how you can do this with the commands: "Starttime in µseconds", "endtime in µseconds"...

 

 

Sebastiaan

Highlighted
Nutanix Employee

Re: Analysis tab data export question

Hi @sverhoevne,

 

Here is the screenshot of the example of extract the cpu and memory usage from Feb 1, 2017 to Feb 28, 2017 with the interval of 30 minutes. The star_time and end_time is the epoch time is microseconds. In this case, the start_time is 1485907200000000 and the end_time is 1488326400000000. You can refer to https://www.epochconverter.com for the conversion and language-specific functions. 

 

Trailblazer

Re: Analysis tab data export question

@harryhy

 

This is really helpful,

 

Thanks alot!

 

 

Sebastiaan Verhoeven

Trailblazer

Re: Analysis tab data export question

Hey @harryhy

 

I tried this but it returns an error.. I also tried to use the body in Powershell but I don't really undertstand what

stats_specific_responses & values should have filled in..?

 

 

CMDLETSerror.PNG

 

 

Seba

Nutanix Employee

Re: Analysis tab data export question