#making the switch from nabox to

1 messages · Page 1 of 1 (latest)

grizzled peak
#

That might have been a plugin in Harvest 1.x, @lofty pivot ?

lofty pivot
#

hi @upper loom what dashboard in Harvest 1.X had the nfs connection count that is missing in Harvest2. Maybe it got missed in the rewrite

upper loom
#

I'll have to crank the old nabox server up again - gimme a minute

grizzled peak
#
drwxr-xr-x  2 root root  4096 Nov 27  2020 .
drwxr-xr-x 11 root root  4096 Dec  8  2020 ..
-rwxr-xr-x  1 root root  8865 Aug 19  2019 bash_extension_example.sh
-rwxr-xr-x  1 root root  9407 Aug 19  2019 nfs-connections.sh
-rwxr-xr-x  1 root root 11529 Aug 19  2019 perl_extension_example.pl
-rwxr-xr-x  1 root root 11603 Aug 19  2019 python_extension_example.py
-rwxr-xr-x  1 root root 21880 Aug 19  2019 snapmirror_replications.py
nabox-api:/opt/packages/netapp-harvest/extension# 
#

nfs-connections.sh

lofty pivot
#

thanks @grizzled peak

#

ok, looks like that script ssh-es into cluster and issues ONTAP cli commands. That's not something Harvest 2 supports, but we can use the (preferred) REST private CLI to do the same

upper loom
#

well fart - maybe it wasn't there - I can't find it now

lofty pivot
#

@upper loom no need to crankup your old server - I see what's needed. If you have a GitHub account, would you mind creating a Harvest issue that captures this ask?

lofty pivot
upper loom
#

sure - np

lofty pivot
#

thanks!

upper loom
#

thanks for the quick response

#

submitted (correctly I hope)

lofty pivot
#

thanks! Rahul reminded me we added something like this in main recently 🎊

wanton vine
upper loom
#

👍

wanton vine
upper loom
#

so self taught for all of this stuff here - how would I do that?

#

@wanton vine

wanton vine
#

Do you mean how to enable this in NABox?

upper loom
#

yes

wanton vine
#

Okay I'll list down the steps.

upper loom
#

Thank you very much @wanton vine

wanton vine
upper loom
#

@wanton vine thank you

grizzled peak
#

is rest directory considered "standard" like perf and zapiperf ?

#

and is netConnection default with recent harvest builds ?

wanton vine
#

yes and yes

#

there is restperf dir also

grizzled peak
#

good ! Will get that in the main version

grizzled peak
#

netConnections.yaml is only 9.12 ?

wanton vine
#

It uses private cli so should work in older versions also

grizzled peak
#

ok so does it matter that's it's in the 9.12.0 directory and not 9.7.0 ?

wanton vine
#

There may be need for different template for a version if counter name differs or it is absent

grizzled peak
#

a custom.yaml file doesn't need collector: line, correct ?

wanton vine
#

object templates and harvest config are different. Collector: is only for harvest config and not for custom.yaml

grizzled peak
#

thanks. DOes that seem ok to you ?

nabox-harvest2        | 2022-09-20T05:39:10Z INF rest/rest.go:184 > Using default timeout Poller=cluster2 collector=Rest:NetConnections timeout=30s
nabox-harvest2        | 2022-09-20T05:39:10Z INF collector/helpers.go:134 > best-fit template Poller=cluster2 collector=Rest:NetConnections path=/conf/conf/rest/9.12.0/netConnections.yaml v=9.7.0
nabox-harvest2        | 2022-09-20T05:39:10Z INF rest/rest.go:124 > initialized cache Poller=cluster2 collector=Rest:NetConnections numMetrics=0 timeout=30s
nabox-harvest2        | 2022-09-20T05:39:10Z INF collector/collector.go:344 > no instances, entering standby Poller=cluster2 collector=Rest:NetConnections task=data
nabox-harvest2        | 2022-09-20T05:39:28Z INF rest/rest.go:184 > Using default timeout Poller=AFF collector=Rest:NetConnections timeout=30s
nabox-harvest2        | 2022-09-20T05:39:29Z INF collector/helpers.go:134 > best-fit template Poller=AFF collector=Rest:NetConnections path=/conf/conf/rest/9.12.0/netConnections.yaml v=9.8.0
nabox-harvest2        | 2022-09-20T05:39:29Z INF rest/rest.go:124 > initialized cache Poller=AFF collector=Rest:NetConnections numMetrics=0 timeout=30s
nabox-harvest2        | 2022-09-20T05:40:01Z INF rest/rest.go:184 > Using default timeout Poller=cluster1 collector=Rest:NetConnections timeout=30s
nabox-harvest2        | 2022-09-20T05:40:22Z WRN ./poller.go:668 > init collector-object (Rest:NetConnections): 0:  Poller=cluster1
nabox-harvest2        | 2022-09-20T05:44:10Z INF collector/collector.go:344 > no instances, entering standby Poller=cluster2 collector=Rest:NetConnections task=data
nabox-harvest2        | 2022-09-20T05:49:10Z INF collector/collector.go:344 > no instances, entering standby Poller=cluster2 collector=Rest:NetConnections task=data
#

no instance on cluster2 is fine I guess, that's a svm dr destination mostly

#

But I don't seem to find net_connection in prom

wanton vine
#

looks like no data on that cluster. Could you run network connections active show on that cluster and see?

grizzled peak
#
cluster1::network connections active> show
Vserver    Interface              Remote
Name       Name:Local Port        Host:Port                    Protocol/Service
---------- ---------------------- ---------------------------- ----------------
Node: cluster1-01
vsphere    lif1:2049              10.1.0.12:828                TCP/nfs
vsphere    lif1:2049              10.1.0.11:1007               TCP/nfs
vsphere    lif1:2049              10.1.0.11:1008               TCP/nfs
vsphere    lif1:2049              10.1.0.12:829                TCP/nfs
docker     lif1:2049              10.1.0.41:890                TCP/nfs
5 entries were displayed.
wanton vine
#

hmm strange . could you DM me the cluster details and i'll try locally

#

I am getting the data for the shared cluster

grizzled peak
#

harvest version 22.09.19-nightly (commit 3d57787) (build date 2022-09-19T00:23:03-0400) linux/amd64

wanton vine
#

yeah that should be fine

#

Are you sure its the same cluster? shows 5 entries in cli for u as per screenshot above and for me i get 542 entries?

grizzled peak
#

The other one I showed you was my home lab, this one you have access

wanton vine
#

ok do u mean u get no data for this cluster also?

grizzled peak
#

indeed

wanton vine
#

okay

#

may be turn on debug logs

grizzled peak
#

wait I see that now :

nabox-harvest2        | 2022-09-20T06:07:31Z INF rest/rest.go:311 > Collected Poller=AFF apiD=28m2.239s collector=Rest:NetConnections instances=552 metrics=6624 parseD=8ms
wanton vine
#

cool

grizzled peak
#

Lol, that's one of those things, I didn't wait enough.

#

Isn't that suppose to collect on the next minute ?

wanton vine
#

apiD shows 28m2.2s??

#

it took 28 minutes to get response?

#

it should collect in first poll itself

grizzled peak
#

ohhhhhh

#

lol. 28m seems like a lot...

wanton vine
#

indeed

#

for me i get response in 2s

#

for this cluster

grizzled peak
#

is that a single REST call or many ?

wanton vine
#

should be single in this case since records are tiny

#

only if it were many thousands, we go with batching

grizzled peak
#

ok I'll test again on a local nabox