Query and control Pulse monitoring system via REST API. Use for checking infrastructure health, resource status (nodes/VMs/containers/storage), metrics, alerts, and system management. Supports authentication via API token or session. Use when user asks about Pulse status, infrastructure monitoring, or needs to interact with the Pulse dashboard programmatically.
CLI tool for interacting with Pulse infrastructure monitoring system.
Set environment variables or pass flags:
```bash
pulse health
pulse state
pulse resources --stats
pulse resource <resource-id>
pulse metrics --range 24h
```
```bash
pulse health
```
```bash
pulse state
```
```bash
pulse resources # List all resources
pulse resources --stats # Summary counts and health
pulse resource <id> # Single resource details
```
```bash
pulse metrics --range 1h # CPU, Memory, Storage charts
pulse metrics --range 24h
pulse metrics --range 7d
pulse storage-stats # Detailed storage usage
pulse backups # Unified backup history
```
```bash
pulse test-notification # Send test alert
pulse notification-health # Check notification system
```
```bash
pulse updates check # Check for Pulse updates
pulse updates status # Current update status
pulse updates apply # Apply available updates
```
```bash
pulse agents list # List all agents
pulse agent <id> config # Get agent configuration
pulse agent <id> unlink # Unlink agent from node
```
```bash
pulse tokens list # List API tokens
pulse token create --name "automation" --scopes "monitoring:read"
pulse token revoke <id> # Revoke token
```
```bash
pulse ai status # AI patrol status
pulse ai findings # Current AI findings
pulse ai run # Trigger AI patrol run
```
Create a helper script at `~/.local/bin/pulse`:
```bash
#!/bin/bash
PULSE_URL="${PULSE_URL:-https://demo.pulserelay.pro}"
PULSE_TOKEN="${PULSE_TOKEN:-a4b819a65b8d41318d167356dbf5be2c70b0bbf7d5fd4687bbf325a6a61819e0}"
endpoint="$1"
shift
curl -s -H "X-API-Token: $PULSE_TOKEN" \
"${PULSE_URL}/api/${endpoint}" "$@" | jq
```
Make it executable:
```bash
chmod +x ~/.local/bin/pulse
```
```bash
pulse state | jq '.hosts[] | {name: .displayName, memory}'
```
```bash
pulse state | jq '.containers[] | select(.cpu > 80)'
```
```bash
pulse state | jq '.alerts'
```
```bash
pulse metrics --range 24h > metrics-$(date +%Y%m%d).json
```
```bash
curl -H "X-API-Token: your-token" http://pulse:7655/api/health
```
```bash
curl -H "Authorization: Bearer your-token" http://pulse:7655/api/health
```
Used by web UI automatically.
Leave a review
No reviews yet. Be the first to review this skill!