Microsoft File Server Resource Manager (FSRM) Quotas collector

July 15, 2022 ยท View on GitHub

The fsrmquota collector exposes metrics about File Server Resource Manager Quotas. Note that this collector has only been tested against Windows server 2012R2. Other FSRM versions may work but are not tested.

Metric name prefixfsrmquota
Data sourcewmi
CountersFSRMQUOTA
Enabled by default?No

Flags

None

Metrics

NameDescriptionTypeLabels
windows_fsrmquota_countNumber of QuotascounterNone
windows_fsrmquota_descriptionA string up to 1KB in size. Optional. The default value is an empty string. (Description)counterpath, template,description
windows_fsrmquota_disabledIf 1, the quota is disabled. The default value is 0. (Disabled)counterpath, template
windows_fsrmquota_matchestemplateIf 1, the property values of this quota match those values of the template from which it was derived. (MatchesTemplate)counterpath, template
windows_fsrmquota_peak_usage_bytes The highest amount of disk space usage charged to this quota. (PeakUsage)counterpath, template
windows_fsrmquota_size_bytesThe size of the quota. If the Template property is not provided then the Size property must be provided (Size)counterpath, template
windows_fsrmquota_softlimitIf 1, the quota is a soft limit. If 0, the quota is a hard limit. The default value is 0. Optional (SoftLimit)counterpath, template
windows_fsrmquota_templateA valid quota template name. Up to 1KB in size. Optional (Template)counterpath, template
windows_fsrmquota_usage_bytesThe current amount of disk space usage charged to this quota. (Usage)counterpath, template

Example metric

Show rate of Quotas usage:

rate(windows_fsrmquota_usage_bytes)[1d]

Useful queries

Alerting examples

prometheus.rules

  - alert: "HighQuotasUsage"
    expr: "windows_fsrmquota_usage_bytes{instance="SERVER1.COM:9182"} / windows_fsrmquota_size{instance="SERVER1.COM:9182"} >0.85"
    for: "10m"
    labels:
      severity: "high"
    annotations:
      summary: "High Quotas Usage"
      description: "High use of File Resource.\n Quotas: {{ $labels.path }}\n Current use : {{ $value }}"