microsoft / microsoft/AzureMonitorCommunity

Alert using percentages

Open
#250 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
1.2k
Forks
493
PR merge metrics
No merged PRs in 30d

Description

I've been searching for a solution to set up an alert for file shares based on percentage usage, but I haven't found a way to make it dynamic.

What I want is an alert that triggers when a file share reaches 80% of its total capacity. The challenge is that if I increase the file share size after reaching the 80% threshold, the alert won’t be useful anymore because it’s tied to a fixed size.

Ideally, I would like the alert to automatically adjust to 80% of the new file share size, whatever that may be at the time, without having to set up a new alert with the updated byte value. Is there a way to set the alert as a percentage of the current file share size so that it dynamically updates as the size changes? Or maybe a query that would work in this situation?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing Azure Monitor alerting and the available file share capacity metrics. Determine whether an alert can use a percentage of current capacity or a dynamic query, and consider the issue addressed when the supported approach or limitation is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.