Before you start
Create the agent in Observer: Agents, Add agent, then Cloud platforms. Copy the key. Observer shows it once. You paste it when DigitalOcean asks forAGENT_KEY.
Deploy with the button
1
Open the template
Choose Deploy to DigitalOcean above and sign in. DigitalOcean reads
.do/deploy.template.yaml from the agent repository: one worker,
agent, on an apps-s-1vcpu-0.5gb instance.2
Set the key
Paste your agent key into
AGENT_KEY. Leave CLOUD_SERVER_URL and
BUFFER_PATH as they are.3
Create the app
Create the app. It deploys in a few minutes.
Deploy with doctl
If the button does not offer the worker, create the app from the same spec with doctl:AGENT_KEY on the agent worker under
Settings, Environment variables, and save. The app redeploys
with the key.
Settings
To change the key, for example after a key rotation, editAGENT_KEY on the
agent worker’s environment variables. Add other
environment variables, such
as PROMETHEUS_SERVER_URL, in the same place.
Check that it connected
The Add agent screen shows Connected within a minute of the agent starting, and the Agents page marks the agent as running. If it does not, open the app’s Runtime Logs, or rundoctl apps logs <app-id> agent --type run. The agent logs every
failed call to Observer with the reason. The most common cause is a
wrong or replaced AGENT_KEY.
Upgrades
The template runsghcr.io/useobserver/agent:1, which moves to each
new 1.x release. Redeploy the app to pick up a new release.
Remove
Destroy the app from its Settings page, or rundoctl apps delete <app-id>. Delete the agent in Observer
(Agents) too if you no longer need it.
