#Missing metric data after Harvest upgrade
1 messages · Page 1 of 1 (latest)
Double check the roles required by harvest, they change over time
@hazy sky Could you share your ONTAP version? Also, do you see any data returned for this field when you run the query below?
volume show -fields logical-available
Roles were rechecked after the upgrade
9.12.1P10
Yes, I get returned data when running the command.
Okay, Could you confirm if you are using Rest or Zapi collector?
or you can share output of below command here https://netapp.github.io/harvest/24.05/help/config-collection/#nabox
dc exec -w /conf nabox-harvest2 /netapp-harvest/bin/harvest doctor --print
Thanks. We have fixed this in 24.05 (https://github.com/NetApp/harvest/pull/2904/files). Could you upgrade to this version?
https://github.com/NetApp/harvest/releases/tag/v24.05.1
Upgrade complete. How long do I have to wait for data to populate?
Not more than 5 mins
It's been longer than 5 mins and still no data.
Do you see other volume metrics like volume_space_logical_used for this Cluster?
Yes, I do.
If you query below endpoint
https://CLUSTER_IP/api/private/cli/volume?fields=logical-available
Do you get this field?
Also what is the output of below command in nabox?
dc exec nabox-harvest2 grep -r 'logical-available' /conf
Yes, the query produces the field.
Are there any errors in below command
dc logs nabox-harvest2 2>&1 | grep -w 'Rest:Volume'
No errors in the result. All results are "INF".
Just for reference, this was working prior to the Harvest upgrade.
Okay, with which version of Harvest did it work?
I don't recall exactly, but I think it was a 23.x release.
Thanks. We ll check on our end.
Thanks @hazy sky for raising this issue. With your help, we found the problem and fixed in https://github.com/NetApp/harvest/pull/2943
We can explain how to edit the template locally or you can install a new nightly build once that build passes CI. Let us know which you prefer
Please provide instruction to edit the template locally.
-
SSH as root to nabox:
-
Change the directory to
/opt/harvest2-conf/conf/rest/9.12.0:```shcd /opt/harvest2-conf/conf/rest/9.12.0
-
Open the
volume.yamlfile withvieditor:```shvi volume.yaml
-
At line 33, Change the string
logical-availabletological_available. -
Restart nabox:
```shdc restart
You can also install nightly build which has this fix
https://github.com/NetApp/harvest/releases/tag/nightly
A few seconds after modifying the file, it's being overwritten and the change reverted.
sorry about that Lorne, that's an nabox-ism. Can you grab nightly and use it? If you'd rather not, take a look at the instructions documented here and make similar changes for volume.yaml https://github.com/NetApp/harvest/wiki/Enabling-FlexGroup-Constituents#for-nabox-installation
The gist of which is create a custom_volume_fix.yaml file, copy the existing volume.yaml to custom_volume.yaml, make your edits to the custom_volume.yaml file, update custom_volume_fix.yaml to point to the new custom_volume.yaml and then dc restart
I installed the nightly build and can confirm I'm receiving metric data now.