#Enabling FSA
1 messages · Page 1 of 1 (latest)
@waxen flint Have you enabled FSA on ONTAP side as mentioned in FSA dashboard? https://docs.netapp.com/us-en/ontap/task_nas_file_system_analytics_enable.html
yea, all of our volumes have FSA enabled
@waxen flint Can you share Harvest logs with us @ ng-harvest-files@netapp.com. https://netapp.github.io/harvest/23.11/help/log-collection/
logs emailed
Thanks. I have not received yet.
Received
@waxen flint If you run volume_analytics_bytes_used_by_modified_time query in prometheus . Do you see any results?
Based on logs, I see 3 of the pollers are exporting metrics for FSA.
it does return some results when running a promQL
okay That is good. How about query volume_analytics_dir_bytes_used?
it does return data as well
Okay good. Let's go to FSA dashboard now and select all clusters (attached) from dropdown and see if Dashboard shows any data
select all DC, all cluster, all SVM but volume only has the option of none
okay. We should be getting volumes as they are part of metric volume_analytics_dir_bytes_used. Can you check if volume label is available in metric volume_analytics_dir_bytes_used ?
We use below query for populating Volume dropdown in FSA dashboard
not sure what page that is you're on, i'm just on the explore page running a query, don't know if that matters, but it does list volume names
I shared Grafana variable page screenshot. If volume is present then it should be loaded in Dashboard.
What is the Harvest version?
Can you share screenshot of your FSA Grafana dashboard -> settings -> Variables
not sure how to get to that page, i dont see anything like that with variables
nm, i see it
This looks correct. If you click on Volume variable and change query to label_values(volume_analytics_dir_bytes_used{datacenter=~"$Datacenter",cluster=~"$Cluster"}, volume) Does it populate Volume dropdown?
Error
invalid parameter "query": 1:1: parse error: unknown function with name "label_values"
Can you share screenshot of your changes
Let me check in 9.5 grafana. My screenshots have been from 8.0
let's try this
Regex: .*volume=\"(.*?)\".*
Query: volume_analytics_dir_bytes_used{datacenter=~"$Datacenter",cluster=~"$Cluster"}
still not showing anything on the dashboard and the query doesnt give an error it just doesn't come back with anything
the 'preview of values' on my screen just says "none" yours has several things
Let's try changing query to just volume_analytics_dir_bytes_used
that is showing several things listed at the bottom now
That is great. It means one of filter either datacenter or cluster has issues.
Can you make sure when you make these changes, in dashboard dropdowns datacenter, cluster, svm are at All
they are right now
let's change query to volume_analytics_dir_bytes_used{datacenter=~"$Datacenter"} and check
and i am getting results
Yes but with our changes in query, filters will not work as expected as now we have made Volume loaded by default.
changing it still shows results
Do you mean original query for Volume volume_analytics_dir_bytes_used{datacenter=~"$Datacenter",cluster=~"$Cluster",svm=~"$SVM"} works as well?
volume_analytics_dir_bytes_used{datacenter=~"$Datacenter"}
this works
okay good
let's try volume_analytics_dir_bytes_used{datacenter=~"$Datacenter",cluster=~"$Cluster"} now
do i need to remove the regex
No
ok, that change still shows data
okay. Preview still shows value?
yes
okay let's change to volume_analytics_dir_bytes_used{datacenter=~"$Datacenter",cluster=~"$Cluster",svm=~"$SVM"}
that is still showing results as well
Good to click on Run Query after making changes
yea, and the dashboard shows results as well
okay great so We are back to original query then which is working
but if i remove the regex it fails
ok
this is the error it gives
invalid parameter "query": 1:477: parse error: unexpected identifier "peupdopstrnas01" in label matching, expected "," or "}"
regex is needed
yea, the dashboard is working
Okay great! Our changes are same as what we shipped in 23.11. I suspect it was probably some dashboard loading issue
strange.. there was no regex in the original dashboard, so maybe that was the big part of it
i'll have to go back through all of the dashboards and test more
Actually we moved to query_result query which needs regex. Earlier we were using label_values which doesn't need regex
but both should give us same results.
You may try importing a fresh FSA dashboard in Grafana from here and see if it has any issues
https://raw.githubusercontent.com/NetApp/harvest/main/grafana/dashboards/cmode/fsa.json
aye, deleting the existing one and importing it works