#Harvest on Docker Configure NFS/CIFS sessions

1 messages · Page 1 of 1 (latest)

torn glade
#

Hello,
I have Harvest setup using docker. Trying to figure out how can I enable NFS/CIFS sessions and few other metrics that are disabled by default?

wheat cairn
#

hi @torn glade did you use the Docker Compose workflow outlined here or docker only?

torn glade
#

@wheat cairn Chris, I used the docker compose workflow in the link.

wheat cairn
#

Thanks @torn glade
From the terminal, cd to the directory that you ran docker run ... generate from. If you do an ls in that directory, you should see a conf directory.

To enable the NFSClients template, create a custom.yaml like so vim conf/rest/custom.yaml. The custom.yaml file should contain

objects:                                                                          NFSClients: nfs_clients.yaml

After saving the custom.yaml file. Bring down Harvest and restart it.
docker compose -f prom-stack.yml -f harvest-compose.yml down
docker compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans

Once restarted, you can verify that the template is enabled by running the following, replace $poller with your container name found via docker ps -a.

docker logs $poller --since 1h 2>&1 | grep NFSClients

You should see output similar to

time=2025-01-15T14:13:05.368Z level=INFO source=helpers.go:98 msg="best-fit template" Poller=sar collector=Rest:NFSClients path=conf/rest/9.7.0/nfs_clients.yaml v=9.15.1 jitter=none
time=2025-01-15T14:13:46.520Z level=INFO source=collector.go:629 msg=Collected Poller=sar collector=Rest:NFSClients task=counter apiMs=1561 bytesRx=0 metrics=0 numCalls=0 pollMs=1570 zBegin=1736950424950
time=2025-01-15T14:13:47.149Z level=INFO source=collector.go:598 msg=Collected Poller=sar collector=Rest:NFSClients apiMs=628 bytesRx=2851 calcMs=0 exportMs=0 instances=6 instancesExported=6 metrics=42 metricsExported=8 numCalls=1 parseMs=0 pluginInstances=0 pluginMs=0 pollMs=628 zBegin=1736950426520
#

Also be mindful of the note in the dashboard that mentions enabling nfs_clients.yaml may slow down data collection

torn glade
#

@wheat cairn The above steps worked. Thank you!!