Signoz Explaining Alertsのロゴ

Signoz Explaining Alerts

組織
SigNoz
signoz-explaining-alerts

Describe what an existing SigNoz alert rule does in plain language: the signal it watches, the threshold and evaluation behavior, the notification routing, and a one-line fire-frequency summary so the user knows whether the alert has been active. Make sure to use this skill whenever the user asks "what does this alert do", "explain alert X", "walk me through this rule", "how does my [Y] alert work", "is this alert configured correctly", or otherwise asks for an interpretation of an existing alert's configuration. Static explanation only; for diagnosing a specific firing incident, use `signoz-investigating-alerts`.

概要

公開者SigNoz
リポジトリagent-skills
スキル名signoz-explaining-alerts
スター
21
フォーク
14
同梱ファイル
3
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    SigNozがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Signoz Explaining Alerts」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/SigNoz/agent-skills/tree/main/plugins/signoz/skills/signoz-explaining-alerts
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SigNoz/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/plugins/signoz/skills/signoz-explaining-alerts .claude/skills/signoz-explaining-alerts
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSignoz Explaining Alertsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にSignoz Explaining Alertsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Signoz Explaining Alertsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Alert Explain

Decode an existing SigNoz alert's configuration into a plain-language explanation. The skill is read-only and stays focused on the rule itself: what it watches, when it fires, where it notifies. A single line of fire-frequency data is included to ground the explanation, but this skill does not investigate any specific fire; that is signoz-investigating-alerts's job.

Prerequisites

This skill calls SigNoz MCP server tools (signoz_get_alert, signoz_list_alert_rules, signoz_get_alert_history). Before running the workflow, confirm the signoz_* tools are available. If they are not, run signoz-mcp-setup first to initialize or repair the MCP connection. Do not guess at alert configuration from the rule name alone.

When to use

Use this skill when the user wants to:

  • Understand or interpret an existing alert rule.
  • Confirm what signal an alert watches and at what threshold.
  • Audit whether an alert is reasonably configured.
  • Translate raw alert JSON into operational language.

Do NOT use when the user wants to:

  • Create a new alert → signoz-creating-alerts.
  • Diagnose why an alert fired or correlate signals around a fire window → signoz-investigating-alerts.
  • Modify an existing alert → call signoz_update_alert directly.

Required inputs

InputRequiredSource if missing
Alert identifier (rule ID or name)yes$ARGUMENTS, recent context, or fuzzy match

If the input is missing or ambiguous, this skill is best-effort (not strict; read-only operations are cheap to recover from):

  1. Call signoz_list_alert_rules, paginate through every page, and find the closest name match.
  2. State the interpretation in the response: "Interpreting your request as alert 'High Error Rate - Checkout' (id 42). If you meant a different one, tell me the name or id."
  3. Proceed with the explanation. The user can correct after.

Workflow

Step 1: Resolve the alert

If the user provided a rule ID (UUID or legacy numeric ID), skip to Step 2. Otherwise:

  1. Call signoz_list_alert_rules and paginate every page: pagination.hasMore is true until the full list is walked.
  2. Match by name (case-insensitive substring). If multiple match, present the candidates and ask which one (interactive) or pick the closest and flag the assumption (autonomous).

Step 2: Fetch the full configuration

Call signoz_get_alert with the rule id. This is mandatory: the list response does not include the full condition / thresholds / notification settings, and explanations based on the name alone are guesses.

Step 3: Pull a one-line fire-frequency summary

First call signoz_get_alert_history with timeRange: "7d", state: "firing", order: "desc", and a large limit. Continue only when data.nextCursor exists (the completeness note also reports hasMore: true): pass that value as cursor, replace timeRange with the note's resolved absolute start and end, and preserve the same state, filter, and order. Stop when nextCursor is absent / the note reports hasMore: false. Never use offset or infer completeness from page fullness. History state accepts inactive, pending, recovering, firing, nodata, or disabled. For "resolved" / "recovered", use state: "inactive"; resolved is not a value; recovering is a transient keep-firing state, not resolution. Derive a single rule-level line from the complete set. History rows are emitted per label-group fingerprint, so never equate row count with alert-fire count. Count distinct rule transitions where overallStateChanged: true and overallState: "firing" (deduplicate rows from the same transition timestamp):

