Checkly¶
Query Checkly synthetic checks, uptime monitors, check results and root cause analyses during investigations.
Steps to take in Checkly before you connect. Creating a service API key needs the Owner or Admin role in the Checkly account.
One connection reaches one Checkly account. To connect more than one account, create a key in each account and add the connector once per account.
Create a service API key¶
The agent authenticates as the key, not as a person, so its calls are attributed to the key.
- In Checkly, go to Account settings > Service API keys and select Create service API key.
- Name it after its purpose, such as
aws-devops-agent. - Under Select a role, choose Read only. The agent can then view all resources but cannot change anything or trigger checks.
- Select Create API key and copy the key. Checkly shows it once.
Find your account ID¶
Go to Account settings > General and copy the account ID. The Service API keys page also shows it in the example request, after X-Checkly-Account:.
Connect¶
In the connection form, enter the key as Service API key and the ID as Account ID.
Let the agent change things in Checkly¶
Reading works with a Read only key. The server also has tools that trigger check runs, start root cause analyses, and create or change checks, check groups and environment variables. To use them, create the key with a broader role instead: Read & Run to run checks, or Read & Write to also change things. Then enable those tools in DevOps Agent and decide which need approval.
Let Checkly alerts open investigations¶
After you connect, the console shows a webhook URL, an Authorization header and a JSON body. Add them to Checkly:
- Go to Environment variables, open the Environment secrets tab, and add a secret named
AWS_DEVOPS_AGENT_WEBHOOK_KEY. Its value is the key from the header the console shows, without the wordBearer. - Go to Alert channels, select Add more channels, and choose Webhook. Give it a name such as
AWS DevOps Agent, keep the method POST, and paste the webhook URL. - On the Headers tab, add a header named
Authorizationwith the valueBearer {{{AWS_DEVOPS_AGENT_WEBHOOK_KEY}}}. Use three braces on each side. With two, Checkly escapes characters such as=in the key and the webhook rejects the request. - On the Body tab, replace the template with the body the console shows.
- Under Notification events, keep a check fails selected and clear a check recovers. Recovery events do not open or close investigations.
- Under Subscriptions, add the checks that should start an investigation, then save.
- Select Test alert channel. On the Response tab, a working setup shows status
200and the messageWebhook received.
The alert sends the check's name, type, location and a link to the failing result. The agent then reads the result and its error through the connection.
For more detail, see the Checkly MCP server documentation.