#Hello everyone i am using the new

1 messages · Page 1 of 1 (latest)

glossy hound
#

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?

buoyant pumice
#

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.
glossy hound
buoyant pumice
#

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
glossy hound
#

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