Logo di Sre Monitoring And Alerting

Sre Monitoring And Alerting

Community
paulip114
sre-monitoring-and-alerting

Usa questa skill per progettare o rivedere sistemi di monitoraggio, dashboard e avvisi: golden signals, approcci white-box e black-box, gestione degli avvisi e conversione degli SLO in avvisi multiwindow multi-burn-rate (con template Prometheus e un calcolatore del burn rate). Si basa sulle pratiche SRE di Google.

Add to TypingMind

Panoramica

Pubblicato dapaulip114
Repositorysre-practice-skills
Nome della skillsre-monitoring-and-alerting
Stelle
64
Fork
19
File inclusi
2
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 2

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da paulip114 su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Sre Monitoring And Alerting in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/paulip114/sre-practice-skills/tree/main/sre-monitoring-and-alerting
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/paulip114/sre-practice-skills.git /tmp/sre-practice-skills
mkdir -p .claude/skills
cp -r /tmp/sre-practice-skills/sre-monitoring-and-alerting .claude/skills/sre-monitoring-and-alerting
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Sre Monitoring And Alerting in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Sre Monitoring And Alerting non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Sre Monitoring And Alerting non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Monitoring and Alerting

Monitoring answers what is broken and why. Page humans only when the error budget is under real threat; everything else is a ticket or a dashboard.

Monitoring Design

Monitoring exists to answer two questions: what is broken (symptom) and why (cause). Build it so that a human is only interrupted for the first, and can find the second quickly.

Principles

  • Alert on symptoms, investigate with causes. Users feel "checkout is slow", not "DB CPU is 90%". Page on user-visible symptoms (ideally SLO burn — see Alerting on SLOs below); keep cause metrics for dashboards and debugging.
  • Every page must be urgent, actionable, and need human judgment. If a script could respond, automate it. If it can wait until morning, it's a ticket. If nobody acts on it, delete it.
  • Keep it simple. Rules that rarely fire, signals nobody looks at, and clever heuristics rot. Prefer a small set of well-understood signals and remove what isn't used (review quarterly).
  • Black-box + white-box. Black-box probes show what users see right now (and catch problems that never reach your servers). White-box metrics show internals and imminent problems. You need both.
  • Measure distributions, not averages. Use histograms/percentiles for latency; averages hide the tail. Choose bucket boundaries that match SLO thresholds.

The four golden signals (request-serving systems)

SignalWhat to measureWatch for
LatencyTime to serve, separately for successes and errorsFast errors hide in blended averages; slow errors are worse than fast ones
TrafficDemand: requests/s, sessions, transactions, bytesSudden drops can mean an upstream outage, not good news
ErrorsRate of failed requests: explicit (5xx), implicit (wrong content), policy (slower than promised)Some errors are only visible end-to-end
SaturationHow full the most constrained resource is (CPU, memory, I/O, threads, queue depth, connection pools)Latency increase is often the earliest sign; predict "full in N hours"

For pipelines add freshness, throughput and backlog; for storage add durability and capacity headroom.

