Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to monitor Netapp volume locally

I set up an alert monitor using the 'netapp.googleapis.com/volume/bytes_used' metric and it works fine to monitor my Netapp volume's size.

The problem is I unmounted the volume and my monitor did not alert. I looked at  the monitor and it was still reporting data from the volume. I assume this is because the monitor talks directly to volume via the api. 

Is there a way to monitor the volume directly on the VM its attached to? I looked at the disk monitors but it only sees devices such as /dev/sda1 it does not see the mounted volume.

 

 

1 3 224
3 REPLIES 3

Hello  @tacoma50 ,Welcome on Google Cloud Community.

By default, nope. You could create user-defined metrics ( aka custom metrics ) or use 3rd party tools. 
user-defined metrics docs: https://cloud.google.com/monitoring/custom-metrics 

--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost Sessionize Youtube

Hi @tacoma50,

Welcome to Google Cloud Community!

Various metrics for monitoring cloud volumes are available within Cloud Monitoring. You can select and chart individual metrics in Metrics Explorer, create a dashboard with multiple charts, add alerting, or retrieve metrics data with the Cloud Monitoring API.

In addition to the documents regarding creating user-defined metrics as @DamianS have already provided, you might also want to check these documentations regarding monitoring cloud volumes and monitoring volume usage for NetApp. 

I hope the above information is helpful.

Hi,
1. I did checkout user-defined metrics as recommended but with no clear simple examples available of how tie a local user script/program into user-defined metrics I found myself not being able to implement user-defined metrics very easily. Are you aware of any straight forward examples of how to tie a user program into userdefined metrics?
2. I was able to successfully monitor my Netapp volume with the metrics available in cloud monitoring, but as I said, these do not monitor the volume directly from the VM instance, they monitor the volume directly at the netapp storagepool. So on your VM, the volume could be not even mounted, but the monitor will report everything as fine.