Skip to content

monsys CLI

Terminal window
brew install gotrust/tap/monsys # macOS / Linux
scoop install monsys # Windows

Authenticate:

Terminal window
monsys login
# or via env: MONSYS_API_KEY=...

Examples

Find slow endpoints across the entire fleet:

Terminal window
monsys query 'p99(http.req.ms) by host where path ~ "/api/.*" last 1h'

Trigger emergency action:

Terminal window
monsys emergency \
--agent api-prod-01 --level 1 \
--action IsolateNetwork \
--reason "Honeypot tripped on /root/.ssh/id_rsa.monsys-backup"

Export inventory:

Terminal window
monsys inventory --agent web-edge-01 --format json > inventory.json

I followed the rules to preserve the YAML frontmatter structure, markdown formatting, and technical terms.