Design procedure

  1. Start from SLIs (sre-slos-and-error-budgets). Those become the top of every dashboard and the source of pages.
  2. Instrument the golden signals at each tier (load balancer, service, critical dependencies). Label by endpoint/request class, response code, and version so you can slice by release.
  3. Add saturation metrics for the resource that runs out first. Know what that is from load tests (sre-capacity-and-system-design).
  4. Add black-box probes for each critical user journey, from outside your network.
  5. Decide metrics vs logs vs traces. Metrics for things you alert on and trend (cheap, aggregated). Logs for per-event detail and forensic debugging. Traces for latency breakdown across services. Don't page from log scraping if a metric can carry the signal.
  6. Build dashboards in layers:
    • Service overview: SLIs + budget remaining, golden signals, current release version.
    • Dependency view: each critical dependency's latency/errors as seen from the caller.
    • Resource view: saturation per component. Annotate deploys, config pushes and incidents on graphs.
  7. Write alert rules with: a clear name, severity (page/ticket), the user impact in the description, and a runbook link with first diagnostic steps.
  8. Test the monitoring. Verify alerts fire by injecting failures in staging or by unit-testing rules. Monitor the monitoring (a dead-man's-switch alert that fires when the pipeline stops sending).

Alert hygiene checklist

For every existing page:

  • Did it detect something users would notice (or will soon)?
  • Was action required immediately, and did a human need to decide what to do?
  • Has it fired spuriously in the last quarter? How often was it ignored?
  • Does it duplicate another alert for the same symptom?
  • Does its runbook exist and still match reality?

Anything failing these: convert to ticket, automate the response, merge, or delete. Track pages per shift as a health metric (sre-on-call-and-toil).

Anti-patterns

  • Paging on every cause metric "just in case".
  • Static thresholds copied from another service without understanding.
  • Dashboards with dozens of graphs and no ordering by importance.
  • Monitoring that depends on the system it monitors (same cluster, same network path).
  • Long for: durations used to hide flapping instead of fixing the signal.

Alerting on SLOs

Page a human only when the error budget is under real threat. Everything else is a ticket or a dashboard.

Judge any alerting strategy on four properties

  • Precision — share of alerts that were significant.
  • Recall — share of significant events that alerted.
  • Detection time — how fast it fires.
  • Reset time — how long it keeps firing after recovery.

A "significant event" means it consumed a meaningful fraction of the error budget.

Why the simple options fail

ApproachProblem
Alert when the short-window (e.g. 10 min) error rate ≥ SLO thresholdPoor precision: can fire many times a day while the SLO is still met
Same threshold, long window (e.g. 36 h)Good precision, but it keeps firing for hours after the problem is fixed and is expensive to compute
Short window + for: durationDetection time ignores severity (a total outage waits as long as a tiny one); a flapping signal resets the timer and may never fire. Don't use durations for SLO alerts.
Single burn-rate alert (e.g. 14.4× over 1h)Good precision and detection, but misses slower burns that still exhaust the budget

Recommended: multiwindow, multi-burn-rate

Burn rate = observed error ratio ÷ (1 − SLO). Burn rate 1 spends exactly the whole budget over the window; burn rate 1,000 on a 99.9%/30-day SLO spends it in ~43 minutes.

Starting configuration for a 30-day window (scale thresholds by your SLO):

SeverityLong windowShort windowBurn rateBudget consumed when it fires
Page1 h5 min14.42%
Page6 h30 min65%
Ticket3 d6 h110%
  • Fire only when both long and short windows exceed the threshold. The long window gives precision; the short window (≈1/12 of the long) makes it stop firing soon after recovery.
  • Threshold for each row = burn_rate × (1 − SLO).
  • Burn rate for "X% of budget in window W" over period P = X × P / W. (2% of 30 days in 1 h → 0.02 × 720 = 14.4.)
  • Add alert suppression/inhibition so one big outage doesn't produce three notifications.
  • Pages and tickets are the only alert outputs that ask a human to act; route the ticket row to a queue, not a pager.

Rule templates: references/prometheus-rules.md. Calculator: scripts/burn_rate.py.

Special cases

Low-traffic services — one failure out of a handful of requests looks like a 1,000× burn. Options, usually combined:

  • Generate synthetic traffic with probers (but synthetic success can mask real-user failure).
  • Aggregate related low-traffic services that share failure domains into one alerting group.
  • Make the product tolerate single failures (client retries with exponential backoff and jitter, queued/deferred execution).
  • Reconsider whether the SLO or window is right if a single failure really doesn't merit a page.

Very loose SLOs (e.g. 90%) — a total 1-hour outage may never reach "2% of budget in 1h"; recompute thresholds so achievable outages can still fire.

Very tight SLOs (e.g. 99.999%) — a full outage burns the monthly budget in under a minute, faster than alerting can react. Defend these with design: progressive rollouts (a 1% canary stretches the time-to-exhaustion 100×), automated rollback, isolation. See sre-release-and-launch.

Alerting at scale

Don't hand-tune windows and burn rates per service. Pick one parameter set and apply it everywhere. Group request types into a few classes with shared targets, e.g.:

ClassExampleAvailabilityLatency
CRITICALlogin, payment99.99%tight
HIGH_FASTinteractive core features99.9%tight
HIGH_SLOWreports, exports99.9%relaxed
LOWbackground polling99%none
NO_SLOdark launches, alphanonenone

Reviewing existing alerts

For each alert ask: Is it tied to user-visible impact (symptom) or to an internal cause? Does it require immediate human action? What did responders actually do the last N times? Delete or downgrade anything that is routinely ignored or auto-resolves. See also Alert hygiene checklist above and sre-on-call-and-toil.

Sources

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Sre Monitoring And Alerting?

Usa questa skill per progettare o rivedere sistemi di monitoraggio, dashboard e avvisi: golden signals, approcci white-box e black-box, gestione degli avvisi e conversione degli SLO in avvisi multiwindow multi-burn-rate (con template Prometheus e un calcolatore del burn rate). Si basa sulle pratiche SRE di Google.

Perché usare Sre Monitoring And Alerting su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Sre Monitoring And Alerting è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Sre Monitoring And Alerting in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/paulip114/sre-practice-skills/tree/main/sre-monitoring-and-alerting. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Sre Monitoring And Alerting?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Sre Monitoring And Alerting?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Sre Monitoring And Alerting: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Sre Monitoring And Alerting è gratuita?

Sì. È pubblicata su GitHub da paulip114 con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