Learn how to connect your server or VM to Silverhawk APM using the silverhawk-infra agent to start collecting real-time CPU, memory, disk, and network metrics.
Ensure your environment meets the requirements before proceeding.
https://api.silverhawk.iobash
node -v && npm -vDefine your server in the Silverhawk APM dashboard.
| Field | Description | Example |
|---|---|---|
| Name | Identifier for your host | Production Contabo Server |
| Description | Purpose of this server | Runs main MERN backend |
| Tags | For filtering & grouping | production, backend, contabo |
| Environment | Choose infra type | Production |
| Operating System | Select your host OS | Ubuntu 22.04 LTS |
Install the Silverhawk Infra agent globally on your target server.
bash
ssh root@<your-server-ip>
npm install -g silverhawk-infra
silverhawk-infra --versionThe agent will automatically create a background service for metric collection.
Use a heartbeat check to validate your API key and network connection.
bash
silverhawk-infra heartbeat --api-key <YOUR_API_KEY>✅ If successful, you’ll see: Heartbeat OK
Start the Silverhawk Infra Agent to begin sending metrics.
bash
silverhawk-infra start --api-key <YOUR_API_KEY>bash
silverhawk-infra statusAgent logs are available at /var/log/silverhawk-infra/agent.log.
Once the agent is running, data appears automatically in the dashboard.
Navigate to your dashboard → Infrastructures → Select your server.
Metrics can take up to 30 seconds to appear after the first data push.
Common setup issues and their resolutions.
| Issue | Possible Cause | Solution |
|---|---|---|
| Invalid API Key | Key expired or typo | Regenerate from Dashboard → Settings → API Keys |
| Connection Timeout | Firewall or proxy blocking 443 | Allowlist api.silverhawk.io |
| Metrics Not Visible | Agent stopped or host clock mismatch | Restart agent, ensure NTP sync |
Enhance your observability setup.
silverhawk-logs to centralize application logs.Need automation? Use our Terraform Provider to register infrastructures programmatically.
💬 Need Help?