KoskenDocs Open the app

Playbooks: fixed rules before the model

Playbooks run fixed rules before the model on an incident. Read a verdict, see why a false positive closed alone, and turn playbooks on or off.

4 min readUpdated on Español

On this page
  1. What a playbook does
  2. Verdicts
  3. A false positive that closes alone
  4. Read a verdict on an incident
  5. Find the playbooks
  6. Turn playbooks on or off

After you read this guide, you can read the verdict of a playbook on an incident, find the rules that gave it, and turn the playbooks on or off.

What a playbook does

A playbook is a set of fixed rules for one family of problems, for example a high load average. Kosken runs it before the model, every time, in the same order. A playbook does these things:

  1. It reads values from the facts, the metrics, the work of the platform and the monitor that opened the incident.
  2. It calculates derived values, for example the load for each CPU.
  3. It runs read-only checks. Their output goes to the evidence of the incident.
  4. It applies its rules in order. The first rule that matches gives the verdict.

A playbook never changes a machine. It runs only read-only recipes. Playbooks are part of Kosken. A workspace cannot write its own.

Verdicts

VerdictMeaningWhat happens next
False positiveThe machine is in a normal state. The monitor fired because its limit does not fit the machine.The investigation ends, unless the rule says that the model continues.
Expected activityWork of the platform, such as a backup or a task, or planned work in a maintenance window, explains the signal.The investigation ends.
ConfirmedThe problem is real. The rule can name its kind, for example cpu_saturation.The model continues and gets the verdict as a fact.
UnknownNo rule matched.The model investigates.

A rule that reads a value with no data does not match. So a missing fact or metric never gives a verdict.

A false positive that closes alone

Example: a load monitor on web-01 fires at a load of 9 on 24 CPUs, and the CPUs are 95% idle. The playbook High load average divides the load by the CPUs, sees that the CPUs are not busy, and gives False positive.

When a verdict ends the investigation:

  • No model runs, and no tokens are used.
  • The incident closes as Not a problem. On a machine in audit mode, it closes as Classified (audit mode).
  • The root cause report shows the verdict at the top, with No model call. The text of the rule is the cause, and the suggestion of the rule becomes a follow-up. See The root cause report.

If the verdict is wrong, change the monitor, or reopen the incident. See Actions you can take.

A verdict never ends the investigation in these cases:

  • A person opened the incident by hand.
  • Triage picked the playbook by its category, because no playbook fits the monitor kind. Triage already asked for a diagnosis.
  • The setting A false positive or work of the platform ends the investigation is off.

Read a verdict on an incident

The report of an incident that a playbook closed: the verdict false positive, the reason in numbers, and a suggestion for the monitor. No model call.The report of an incident that a playbook closed: the verdict false positive, the reason in numbers, and a suggestion for the monitor. No model call.
  1. Open the incident.
  2. In Timeline or Evidence, find the Playbook entry.

The entry shows the name and the version of the playbook, the verdict, the text of the rule and its Suggestion. Open the values line, for example 9 values · rule idle_cpus, to see each value with its Source. A value with no data did not count. Checks that ran lists the read-only recipes of the playbook.

Find the playbooks

  1. In the sidebar, select Recipes.
  2. In the list of categories, select Playbooks.

The list shows each playbook with its Monitor kinds, Triage categories, Rules and Checks.

PlaybookMonitor kinds
High load averageload, cpu
Disk spacedisk
Memory usememory
Service downservice, units
Certificate expirycert
URL or port downurl, port
Container down or restartingdocker
Log patternlog

A monitor of the kind command has no playbook. Its check can be any read-only recipe, so a fixed rule cannot know what its value means.

The page of a playbook

Select a playbook to open its page. The page shows:

  • Version, the number of Rules and Checks, and the State in this workspace: Runs or Off in this workspace.
  • Rules, in order: for each rule, its condition, its verdict, its text and its suggestion. Ends the investigation or The model continues says what the rule does after it matches.
  • Inputs: each value and its source. Derived values: each value and its Formula.
  • When it runs: the monitor kinds and the triage categories that pick the playbook. The kind of the monitor that opened the incident picks the playbook first. Else the category of triage picks it.
  • Checks: the read-only recipes that run every time.

Turn playbooks on or off

Only an owner can change these settings. Other members see them as read only.

The Recipes page with the note about playbooks and the workspace setting that runs them.The Recipes page with the note about playbooks and the workspace setting that runs them.
  1. Open Recipes, then Playbooks.
  2. In Settings of this workspace, set the two boxes:
    • Run the playbooks: with this off, no playbook runs.
    • A false positive or work of the platform ends the investigation: with this off, the model always runs and gets the verdict as a fact.
  3. Select Save.

Both settings are on in a new workspace. The audit log records each change.

Something here does not match the app? Tell us