AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Azure Monitor Alert Baseline

skill-aiappsgbb-awesome-gbb-azure-monitor-alert-baseline · by aiappsgbb

>

No reviews yet
0 installs
19 views
0.0% view→install

Install

$ agentstack add skill-aiappsgbb-awesome-gbb-azure-monitor-alert-baseline

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution Used
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-aiappsgbb-awesome-gbb-azure-monitor-alert-baseline)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Azure Monitor Alert Baseline? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

azure-monitor-alert-baseline

Peer skill that probes Azure Monitor metric alert rules at a resource-group scope against one of three published baselines, returning a structured SRE-104 finding. It wraps MonitorManagementClient via DefaultAzureCredential and never raises — errors are captured in the returned dict. Threadlight v0.5.3+ consumes this as the SRE-104 sibling-skill check in its threadlight-production-ready OBS-203 gate.

When to use

  • Threadlight OBS-203 sibling-skill flip — threadlight's apply-plan

reasoner calls probe() directly to satisfy the OBS-203 → SRE-104 check (kind: sibling-skill), advancing a pilot handover from manual to automated.

  • Pre-pilot observability review of a Foundry-adjacent resource group —

confirms the correct alert rules are configured and thresholds are within the baseline's prescribed maximums before spoke onboarding.

  • Scheduled CI drift check — detects alert rule removal or threshold

relaxation after a deployment; runnable as a CI step with no interactive auth.

When NOT to use

  • Creating or modifying alert rules — use az monitor metrics alert create

/ az monitor metrics alert update directly.

  • App Insights traces, logs, or availability tests — use the

foundry-observability skill for that surface.

  • Azure Service Health alerts or activity log alerts — those use a

different ARM API (Microsoft.Insights/activityLogAlerts) and are not covered by this probe.

Probe contract

The probe returns a dict matching the design spec §4.3.1 sibling-skill contract. Signature and shape are stable across 1.x releases:

| Field | Type | Notes | |---------------------|-------------------------------------------|------------------------------------------------| | finding_id | str | Always literal "SRE-104" | | scope | dict (subid, rg, alertbaseline_kind) | Nested; not a string | | result | enum ok / needs_attention / errored | Never anything else | | observations | list[dict] | Empty when result == "ok" | | remediation_hints | list[str] | Empty when observations empty | | confidence | 0.0 / 0.5 / 1.0 | See Confidence heuristic below | | probed_at | ISO-8601 UTC with Z | tz-aware | | error | str \| None | None on success; ": " on errored |

Never raises. Any Azure exception or ValueError (unknown baseline kind) is caught and surfaced via result["error"] with result["result"] = "errored" and confidence = 0.0.

Confidence heuristic

The catalog-wide §4.3.1 confidence convention (documented here so threadlight's apply-plan reasoning is reproducible):

  • 1.0 — probe completed AND len(live_alerts) >= 1 (at least one metric

alert exists in the RG, whether or not it matches the baseline).

  • 0.5 — probe completed AND len(live_alerts) == 0 (ambiguous: either no

alerts configured, or RBAC-masked enumeration returned empty).

  • 0.0 — probe raised internally and was caught.

Observation rows

Each observation row has exactly one of two shapes (no others):

| Shape | Fields | |------------------------|--------------------------------------------------------------------| | kind: missing | alert_name (str), severity (int), max_threshold (float) | | kind: threshold_mismatch | alert_name (str), expected (float), actual (float) |

result == "needs_attention" whenever one or more missing or threshold_mismatch observations exist. result == "ok" when the observation list is empty.

Baseline kinds

alert_baseline_kind must be one of the three YAML stems in references/baselines/:

| Kind | File | Alert count | Notes | |-----------------|-----------------------|-------------|------------------------------------------------------------------------| | foundry_pilot | foundry_pilot.yaml | 5 | HighErrorRate, LowAvailability + TokenRateSpike, RAIDenialSpike, HostedAgentInvokeError | | spoke_minimum | spoke_minimum.yaml | 3 | BasicErrorRate, ChatCompletion401Spike, ChatCompletionLatencyP95 | | production | production.yaml | 6 | HighErrorRate (sev 1), LowAvailability, HighLatencyP99 + TokenThrottle429Rate, CostPerHourSpike, EmbeddingErrorRate |

Any other value raises ValueError("unknown alert_baseline_kind: …") inside _load_baseline, which is caught and surfaced as result == "errored".

Probe Reference

> MUST: Read the canonical probe at > [references/python/probe.py](references/python/probe.py). Do NOT > re-paste its body here — the validator enforces single-source-of-truth.

CLI

cd skills/azure-monitor-alert-baseline/references/python
mkdir -p out
python __main__.py \
    --subscription-id  \
    --resource-group  \
    --alert-baseline-kind foundry_pilot

Result is printed to stdout as JSON. The manifest is also written to out/SRE-104.json (relative to CWD). Same-finding-ID writes overwrite the prior manifest by design — threadlight reads the file by the literal finding-id filename. Authentication uses DefaultAzureCredential (env-var → managed identity → Azure CLI → interactive browser). The caller must hold Microsoft.Insights/metricAlerts/read at the target RG scope; Reader at the RG is sufficient.

Threadlight integration

Threadlight v0.5.3+ consumes this probe for the SRE-104 sibling-skill flip (kind: sibling-skill), advancing the OBS-203 gate from kind: manual to kind: sibling-skill. It calls probe() directly (no CLI subprocess) with alert_baseline_kind passed by keyword. The manifest file at out/SRE-104.json is the cross-process handoff for threadlight's apply-plan reasoner.

Known limitations (v1.0.0)

  • Only metric alerts are checked. Log alerts (Log Analytics scheduled

query rules via Microsoft.Insights/scheduledQueryRules) are NOT covered. v1.1.0 can add them if asked.

  • Only RG scope is supported. Subscription scope and management-group

audits are intentionally excluded — the threadlight use case is spoke-RG-bounded.

  • Alert action group routing (who gets paged) is NOT validated. Use a

separate AGT probe if needed.

See also

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.