Fired N times in the last 7d (last fire: ).

If the user asks about a particular service/host/group instead, partition by fingerprint and count that series' rows where stateChanged: true and state: "firing"; include its labels and call the result a series fire, not a rule-wide fire. A grouped rule can have many series transitions while the overall rule remains continuously firing.

If the complete history has no firing transitions, report what the tool returned: "No firing events were returned for the last 7d." Do not shorten this to "has not fired" or "never fired". Complete history can still miss fires because of retention or because the rule was recreated under a new ID. Add that caveat when the user relies on the answer, for example when they expected the alert to fire. If a history call fails or pagination stops before nextCursor is absent, say the history is incomplete and report any count as "at least N"; never report zero from a failed or partial read.

Report these as separate facts, each from its own source:

  • Firing history: transitions returned by signoz_get_alert_history.
  • Current state: the rule's state from signoz_get_alert, or current instances from signoz_list_alerts.
  • Configuration: disabled, thresholds, and routing from signoz_get_alert.
  • Notification delivery: no SigNoz alert tool returns it. A firing transition, a configured channel, or a passed channel test does not show that a notification was sent or received.

Do not derive one from another. A disabled rule can still have earlier fires in the lookback, and an empty history does not show the rule is inactive now.

This single line grounds the explanation. Do not drill into specific fires here; that's signoz-investigating-alerts.

Step 4: Build the explanation

The single most useful thing for the user is a tight summary. Lead with a TL;DR that directly answers the question they asked, not a generic alert summary. The TL;DR is the only thing some users will read; burying their answer under a fixed template forces them to scroll for what they wanted in the first place.

