Monitors
A monitor runs a query on a schedule and alerts when a condition holds. The monitors API reference lists every field a monitor takes. To see what a monitor has been doing:bronto monitors events lists the monitor’s recent state changes. Here it went to
ALERT when the 502s started and back to OK four and a half minutes later.
bronto monitors notifications lists the notifications it sent over --since (default
24h), one per recipient. Tables show times in UTC; -o json keeps the raw Unix
milliseconds.
Mute and unmute
--until -1, the default, mutes indefinitely. With --dry-run it prints the request it
would send, with the monitor’s name resolved to its id:
Downtimes and templates
Downtimes schedule planned quiet periods. They supportlist, create, update, and
delete:
bronto monitors templates.
Lint monitor definitions in CI
If you keep monitor definitions as JSON in a repository,bronto monitors check
validates them before you apply them. It checks query syntax, window bounds, and that the
referenced datasets exist. On any problem it exits 1 with monitor_check_failed:
--input is repeatable and takes - for stdin. Run monitors check in CI before
bronto monitors create --input <file> so a broken definition fails the build instead of
being created.
Dashboards and widgets
Dashboards are built from widgets. Create the widgets first, then attach them to a dashboard. The API reference covers dashboards and widgets.widgets create and widgets update both require name and type, and update
replaces the whole widget. Pass metric_ids, widget_ids, or aux as JSON values with
-f, or put the whole body in a file:
bronto dashboards attach-widgetsadds widgets by id.--widget-idstakes a comma-separated list or can be repeated.bronto dashboards remove-widgettakes the dashboard and one widget id.bronto dashboards detach-from-templateunlinks a dashboard created from a template, and prints the updated dashboard.
bronto widgets attach-widgets and
bronto widgets remove-widget work the same way, with a parent widget in place of the
dashboard:
--dry-run.
