$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 database connection pool exhaustion.
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_check_db_connections
shell_check_db_pool_stats
shell_check_long_queries
shell_check_db_locks
.~/.unpage/profiles/default/config.yaml
and add the following:
unpage agent serve
and add the webhook URL to your PagerDuty account: