This post is more than 5 years old
3 Apprentice
•
318 Posts
0
6534
April 24th, 2017 02:00
REST API and performance stats
Hi,
The Document linked below
Has nice queries to get performance stats.
Is there a way to gather the equivalent information via the REST API ?
Why ?
I want to cross reference client performance v data performance to establish valid baseline performance metrics to assist in determine steady state of the system v 'this is not an expected performance;.
No Events found!



Peter_Sero
4 Operator
•
1.2K Posts
1
April 24th, 2017 03:00
The OneFS 8.0.0 API doc is
OneFS 8.0.0 API Reference
but it does not list all the specific sub-keys for the /platform/1/statistics call.
An easy way to explore what statistics are available is using the CLI:
# isi statistics list keys
and then interactively querying potentially interesting keys:
# isi statistics query current --nodes=all --keys=cluster.protostats.nfs3
[...]
To get to the API call, insert --debug
# isi --debug statistics query current --nodes=all --keys=cluster.protostats.nfs3
2017-04-24 18:27:04,246 DEBUG rest.py:56: >>>GET ['1', 'statistics', 'current']
2017-04-24 18:27:04,246 DEBUG rest.py:58: args={'keys': ['cluster.protostats.nfs3'], '___noid': 'True', 'degraded': 'False', 'nodes': 'all', 'show_nodes': 'True'}
from which you can derive the API URL path:
/platform/1/statistics/current?keys=cluster.protostats.nfs3&___noid=True& ... etc ...
The debug output also includes the HTTP feedback from the server in JSON format,
so you can peek at what your code will need to deal with.
The above API document also shows some newer calls of the form
/platform/3/statistics/summary/...
which AFAIK have no CLI equivalents, but are worth a shot right by the API itself.
An nice overview of which API calls are used by the InsightIQ tool is here:
OneFS API Tutorial & InsightIQ Performance Metrics
in combinattion with
How InsightIQ Fetches Statistics from OneFS
Let me know when you have specific questions on statistics or other calls;
I've done quite some work with the Isilon API.
-- Peter
RobChang-Isilon
136 Posts
1
April 24th, 2017 11:00
Hi castleknock,
Here are 2 blogs that may be of help.
List of OneFS Platform API v7.2.1 resources
OneFS API Tutorial & InsightIQ Performance Metrics
Also if you plan on building a home-grown monitoring harness, the Isilon SDK can be of help. We have many customers who have deployed the SDK successfully.
Main landing page of the SDK: Isilon SDK Info Hub
Within the SDK is a stats key browser that can help you identify the types of metrics you need: GitHub - Isilon/isilon_stat_browser: OneFS Statistics Key Browser
Here's a good example of what you can do when it's all done:
https://community.emc.com/blogs/keith/2017/01/26/isilon-data-insights-connector--do-it-yourself-isilon-monitoring