kubectl
commands while production is down and users are impacted.
$EDITOR
. Paste the following Agent definition
into the file:
description
of an Agent is used by the Router to
decide which Agent to run for a given input. In this example we want the Agent
to run only when the alert is about Kubernetes pod crash loops or CrashLoopBackOff.
prompt
is where you give the Agent instructions, written in a runbook
format. Make sure any instructions you give are achievable using the tools
you have allowed the Agent to use (see below).
tools
section explicitly grants permission to use specific tools. You can
list individual tools, or use wildcards and regex patterns to limit what the
Agent can use.
To see all of the available tools your Unpage installation has access to, run:
shell_kubectl_get_pod
shell_kubectl_describe_pod
shell_kubectl_logs_current
shell_kubectl_logs_previous
shell_kubectl_get_events
shell_kubectl_top_pod
shell_kubectl_get_configmaps
shell_kubectl_get_secrets
~/.unpage/profiles/default/config.yaml
and add the following:
unpage agent serve
and add the webhook URL to your PagerDuty account: