pulse monitors command group is the heart of the CLI. You can inspect every monitor in your account, drill into the details of a single check, and — most powerfully — declare your entire monitoring setup in a pulseguard.yaml file and apply it with a single command. Treating monitor configuration as code means your monitoring setup is version-controlled, reviewable, and reproducible.
Listing monitors
Get a quick overview of all monitors in your account:
The
ls alias is also available:
--json flag:
jq or other tools.
Getting monitor details
Inspect a single monitor by its ID to see its full configuration and recent check events:--json to get the full monitor object as JSON:
Monitoring as Code with YAML
The most powerful feature of the CLI is the ability to define your monitors declaratively in a YAML file and apply them idempotently. Monitors are matched by name: if a monitor with the same name already exists it is updated, otherwise it is created.Create a pulseguard.yaml file
Add apulseguard.yaml file to the root of your repository:
pulseguard.yaml
monitors array supports the following fields:
Apply the configuration
Run the following command from the directory containing yourpulseguard.yaml:
Preview changes before applying
Use--dry-run to see exactly what apply would do without making any changes:
[+] means the monitor would be created; [~] means it would be updated.
pulse monitors apply is safe to run repeatedly. Monitors that already match their YAML definition are not modified unnecessarily. This makes it suitable for use in a deployment pipeline.Export existing monitors to YAML
If you have monitors you created in the dashboard and want to bring them under version control, export them all to a YAML file:pulseguard.yaml file in the current directory. To specify a different output path:
pulse monitors apply, so you can use it immediately as your Monitoring as Code baseline.
Triggering an immediate check
Force a monitor to run a health check right now without waiting for its next scheduled interval:1 if the check returns DOWN, making it easy to use in scripts.
Instant trigger is supported only for
HTTP monitors. Attempting to trigger an SSL or BROWSER monitor returns a 422 error.Tailing live logs
Stream check events from a monitor in real time, similar totail -f on a log file:
Ctrl+C to stop.
Control how many past lines are shown on startup with -n:
--interval (minimum 2000 ms):