tolmo monitor manages the Datadog monitors that Tolmo owns for your organization. Tolmo resolves the Datadog credentials on the server, so the CLI never sees them. Tolmo adds the managed-by:tolmo tag to each monitor that it creates. This tag separates these monitors from the monitors that you manage outside Tolmo.
List managed monitors
tolmo monitor list lists the monitors that the selected integration can see. Use --tag to show only Tolmo’s monitors. Add --json to get machine-readable output:
monitor get:
--name. To paginate, use --page-size (up to 1000) and the zero-based --page:
Create a monitor
Write a JSON spec in the Datadog monitor API format. You do not need to add themanaged-by:tolmo tag. Tolmo adds it before it sends the request to Datadog.
Pass the spec as a file path, or pipe it from stdin:
Update a monitor
Pass the monitor’s Datadog ID and a JSON patch file with the fields to change:Delete a monitor
Delete a Tolmo-managed monitor by its Datadog ID:managed-by:tolmo tag.
Multiple Datadog integrations
If you connected more than one Datadog account, select one with--integration <integration-id>. tolmo query list shows the integration IDs. For example:
Example monitor spec
This minimal spec creates a CPU alert. Change thequery, message, and thresholds for your environment. Then pass the file to tolmo monitor create:
cpu-monitor.json