montecarlo monitors (CLI v1)

montecarlo monitors is part of v1 of the Monte Carlo CLI, the Python CLI (montecarlo, installed with pip install montecarlodata). This page covers its subcommands, usage and options.

Manage monitors.

montecarlo monitors [OPTIONS] COMMAND [ARGS]...

montecarlo monitors apply

Compile and apply monitor configuration.

montecarlo monitors apply [OPTIONS]

Options

  • --project-dir <project_dir>: Base directory of MC project (where montecarlo.yml is located). By default, this is set to the current working directory
  • --namespace <namespace>: Namespace of monitors configuration. This value will be ignored if we find a namespace in montecarlo.yml
  • --dry-run: Dry run (just shows planned changes but doesn't apply them.) Default: False.
  • --dbt-manifest <dbt_manifest>: Path to dbt manifest used for resolving dbt ref() in monitor config
  • --auto-yes: Skip any interactive approval. Default: False.
  • --create-non-ingested-tables: force create non-ingested tables if they don't exist. Default: False.
  • --sql-validation / --no-sql-validation: Enable or disable SQL syntax validation during apply. Default: True.
  • --option-file <option_file>: Read configuration from FILE.

Source: montecarlo monitors apply in the CLI reference

montecarlo monitors compile

Compile monitor configuration.

montecarlo monitors compile [OPTIONS]

Options

  • --project-dir <project_dir>: Base directory of MC project (where montecarlo.yml is located). By default, this is set to the current working directory
  • --namespace <namespace>: Namespace of monitors configuration. This value will be ignored if we find a namespace in montecarlo.yml
  • --dbt-manifest <dbt_manifest>: Path to dbt manifest used for resolving dbt ref() in monitor config

Source: montecarlo monitors compile in the CLI reference

montecarlo monitors convert-to-mac

Convert monitors from UI to monitors configuration, exporting the monitors as YAML in the process.

montecarlo monitors convert-to-mac [OPTIONS]

Options

  • --namespace <namespace>: Required Namespace for the exported monitors.
  • --project-dir <project_dir>: Required Path to a directory to export a MC monitor config project to.
  • --monitor-uuids <monitor_uuids>: Comma separated list of monitor UUIDs to export.
  • --monitors-file <monitors_file>: File with monitor UUIDs to convert. One line per monitor.
  • --dry-run: Dry run (only export the monitors as monitors as code, but do not convert existing ones). Default: False.

Source: montecarlo monitors convert-to-mac in the CLI reference

montecarlo monitors convert-to-ui

Convert monitors from a monitors as code namespace to UI monitors.

montecarlo monitors convert-to-ui [OPTIONS]

Options

  • --namespace <namespace>: Required Namespace to convert.
  • --dry-run: Dry run (just shows planned changes but doesn't apply them.) Default: False.

Source: montecarlo monitors convert-to-ui in the CLI reference

montecarlo monitors delete

Delete monitor configuration.

montecarlo monitors delete [OPTIONS]

Options

  • --project-dir <project_dir>: Base directory of MC project (where montecarlo.yml is located). By default, this is set to the current working directory
  • --namespace <namespace>: Required Namespace of monitors configuration.
  • --dry-run: Dry run (just shows planned changes but doesn't apply them. Default: False.
  • --option-file <option_file>: Read configuration from FILE.

Source: montecarlo monitors delete in the CLI reference

montecarlo monitors export

Export monitors as monitor as code.

montecarlo monitors export [OPTIONS]

Options

  • --monitor-uuids <monitor_uuids>: Comma separated list of monitor UUIDs to export.
  • --monitors-file <monitors_file>: File with monitor UUIDs to export. One line per monitor.
  • --export-name <export_name>: Export the monitor name in the output. Default: True.

Source: montecarlo monitors export in the CLI reference

montecarlo monitors export-as-latest

Export monitors in a monitor as code namespace upgraded to the latest version of monitors of monitors as code. Will only export monitors that can be upgraded.

montecarlo monitors export-as-latest [OPTIONS]

Options

  • --namespace <namespace>: Required Namespace to export as latest.
  • --monitors-file <monitors_file>: File with monitor UUIDs to export as latest. One line per monitor.

Source: montecarlo monitors export-as-latest in the CLI reference

montecarlo monitors export-migrated-dt

Export monitors as code configuration for a given namespace. Only generates configuration for system migrated Dimension Tracking monitors.

montecarlo monitors export-migrated-dt [OPTIONS]

Options

  • --project-dir <project_dir>: Base directory of MC project (where montecarlo.yml is located). By default, this is set to the current working directory
  • --namespace <namespace>: Namespace of monitors to be exported. This value will be ignored if we find a namespace in montecarlo.yml
  • --option-file <option_file>: Read configuration from FILE.

Source: montecarlo monitors export-migrated-dt in the CLI reference

montecarlo monitors generate-from-dbt-tests

Generate MC monitor config YAML from dbt tests.

montecarlo monitors generate-from-dbt-tests [OPTIONS]

Options

  • --output-path <output_path>: Required Path for MC monitor config output YAML
  • --dbt-manifest <dbt_manifest>: Required Path to dbt manifest containing tests to generate MC monitor config for
  • --test-type <test_type>: Filter for types of dbt tests to convert. Can pass multiple. Defaults to all. Pass SINGULAR to filter to singular tests without a shared type.
  • --label <label>: Label to apply to all generated MC monitors. Can pass multiple.

Source: montecarlo monitors generate-from-dbt-tests in the CLI reference

montecarlo monitors get-template

Get the monitors configuration for a given namespace.

montecarlo monitors get-template [OPTIONS]

Options

  • --namespace <namespace>: Required Namespace for the exported monitors.
  • --project-dir <project_dir>: Required Path to a directory to export a the template to.

Source: montecarlo monitors get-template in the CLI reference

montecarlo monitors list

List monitors ordered by update recency.

montecarlo monitors list [OPTIONS]

Options

  • --limit <limit>: Max number of monitors to list. Default: 100.
  • --monitor-type <monitor_type>: List monitors with monitor_type Options: CIRCUIT_BREAKER_COMPATIBLE | CUSTOM_SQL | TABLE_METRIC | FRESHNESS | VOLUME | STATS | CATEGORIES | JSON_SCHEMA.
  • --namespace <namespace>: List only monitors in this namespace

Source: montecarlo monitors list in the CLI reference

montecarlo monitors namespaces

List all namespaces.

montecarlo monitors namespaces [OPTIONS]

Options

  • --limit <limit>: Max number of namespaces to list. Default: 100.

Source: montecarlo monitors namespaces in the CLI reference

montecarlo monitors run

Run a circuit breaker monitor and wait for the result.

montecarlo monitors run [OPTIONS]

Options

  • --namespace <namespace>: Namespace of the monitor to run.
  • --name <name>: Name of the monitor to run.
  • --uuid <uuid>: UUID of the monitor to run (alternative to namespace/name).
  • --runtime-variables <runtime_variables>: Runtime variables as JSON string (e.g., '{"var1": "value1", "var2": "value2"}').

Source: montecarlo monitors run in the CLI reference

Source: montecarlo monitors in the CLI reference

This page is generated from the CLI's help text on each release. Changes made in ReadMe are overwritten.


Did this page help you?