After rename the SVM, the grafana is still showing metrics under old SVM name. I have restarted harvest, also removed the metrics under old svm name, but grafana will keep create metrics under the old svm name,
You've removed the underlying files in the graphite/whisper path?
If you have purging of old data setup, this should clean up itself over time. Check out page 22 (7.4 Purging inactive metrics from Graphite [optional]) of the NetApp Harvest Installation and Addministration Guide.
Harvest updates its instances cache every hour, so after an hour (or restart), metrics should be sent to Graphite with the new SVM name. It is possible that the counter manager of the ONTAP system has some delay in updating the SVM name (though I tested this in my lab, and the new name appears almost immediately).
You can use the perf-counter-util tool that come to Harvest to see if the SVM names are updated (this tool communicates to Ontap's counter manager with the same protocol as Harvest does, so the data you see is the same Harvest receives).
If you are in the Harvest root directory (/opt/netapp-harvest/) you can run this command to get a list of SVMs in your ONTAP system:
Thanks for the information, I tried the perf-counters-utility command, it returns the old svm name. Looks like the count manager on filer has gave wrong information. Just wondering is there way to update that information on filer? BTW, I am running ONTAP 9.5 for the filer.