obzervo-agent
v1.0.1
Published
Obzervo Local & VPC Microservice Monitoring CLI Agent
Maintainers
Readme
obzervo-agent
Lightweight CLI monitoring agent for Obzervo API Observability Platform. Monitors private, local, or VPC endpoints and pushes health metrics to your Obzervo dashboard using API keys.
Install
npm install -g obzervo-agentUsage
Option 1: CLI flags
obzervo monitor \
--endpointId "YOUR_24_CHAR_ENDPOINT_ID" \
--targetUrl "http://localhost:3000/health" \
--key "obz_live_YOUR_API_KEY" \
--method GET \
--expectedStatus 200 \
--interval 10000Option 2: Config file
Create an obzervo.json in your project root:
{
"endpointId": "YOUR_ENDPOINT_ID",
"targetUrl": "http://localhost:3000/health",
"apiKey": "obz_live_YOUR_API_KEY",
"serverUrl": "http://localhost:5000",
"interval": 10000
}Then run:
obzervo monitorHow it works
- The agent sends an HTTP request to your
targetUrlat the configured interval. - It records the response status code, latency (ms), and payload size.
- It pushes that data to your Obzervo server via
POST /api/v1/telemetry/pushusing thex-api-keyheader. - Your Obzervo dashboard updates in real time over WebSockets.
CLI Options
| Flag | Default | Description |
|---|---|---|
| --endpointId | (required) | The Obzervo endpoint ID to report against |
| --targetUrl | (required) | The URL to monitor |
| --key | (required) | Your Obzervo API key (obz_live_...) |
| --method | GET | HTTP method for the health check |
| --expectedStatus | 200 | Expected healthy status code |
| --interval | 10000 | Polling interval in milliseconds |
| --serverUrl | http://localhost:5000 | Obzervo server base URL |
Security
- API keys are sent via the
x-api-keyHTTP header, never in query strings or URLs. - The Obzervo server validates keys by comparing SHA-256 hashes and verifies endpoint ownership before accepting data.
