#Metrics for aggregate total provisioned space?
1 messages · Page 1 of 1 (latest)
Hi @final dove Harvest would be using the aggr-get-iter zapi for getting config related data from Aggregate object. For provisioned space related info would be available via aggr-space-get-iter .
harvest % ./bin/harvest zapi -p sarzapi show attrs --api aggr-space-get-iter | grep provisioned
connected to umeng-xxxxxxx-01-02 (NetApp Release Yellowdog__9.12.1: Tue Nov 08 20:32:25 UTC 2022)
[total-provisioned-space] - integer
[total-provisioned-space-percent] - integer.
harvest % ./bin/harvest zapi -p sarzapi show data --api aggr-space-get-iter | dasel -r xml -w json | grep provisioned
connected to umeng-xxxxxxx-01-02 (NetApp Release Yellowdog__9.12.1: Tue Nov 08 20:32:25 UTC 2022)
"total-provisioned-space": "374328692736",
"total-provisioned-space-percent": "90",
"total-provisioned-space": "374328692736",
"total-provisioned-space-percent": "90",
"total-provisioned-space": "15885509300224",
"total-provisioned-space-percent": "232",
"total-provisioned-space": "87586967617536",
"total-provisioned-space-percent": "1022",
Yes, because Harvest don't ship with this aggr-space-get-iterapi. If you would like to get data from this api then you could follow extend/custom template mentioned here: https://netapp.github.io/harvest/23.05/configure-templates/
If you are using Zapi collector then this api would be helpful, for REST let me check mapping REST call for this
Thanks! If there are any mapping metrics for REST
hi @final dove we checked and doesn't look like ONTAP has a REST equivalent for total-provisioned-space. According to https://docs.netapp.com/us-en/ontap-restmap-9131/aggr.html#aggr-set-option total-provisioned-space does not exist. If there is a CLI equivalent that gets you want you want, Harvest can use the private rest cli to collect it. Might be worth asking in the #1063542514780475493 channel if anyone knows of an equivalent
@final dove Here are the steps for Rest Collector
https://github.com/NetApp/harvest/discussions/2130
aggr_space_total?