Undocumented Feature/Hack for adding more metrics to Enhanced Performance Category Returns #203
rawstorage
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Customer reported this feature to me and thought it would be a good one to share with the community. Hopefully most of you are exploring or at least aware of the new enhanced performance endpoints that we provided in the 10.1 release. If not have a look.
Currently these endpoints only return KPI metrics for the latest timestamp, the KPI metrics are a subset of metrics available so may not contain everything you are interested in.
To enable additional metrics from UI Select Settings > Performance Metrics find the category for your metric and scroll to the metric and check the KPI box and click apply
In the example below I am adding TxPower and RxPower so I can report on the health of my FE Ports,
import PyU4V
import pprint
conn = PyU4V.U4VConn(
username='smc',
password='smc',
server_ip='ipaddress',
port='8443', array_id='000220200226',
verify=False)
pprint.pprint(conn.performance_enhanced.get_category_metrics(
category='FEPort'))
response ..
{
"id": "FEPort",
"resource_type": "performance-categories",
"system": "000220200226",
"metric_instances": [
{
"id": "OR-1C:1",
"metrics": [
{
"ResponseTime": 0,
"ReadResponseTime": 0,
"WriteResponseTime": 0,
"Reads": 0,
"Writes": 0,
"IOs": 0,
"MBRead": 0,
"MBWritten": 0,
"MBs": 0,
"AvgIOSize": 0,
"SpeedGBs": 0,
"PercentBusy": 0,
"TxPower": 0.9102, << New KPI now appears in response
"RxPower": 0.003,
"timestamp": 1727949900000
}
]
},
A handy one should you need it, hopefully you are finding these calls useful, they are definitely simpler to use,
Beta Was this translation helpful? Give feedback.
All reactions