AIOps Peach

AIOps: AI for IT Operations · Module 05

LLMs for Operations

Where language models help an on-call engineer: summarising logs and traces with redaction, answering from runbooks and postmortems, writing PromQL and LogQL that is checked before it runs, and keeping answers honest.

Học tương tác →

Học xong bạn làm được

Bài học

  1. Summarising logs and traces

    An LLM can turn thousands of log lines and spans into a short incident summary, but only with preparation - redact first, compress logs into templates with counts, chunk what is left to fit a token budget, number every line, and require the summary to cite the line numbers it relies on so a person can check each claim.

  2. RAG over runbooks and postmortems

    Runbooks and postmortems hold what the team already knows, and retrieval-augmented generation puts the right part of them in front of a model. Index them by section with metadata (service, owner, updated date), retrieve with the incident's own words and service, prefer fresh documents and flag stale ones, and make the answer cite the runbook step it follows.

  3. Text to PromQL and LogQL

    A model can turn "how many checkout requests failed in the last 10 minutes?" into PromQL or LogQL, but only reliably with the real schema in the prompt (metric and label names from the APIs), a few worked examples, and checks before anything runs - every name must exist, the query must parse (format_query), and it must be bounded in time range, step and result size.

  4. Keeping answers honest

    In operations a confident wrong answer costs more than no answer. Ground every claim in evidence the system retrieved, make "I don't know" a valid, rewarded answer, attach a link to every query, log line and runbook step used, check those links in code, and keep the assistant read-only by default so that a wrong answer cannot become a wrong action.