Match the TL;DR shape to the user's question:

  • "What does this alert do?" / "Explain X": describe what fires:

    TL;DR: Fires when <condition> for <scope>, notifies <channel>. <fire-frequency line>.

  • "Is it configured correctly?" / "Audit this" / "Anything I should change?": lead with the verdict and the top 1–3 changes, not the description of what fires:

    TL;DR: Mostly well-configured, but recommend: (1) add alertOnAbsent (currently a crashed service stays silent); (2) fix annotation template {{$topic}} → {{$labels.topic}} (won't interpolate); (3) split critical to PagerDuty (both tiers currently route to Slack). <fire-frequency line>.

  • "How does X work?" / "Explain the count guard": answer the mechanism in 1–2 sentences before any framing:

    TL;DR: The count guard is a having: count() > 50 clause on query A: any 1-minute bucket with ≤50 spans is dropped before evaluation, so low-traffic minutes can't fire the alert.

  • "What's the threshold?" / focused config question: state the exact thing they asked about:

    TL;DR: Threshold is 3 standard deviations (z-score), not a raw rate value. Daily seasonality means the model compares each hour against historical norms for that hour.

Always include the fire-frequency line and disabled status if non-default; those ground every kind of TL;DR. But put the answer to the user's specific question first.

After the TL;DR, write the explanation in prose, organized into the four sections below. Skip any section that has nothing meaningful to add: empty severity labels, default notification settings, vanilla annotations don't deserve a header. Short and skimmable beats perfunctorily complete; the user is not reading a checklist.

1. What it watches: one short paragraph. Combine signal type (metrics / logs / traces / exceptions), what the query measures, and scope. Translate the query to operational language; for formulas, name each sub-query (A, B, …) and state what F1 (or whichever selectedQueryName triggers) computes, e.g. "F1 = A × 100 / B → error percentage". Decode filter operators (= equals, != not equals, IN / NOT IN, LIKE / ILIKE, CONTAINS, REGEXP, EXISTS / NOT EXISTS); enumerate IN / NOT IN value lists so the user can verify them. Name each groupBy dimension and its practical effect ("fires separately per service" for service.name).

For anomaly rules (ruleType: anomaly_rule), explicitly state that the threshold is in standard deviations from the learned pattern, not the raw value; this is the most common point of confusion. Include seasonality (hourly / daily / weekly) and how the target's magnitude shifts sensitivity (closer to 0, such as 2 or -2 → more noise; further from 0, such as 4 or -4 → only extreme deviations). The score is signed, (value - predicted) / standard deviation: above with target 3 fires only on rises, below with target -3 only on drops, and outside_bounds with target 3 on either. Say which directions the rule catches.

2. When it fires: one paragraph covering threshold + timing. Decode the threshold spec into plain English using these mappings:

  • op codes: 1 above, 2 below, 3 equal, 4 not equal, 5 above-or-equal, 6 below-or-equal, 7 outside-bounds (outside_bounds in payloads).
  • matchType codes: 1 at_least_once (any point in window), 2 all_the_times (entire window), 3 on_average (window average), 4 in_total (window sum), 5 last (most recent point).

State each threshold tier's name, target, targetUnit, and attached channels. Always state the threshold in targetUnit, not the native query unit (e.g. "fires when p99 exceeds 500 ms", not "…exceeds 500 000 000 ns"). Note recoveryTarget if set (hysteresis); if absent, mention flap risk when the value hovers near the boundary. Describe timing as "checks every <frequency> over the last <evalWindow>", and mention that with at_least_once a single-point breach triggers, while all_the_times requires the full window.

3. Where it notifies: decode effective routing, not just fields in isolation. If notificationSettings.usePolicy is true, say that org policy matches the rule/static/dynamic labels and that threshold channels are ignored. Otherwise a rule of any type, anomaly_rule included, routes only through each threshold tier's channels. If a tier has no channels, call it unrouted or misconfigured. Resolve names from the fully paginated signoz_list_notification_channels result if needed. Also explain notificationSettings.groupBy (bundling) and renotify (interval + states). Skip this section only when routing is already unambiguous in the TL;DR.

4. Notable concerns: flag only what's non-default and worth the user's attention. Don't list every absent field; focus on the high-impact ones:

  • alertOnAbsent missing when the signal is critical: silent data loss (crashed service, broken instrumentation) won't trigger the alert. Always call this out for production-tier rules.
  • alertOnAbsent: true but nodata not in renotify.alertStates: the absent-data fire pages once and then goes silent (easy to miss).
  • Template variable bugs: {{$topic}} won't interpolate; the correct form is {{$labels.topic}}. Dots in label keys become underscores (service.name → {{$labels.service_name}}).
  • Multiple severity tiers and a static labels.severity: the static label replaces each tier's severity on every alert, so a warning breach reports the static value and a policy that matches severity cannot tell the tiers apart. Recommend removing the label; the cost is that the alert-rule list shows no severity for the rule. A missing labels.severity is not a gap.
  • All tiers route to the same channel: defeats the point of graduated thresholds.
  • High-cardinality groupBy (e.g. pod.name × partition) → notification-storm risk during cluster-wide events.
  • Annotation/description text contradicts matchType (e.g. description says "for over 5 minutes" but matchType=at_least_once fires on first breach within the window).
  • Alert name doesn't match the filter target (e.g. name says "checkout" but filter targets payments); call this out.

If none of these apply, omit the section rather than pad it.

If the user asked only "what does this alert do", stop here. The audit (Step 5) is for "is it configured correctly" / "audit this" / "anything I should change" requests.

Step 5: Assess the configuration (only if asked)

The user may ask "is this alert reasonable" alongside the explanation. Only assess when asked or when the request implies it (audit, review, "is this configured correctly"). Keep assessment grounded in what's actually in the config:

  • Threshold calibration: appropriate for the signal? Consider service criticality and traffic.
  • matchType fit: at_least_once is sensitive (catches transients); all_the_times is conservative; on_average smooths noise.
  • Window vs frequency: short window + at_least_once can be noisy. Long window can delay detection.
  • Multi-severity: alerts with both warning and critical thresholds enable graduated response. Single-severity alerts miss this.
  • Notification routing: critical → high-urgency channels (PagerDuty); warning → low-urgency (Slack).
  • Missing runbook / description: if annotations are empty or default, suggest adding context.
  • Absent-data monitoring: for critical signals, recommend alertOnAbsent: true if it isn't set.
  • GroupBy cardinality: high-cardinality groupBy fields can produce many independent alert series; flag potential notification storms.
  • limit/order on a grouped query: only the top-N series they select, ranked over the whole window, are evaluated, so series beyond N are never evaluated and a below rule ordered descending can miss every breaching series. Unless top-N alerting is the intent, recommend removing both.
  • Filter completeness: for IN / NOT IN filters with explicit value lists, flag values that look out of place or missing values that seem expected.
  • Fire frequency vs threshold: if Step 3 shows the alert fires many times a day (>10/day in the 7d window), the threshold is likely too tight; if no firing events were returned and the user expected the alert to fire, the threshold may be too loose or the query may be wrong. Present these as possibilities to check, alongside missing retained history.

Step 6: Offer next steps

Surface up to 3 follow-up intents based on what the explanation revealed: things like investigating a recent fire, running the underlying query to see current values, adjusting a threshold, or creating a related alert for a coverage gap. Use your judgment; do not pad to 3.

Skip follow-ups entirely when the user is purely inspecting ("what does this alert do?") and signals no further intent. Offering no follow-ups is better than offering wrong ones.

Guardrails

  • Fetch before explaining. Always call signoz_get_alert. Do not base explanations on the rule name or list response alone.
  • Always pull fire history. The one-line frequency summary grounds the explanation, including for disabled alerts: disabled rules can still have earlier fires in the lookback.
  • Scope history claims to the returned data. Empty history supports "No firing events were returned for the last 7d", not "has not fired". Do not infer health, correct thresholds, or notification delivery from it.
  • Decode, don't dump. Translate op, matchType, filter expressions, and query JSON into operational language. Show raw JSON only if the user asks.
  • Decode every sub-query. For formula alerts, explain each builder query and the formula. Don't gloss over a formula as "error rate"; show the user what A, B, and F1 each compute.
  • Anchor to the actual config. Don't speculate based on the alert name. If the name says "checkout" but the filter targets payments, call that out.
  • No live queries by default. Do not run the alert's query unless the user asks. Explain is about understanding the rule, not inspecting current data.
  • Paginate alert listing. Before concluding an alert does not exist, walk every page of signoz_list_alert_rules.
  • SigNoz evaluation model. SigNoz uses evalWindow + frequency
    • matchType, not Prometheus-style for durations. Don't describe the evaluation model in Prometheus terms.
  • Stay in scope. Investigation of a specific fire window belongs to signoz-investigating-alerts. Modifications belong to signoz_update_alert.

Examples

User: "Explain my checkout error rate alert"

Agent:

  1. signoz_list_alert_rules (paginated) → finds "High Error Rate - Checkout" id 42.

  2. signoz_get_alert id=42 → traces formula (A errored spans / B total spans × 100), single critical threshold at 5%, op=1, matchType=1, channel pagerduty-oncall.

  3. signoz_get_alert_history id=42 timeRange=7d state=firing order=desc → fired 3 times, last fire 2h ago.

  4. Replies:

    TL;DR: Fires when checkout error rate (errored spans / total spans) exceeds 5% at any point in the last 5 min, pages pagerduty-oncall. Fired 3 times in the last 7d (last 2h ago).

    What it watches: traces from service.name = 'checkout'. Query A counts spans with has_error = true, query B counts all spans, F1 = A × 100 / B is the error percentage; the alert triggers on F1.

    When it fires: op=above, matchType=at_least_once, target 5%. Checks every 1 min over the last 5 min; a single elevated minute fires it.

    Notable: no recoveryTarget (could flap near 5%); no alertOnAbsent (a checkout outage that drops traffic to zero won't trigger this rule).

  5. Offers: "Want me to investigate the fire from 2h ago?"


User: "Explain alert rule 17 - is it well configured?"

Agent:

  1. signoz_get_alert id=17 → metrics, system.cpu.utilization, two thresholds (warning 80%, critical 90%), matchType=3 on_average, filter deployment.environment.name = 'production', groupBy host.name.

  2. signoz_get_alert_history id=17 → complete pages, no firing events returned for the last 7d.

  3. The user asked "is it well configured?"; the TL;DR leads with the verdict, not a generic description. Then explanation + full audit:

    TL;DR: Mostly well-configured (dual-threshold + on_average is the right call for CPU), but two gaps to fix: (1) no alertOnAbsent (a crashed agent silently stops reporting and this rule won't catch it); (2) annotations are default (a runbook URL would help on-call). No firing events were returned for the last 7d. That alone does not show production is healthy or the thresholds are too loose, and history may not be retained for the full window.

    What it watches: system.cpu.utilization on deployment.environment.name = 'production', grouped by host.name (fires per host).

    When it fires: op=above, matchType=on_average, two tiers (warning 80%, critical 90%) over a 5-min window. Short spikes don't fire; smoothing is correct for CPU.

    Notable concerns: same as TL;DR fixes above; nothing else non-default.

  4. Offers next steps.


User: "Help me understand this anomaly detection alert" (alert id 88)

Agent:

  1. signoz_get_alert id=88 → ruleType: anomaly_rule, schemaVersion: v2alpha1, seasonality=daily, one tier with op: outside_bounds, target 3, metric http.server.request.duration, scope service.name = 'api-gateway'.

  2. History: fired 1 time in last 7d.

  3. Replies:

    TL;DR: Fires when api-gateway request latency deviates by more than 3 standard deviations (not raw latency, not a fixed value) from its learned daily pattern. Fired once in the last 7d.

    What it watches: http.server.request.duration for service.name = 'api-gateway', evaluated as a Z-score anomaly with daily seasonality: the model learns the typical pattern for each hour of day, so peak-hour latency won't false-trigger if it matches the historical norm for that hour.

    When it fires: when |Z-score| >= 3 (outside_bounds), i.e. the value is at least 3 standard deviations above or below the expected pattern, so both spikes and drops fire. Lower target → more sensitive (more noise); higher → only extreme deviations. The threshold is not in seconds or milliseconds.

  4. Offers to investigate the recent fire.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Signoz Explaining Alerts」では何ができますか?

Describe what an existing SigNoz alert rule does in plain language: the signal it watches, the threshold and evaluation behavior, the notification routing, and a one-line fire-frequency summary so the user knows whether the alert has been active. Make sure to use this skill whenever the user asks "what does this alert do", "explain alert X", "walk me through this rule", "how does my [Y] alert work", "is this alert configured correctly", or otherwise asks for an interpretation of an existing alert's configuration. Static explanation only; for diagnosing a specific firing incident, use `signo...

TypingMindでSignoz Explaining Alertsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Signoz Explaining Alertsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSignoz Explaining Alertsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/SigNoz/agent-skills/tree/main/plugins/signoz/skills/signoz-explaining-alertsを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Signoz Explaining Alertsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Signoz Explaining Alertsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSignoz Explaining Alertsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Signoz Explaining Alerts」は無料ですか?

はい。SigNozがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