Monitoring instances and quota

This page shows you how to monitor your Filestore instances and set up alerts for low disk space and low backups quota.

You can monitor Filestore instances using Cloud Monitoring.

Adding a Filestore metric chart to a Cloud Monitoring dashboard

To see Filestore performance metrics in a Cloud Monitoring dashboard, follow these steps:

  1. In the Cloud Console, select the Cloud project in which your Filestore instance resides.

    Go to Cloud Console

  2. By using the navigation pane, select Monitoring.

    If you have never used Cloud Monitoring, then on your first access of Monitoring in the Google Cloud Console, a Workspace is automatically created and your project is associated with that Workspace. Otherwise, if your project isn't associated with a Workspace, then a dialog appears and you can either create a Workspace or add your project to an existing Workspace. We recommend that you create a Workspace. After you make your selection, click Add.

  3. In the left-hand navigation, click on Metrics Explorer.

  4. In the Find resource type and metric field, type filestore and select the Filestore Instance resource type.

  5. Select an available metric to view:

    Metric Description Basic HDD/SSD High Scale SSD
    Bytes written Number of bytes written.
    Bytes read Number of bytes read.
    Disk read operation count Number of disk read operations. If the Filestore instance caches the data, some read operations will not be reflected as disk reads.
    Disk write operation count Number of disk write operations. If the Filestore instance caches the data, some write operations will not be reflected as disk writes.
    Metadata operation count Number of disk metadata operations. If the Filestore instance caches the data, some metadata operations will not be reflected.
    Free disk bytes Number of free disk bytes.
    Free disk bytes percent Percentage of free disk bytes.
    Procedure call count Returns the same information as the nfsstat -s command.
    Time (in milliseconds) spent on disk read operations Time spent on disk reads.
    Time (in milliseconds) spent on disk write operations Time spent on disk writes.
    Used disk bytes Number of used disk bytes.
    Used disk bytes percent Percentage of used disk bytes.
    Average read latency The average time a read operation takes (in milliseconds).
    Average write latency The average time a write operation takes (in milliseconds).
  6. Optional configurations:

    Field Description
    Filter Filter to the Filestore instances that you want to monitor.
    Group by Combining data from similar time series.
    Aggregator Combine time series using common functions.
  7. If you want to add more metrics to the chart, click Add metric.

  8. Click Save Chart to create a dashboard. Alternatively, you can add the chart to an existing dashboard.

Setting up alerts

Low disk space

To ensure that your Filestore instances don't run out of free space, we recommend setting up low disk space alerts:

  1. In the Cloud Console, go to the Monitoring page.

    Go to Cloud Monitoring

  2. Click Alerting > Create Policy.

  3. Click the Add condition button.

  4. Name the alerting policy.

  5. In the Find resource type and metric field of the Metric tab, enter filestore and select the Filestore Instance resource type.

  6. Select the metric Free disk space percent.

  7. In the Filter field, filter to the Filestore instances that you want to receive alerts for.

    For more information about filtering Cloud Monitoring metrics, see Filtering.

  8. In Configuration, set the following:

    Field Configuration
    Condition triggers if Any time series violates
    Condition is below
    Threshold Enter the lowest acceptable free disk space percentage for each of your Filestore instances.

    You can test the alert by setting a very low limit and seeing if the alert gets triggered.

  9. Click Add and then click Next.

  10. Select or create a notification channel and click Next.

    Some of the notification channels are disabled. To learn how to enable these notification channels, see Managing notification channels.

  11. Enter a name for the alert and optional instructions for how to address the issue, for example, "Add capacity".

  12. Click Save.

Low backups quota

If you are scheduling or automating backups creation for your Filestore instances, you should set up alerts for when you're running low on backups quota.

  1. In the Cloud Console, go to the Monitoring page.

    Go to Cloud Monitoring

  2. Click Alerting > Create Policy.

  3. Click the Add condition button.

  4. Name the alerting policy.

  5. In the Find resource type and metric field of the Metric tab, type quota and select the Consumer Quota resource type.

  6. Select the metric Allocation quota usage.

  7. In the Filter field, enter or select quota_metric.

    For more information about filtering Cloud Monitoring metrics, see Filtering.

  8. Select file.googleapis.com/backups-per-region as in the Value field and click Apply.

  9. In Configuration, set the following:

    Field Configuration
    Condition triggers if Any time series violates
    Condition is below
    Threshold Enter the lowest acceptable backups quota remaining.

    You can test the alert by setting a very low limit and seeing if the alert gets triggered.

  10. Click Add and then click Next.

  11. Select or create a notification channel and click Next.

    Some of the notification channels are disabled. To learn how to enable these notification channels, see Managing notification channels.

  12. Enter a name for the alert and optional instructions for how to address the issue, for example, "Delete older backups" or "Request additional quota".

  13. Click Save.

What's next