#volume "vol0" not collected

1 messages · Page 1 of 1 (latest)

drifting cipher
#

Hi, I am running harvest for couple of filers. Some volume labels are all missing from the metrics volume_size_total. For example, volumes with name "vol0". Also I noticed that some "offline" volume are also missing. I am using a custom volume file (see gist link), maybe sth is wrong with it? Could you help me to debug?

running harvest 23.11.0-1
custom volume yaml https://gist.github.com/chuan137/fe6241b29439c4fcb9d21f07ce075bf8

Gist

harvest volume metrics. GitHub Gist: instantly share code, notes, and snippets.

#

The aggregator field looks strange, isn't it?

  Aggregator:
    - volume<style=flexgroup>volume node,svm,aggr,style
fading hearth
#

hi @drifting cipher your custom template is using the api/storage/volumes endpoint which does not return root volumes. That's why the default template uses api/private/cli/volume That endpoint does return root volumes.

If you use the default template do you see the root and offline volumes? If so, maybe you can same more about what you're trying to achieve with your custom template and we can help you make that work

drifting cipher
#

hi @fading hearth I reverted the volume file to the default, the offline volumes are still missing

fading hearth
#

using the default template I see offline volumes exported. Here's an example

#

volume_labels{aggr="test1",antiRansomwareState="disabled",clone_parent_snapshot="",clone_parent_svm="",clone_parent_volume="",cluster="umeng-aff300-01-02",datacenter="dc-1",isEncrypted="false",isHardwareEncrypted="true",is_sis_volume="",junction_path="/",node="umeng-aff300-02",root_volume="Yes",snaplock_type="non_snaplock",snapshot_autodelete="false",snapshot_policy="default",state="offline",style="flexvol",svm="harvesttest1",svm_root="true",type="rw",volume="harvesttest1_root"} 1.0

#

let me check volume_size_total

#

Ah I see, offline volumes have no total. That's why you aren't see it for that volume_size_total

umeng-aff300-01-02::> volume show -state offline -fields state,total
vserver      volume            state   total
------------ ----------------- ------- -----
harvesttest1 harvesttest1_root offline -
#

offline volumes have a size, but not a total
The ONTAP CLI completions say total is Total User-Visible Size and size is Volume Size. Perhaps you want the metric volume_size instead of volume_size_total?