observer-agent
systemd service. The console gives you a copy with your key filled in.
Where the key is storedThe key is in the VM’s user data. Programs on the VM can read it from
the cloud’s metadata service, and so can the users of your cloud
account who can read the VM’s settings.
Before you start
- Create the agent in Observer: Agents, Add agent, then Cloud platforms. Under Any other cloud, choose Copy user data. Observer shows the key once.
- Pick a Linux image with cloud-init, such as Ubuntu or Debian. Most clouds’ standard images have it.
- To check private services, put the VM in their private network, with outbound internet access: a public IP, or a NAT gateway.
Deploy
1
Create the VM
Start creating a VM in your cloud’s console. A small size is enough:
one vCPU and 1 GB of memory.
2
Paste the user data
Find the user data field. Clouds call it User data, Cloud-init
or an initialization script, usually under the advanced options. Paste
the user data from the console.
3
Create it
Create the VM. It boots, downloads the agent and starts it.
Check that it connected
A few minutes after the VM starts, the Add agent screen shows Connected and the Agents page marks the agent as running. If it does not connect, open a shell on the VM and read the cloud-init output, where the install script prints each step:Add settings and secrets
The agent reads its environment from/etc/observer-agent/agent.env.
To add a variable, such as PROMETHEUS_SERVER_URL or a secret that a
probe references by name (connection_string_ref and the like), edit
the file and restart the service:
AGENT_KEY in the same file. See
Environment variables for
every setting.
Upgrades
To upgrade, run the install script again from a shell on the VM. It replaces the binary, restarts the service, and keeps the key and your settings:-s -- --version <X.Y.Z> after sh.

