#Enable Top Clients/Files Metrics in Harvest #3904

1 messages · Page 1 of 1 (latest)

meager bough
#

This is not working as expected.
I've enabled activity tracking on single SVM + all volumes within this SVM.

Configured keyperf as stated in #3904

fervent folio
#

@meager bough Do you get any results if your curl below endpoint against ONTAP?

api/storage/volumes?fields=svm.name,name&activity_tracking.state=on

#

If you have enabled this after updating the template and restarting NABox, by default, new volumes affected by the activity tracking changes will be considered only after one hour by Harvest.

meager bough
#

strange, no records:

{
"records": [
],
"num_records": 0,
"_links": {
"self": {
"href": "/api/storage/volumes?fields=svm.name,name&activity_tracking.state=on"
}
}
}

fervent folio
#

Ok. We need to fix this issue first.

meager bough
#

vol analytics show -vserver netapp-proxmox
Scan
Vserver Volume State Progress Files Scanned Total Files


netapp-proxmox proxmox_backups on - - -
netapp-proxmox proxmox_backupserver on - - -
netapp-proxmox proxmox_linux_data on - - -
netapp-proxmox proxmox_linux_os on - - -
netapp-proxmox proxmox_windows_data on - - -
netapp-proxmox proxmox_windows_os on - - -

#

According to ONTAP Docu... this is all I need to do?

fervent folio
#

See from system manager if this flag is on?

#

Let me check in ontap cli side

meager bough
#

Oh weird ... with GUI option it enabled just now 🤔 I used CLI method.

fervent folio
#

You want to enable volume tracking in cli

#

Volume tracking is for file explorer

meager bough
#

Ah I used wrong one

fervent folio
#

These two flags seem similiar but do different things.

meager bough
#

I used analytics 😵‍💫

fervent folio
#

Yeah i have tripped over them in past myself.

meager bough
#

I can disable analytics then?

fervent folio
#

Yes

meager bough
#

Thanks.

#

Also is this enough or do I need to enable for each cluster manually the "KeyPerf"?

cat harvest.yml
Defaults:
    debug: false
    addr: ""
    collectors:
        - Rest
        - RestPerf
        - KeyPerf
        - Zapi
        - ZapiPerf
        - Ems
    datacenter: ""
    exporters:
        - nabox-victoriametrics
    enabled: false```
#

I just did now in defaults only.

fervent folio
#

By default, volume performance metrics will be collected via KeyPerf

#

I think NABox has collector at each cluster level so you will need to add in every cluster.

meager bough
#

I'll move to Cluster section and see if it shows any data.

fervent folio
#

That shouldn't be needed though if you are making the change for TopClients

meager bough
#

I have "No data" if it does not use KeyPerf 🤔
Guess I need to wait some time after enabling file tracking?

fervent folio
#

I think you are using harvest 26.02?

meager bough
#

its the latest one that comes with 4.2.0

fervent folio
fervent folio
meager bough
#

yes curl shows data

fervent folio
meager bough
#

Yes, restarted 2min ago .... lets see.

fervent folio
#

Does system manager shows activity traffic?

meager bough
#

That means I can undo KeyPerf changes? 🙂

fervent folio
#

Yes

meager bough
#

I see some graphs now.

fervent folio
#

Cool

meager bough
#

This needs to be removed then in latest version, its confusing 😄

fervent folio
#

Are you saying it's unclear, as if it's instructing people to enable this collector?

meager bough
#

Correct.

fervent folio
#

Yeah we can remove that line and drive it via discussion link.

#

We'll make the change.

meager bough
fervent folio
meager bough
#

fyi.. After removing KeyPerf conf it does not display any graphs

fervent folio
#

Do you have any customization for RestPerf Volume template?

meager bough
#

stopped

#

I did not create any RestPerf templates... only AuditLog and ChangeLog so far.

fervent folio
meager bough
#

So this means I still need the keyperf folder and everything?

fervent folio
#

Customization you still need.

meager bough
#

Ah okay, I've did now everything except adding KeyPerf to harvest.yml .. lets see

#

Because thats the first step in your documentation ^^

fervent folio
#

I see, Let me test it once.

meager bough
#

I see now no graphs are beeing at all 😄

#

Oh wait, it did update now, was too fast.

fervent folio
#

cool

meager bough
#

But will wait for Top Clients ... this still shows "no data"

fervent folio
#

It can take couple of minutes as API we call provides data sometimes and sometimes it doesn't.

#

I have tested and yes KeyPerf needs to be listed in your default.yaml

#

Discussion steps are correct.

meager bough
#

Still "no data"

#

Guess I need to enable KeyPerf 🤔

fervent folio
#

Yes please

meager bough
#

I just enabled in defaults only not on cluster level, would be nice if this works out.
else each cluster is a pain when you got around 50 to manage 😛

fervent folio
#

Let me check test that also once 🙂

#

Tested, Listing in defaults does not work because NABox lists collectors at the cluster level, which causes the defaults to be overwritten at the cluster level.

meager bough
#

damn it.

#

I enabled on cluster level now.

fervent folio
#

@grave lance If this is something we can improve in NABox.

meager bough
#

Now it works fine @fervent folio

fervent folio
#

cool. Thanks for confirming!

meager bough
#

Documentation is right, just had to enable file tracking instead of analytics on Volume/SVM Level.

fervent folio
#

Yes.