Solved

Cluster Metrics Documentation


Badge +2
Hi

I am new.

I am trying to export histrocial cluster metrics at a high resolution for the last 9 months and have figured out that the way to get the data is via the V2 api.

I am struggling to find documentation for the "Metric" in the api. (see attached)

Please can someone point me in a direction to find the correct parameter values.

Regards

Carl-Hein


icon

Best answer by carl-heinm 31 August 2017, 16:43

Hi Chandru

Thanks for you reply.

I have adjusted the epoch time to be micro-seconds and that solved it.
Very emabarrasing. 😠

Many thanks for your help.

Carl

View original

5 replies

Userlevel 2
Badge +12
carl-heinm You can find some documentation about the metrics from below link,

http://developer.nutanix.com/reference/v2/#Metrics
Badge +2
Thanks Chandru!

I manged to find a metric on your link which seemed to worked.
I then ran the api for the last month at a 300s interval. (see attached)

I am now getting : "message": "No stats available for the specified time range"
I realise that asking the cluster for "controller_num_write_iops" is weird but I assume it would be additive between the hosts/nodes.

Any thoughts?



Regards,
Carl
Userlevel 2
Badge +12
carl-heinm Prism only stores stats for the last 30 days. You need Prism Central to store more than 30 days data. Can you please try with < 30days time period?
Userlevel 2
Badge +12
carl-heinm Another issue i noticed from your query is you are using Epoch time in secs but the API requires time in microseconds. Please add 6 zeros at the end of the Epoch time stamp to convert it to micro seconds.
Badge +2
Hi Chandru

Thanks for you reply.

I have adjusted the epoch time to be micro-seconds and that solved it.
Very emabarrasing. 😠

Many thanks for your help.

Carl

Reply