#Hello everyone i am using the new
1 messages · Page 1 of 1 (latest)
hi @buoyant pumice if there's a ZAPI or REST call to gather the info from ONTAP, Harvest can collect it. What did you have in mind?
hello Chris,
to start with, i want to fetch these counters and have them pushed to Prometheus with the harvest 2.0 (which i already have in place)
vibc01::*> statistics catalog counter show -object nfsv3 -counter access_total
Object: nfsv3
Counter Description
--------------------------- ----------------------------------------------
access_total Total number of Access procedure requests. It
is the total number of access success and
access error requests.
vibc01::*> statistics catalog counter show -object nfsv3 -counter access_error
Object: nfsv3
Counter Description
--------------------------- ----------------------------------------------
access_error Number of erroneous Access procedure
requests. The Access procedure determines the
access rights that a user has with respect to
a file system object.
hi @buoyant pumice access_total should already be collected, it's been in the template for awhile now. https://github.com/NetApp/harvest/blob/main/conf/zapiperf/cdot/9.8.0/nfsv3.yaml#L20 What version of Harvest are you using, bin/harvest version? access_error is not collected, but you can add that counter to the nfsv3 template or add it to a custom template as described here https://github.com/NetApp/harvest/blob/main/conf/README.md#extend-an-existing-object-template
thanks for the links, i'll check that..
is there a table for NetApp counter -> Prometheus metric translation table? I want to ensure that this metric is coming from the counter i have written above
and my harvest version
[root@harvest-596d996f9c-4lshf harvest-21.08.0-6_linux_amd64]# bin/harvest version
harvest version 21.08.0-6 (commit 485d191) (build date 2021-08-31T11:51:03-0400) linux/amd64
there is not a translation table. The templates defined in the conf directory are a version of that table. They define the metrics that are scrapped by Prometheus. What if you try querying the Harvest Prometheus endpoint directly? bin/harvest status tells you the the PromPort and with that you can turn around and query the exporter like so: curl -s 'http://localhost:$PromPort/metrics' then |sort or grep -v as needed