#Is there a way to track CID?
1 messages · Page 1 of 1 (latest)
hi @raymo, Not sure if you use Harvest or not, but it can collect CID metrics via ZapiPerf. RestPerf does not have this object available. We can open an ONTAP RFE to include cid metrics via RestPerf if that's interesting.
curl -s 'http://127.0.0.1:14001/metrics' | rg ^cid
cid_in_use{cluster="umeng-aff300-01-02",datacenter="dc-1",node="umeng-aff300-02"} 192
cid_in_use{cluster="umeng-aff300-01-02",datacenter="dc-1",node="umeng-aff300-03"} 186
FWIW, it's also possible to collect those metrics via REST private CLI like so, replace $ip, $user, $pass with your values.
curl -sk -u $user:$pass 'https://$ip$/api/private/cli' --data '{ "input": "set -showseparator \"!\" -showallfields true -rows 0 diagnostic -confirmations off; statistics show -object cid -raw -counter in_use|node_name|instance_name|instance_uuid" }'
"error": {
"message": "invalid operation",
"code": "3"
}
I'll continue to play with it, thanks for the other ideas!
And yes I do use Harvest with restperf since zapi is deprecated
there was an extra $ on the ip, try the following without the extra $
curl -sk -u $user:$pass 'https://$ip/api/private/cli' --data '{ "input": "set -showseparator \"!\" -showallfields true -rows 0 diagnostic -confirmations off; statistics show -object cid -raw -counter in_use|node_name|instance_name|instance_uuid" }'