Skip to Main Content
Liongard Library

Welcome to Liongard Library, where Lions share! This is a community-led space where Liongard users can come to teach and learn from one another.
Share custom Metrics, get inspired and see what’s trending in the Pride.

Pride Etiquette:
➕ Have great custom Metrics? Add them as entries!
🌟 Want to use a Metric? Copy the query and
follow this doc.
👍 Tried a Metric from the Library? Like it!
📣 Have a question or feedback on a Metric? Add a comment!
🔎 Not sure where to start? Learn about Metrics and how to write them.
💬 Need help writing a metric or want to help support others? Join the conversation in our Liongard Lounge #metrics slack channel.


🥴 See something off? Open a support chat to let us know.

Categories Microsoft 365
Created by Lamont Largie
Created on Dec 10, 2024

Microsoft 365: List of Drives Over 80% Capacity (Includes Sharepoint and OneDrive)

Category: Storage Monitoring Metrics


Description:
This metric provides a detailed overview of Microsoft 365 drives - including Sharepoint and Onedrive drives that have exceeded 80% of their storage capacity. It highlights drives with limited available quota and includes essential details such as site name, drive name, owner, creation date, total capacity, and percentage of capacity used.


Purpose:
To enable IT organizations to monitor storage usage effectively, address potential capacity issues, and plan for future storage needs. The metric helps prevent disruptions due to full drives and ensures efficient utilization of available resources.


Use Cases:

  1. Proactive Monitoring: Detect drives nearing capacity to prevent service interruptions or data issues.

  2. Resource Planning: Assist in planning for additional storage or archiving older data to optimize available capacity.

  3. Cost Management: Avoid unexpected costs by identifying storage over-utilization early and reallocating or upgrading as needed.

  4. Operational Efficiency: Streamline processes to identify and act on capacity issues across multiple environments or tenants.

  5. Policy Compliance: Ensure drives remain within organizational storage policies and guidelines.

  6. User Support: Provide detailed insights to administrators or end-users on storage usage to guide actions like cleanup or data migration.


How it Works:
This metric leverages Liongard’s Microsoft 365 Inspector to analyze storage data. Using a JMESPath query, it filters drives where the remaining quota (quota.percentOfQuotaRemaining_r) is less than 20%, effectively identifying drives that have utilized over 80% of their capacity. The output provides:

  • Site Name

  • Drive Name

  • Owner Information (Created By)

  • Creation Date

  • Total Capacity (in MB)

  • Percentage of Capacity Used


Beneficiaries:

  • IT Teams: Gain visibility into potential storage issues to maintain operational efficiency.

  • Organizations: Avoid disruptions or inefficiencies caused by storage limitations.

  • Administrators: Support informed decision-making for storage management and capacity planning.


Notes for Customization:

  1. Additional Enhancements:

    • Threshold Adjustments: Modify the threshold (currently at 20% remaining) to align with organizational policies, such as flagging drives at 30% remaining.

    • Automated Notifications: Integrate this metric with Liongard alerting to notify teams of drives nearing capacity automatically.

  2. Why Modify:

    • Adapt to Specific Needs: Tailor the query to include more detailed storage metrics or align thresholds with different compliance or operational requirements.

    • Improve Scalability: Expand to cover other storage-related metrics, such as tracking storage growth trends over time.

    • Enhance Reporting: Use this metric as a foundation for creating storage utilization reports for internal reviews or client presentations.

Query

drives[?quota.percentOfQuotaRemaining_r<'20'].[['Site Name:'siteName_r],['Name:'name],['Created By:' createdBy.user.displayName],['Created On:'createdDateTime],['Total Capacity [MB]:'quota.total],['Capacity Used:'quota.percentOfQuotaUsed_r'%'],['--']][]


  • Attach files
  • Guest
    Reply
    |
    Dec 12, 2024

    I recommend modifying the query to not include results with null


    drives[?(quota.percentOfQuotaRemaining_r<'20') && (quota.percentOfQuotaRemaining_r!='null')].[['Site Name:'siteName_r],['Name:'name],['Created By:' createdBy.user.displayName],['Created On:'createdDateTime],['Total Capacity [MB]:'quota.total],['Capacity Used:'quota.percentOfQuotaUsed_r'%'],['--']][]