Datadog
monitoring.datadog
Protects against destructive Datadog CLI/API operations like deleting monitors and dashboards.
- 4blocking rules
- 3safe patterns
- 4High
[packs]
enabled = ["monitoring.datadog"]Evaluated when a command contains datadog-ci, datadoghq, datadog.
Blocking rules
Each rule ID is monitoring.datadog:<name>. Use it in allowlists and [policy.rules].
Highdatadog-api-deleteDatadog API DELETE calls remove monitors/dashboards/synthetics.
Explanation
Direct API DELETE calls permanently remove Datadog resources without confirmation prompts. Monitors, dashboards, and synthetic tests are deleted immediately. Safer alternatives: - GET the resource first to verify the ID and export configuration - Use datadog-ci CLI which provides better feedback - Use Terraform/Pulumi for auditable, reversible infrastructure changes
Highdatadog-ci-dashboards-deletedatadog-ci dashboards delete removes a Datadog dashboard.
Explanation
Deleting a dashboard removes all widgets, queries, and layout configuration. Team members relying on this dashboard for visibility will lose access immediately. Safer alternatives: - datadog-ci dashboards get <id>: Export dashboard JSON first - Clone the dashboard before making changes - Use Terraform or Pulumi for version-controlled dashboard definitions
Highdatadog-ci-monitors-deletedatadog-ci monitors delete removes a Datadog monitor.
Explanation
Deleting a Datadog monitor stops all alerting for that check. You will no longer be notified if the monitored condition occurs, potentially missing critical production issues. Safer alternatives: - datadog-ci monitors get <id>: Review the monitor configuration first - Mute the monitor temporarily instead of deleting - Export monitor JSON configuration as backup before deletion
Highterraform-datadog-destroyterraform destroy targeting Datadog resources removes monitoring infrastructure.
Explanation
Terraform destroy removes Datadog monitors, dashboards, and other resources defined in your configuration. While Terraform tracks state, the actual monitoring resources are deleted immediately from Datadog. Safer alternatives: - terraform plan -destroy -target=... to preview deletions - terraform state rm to stop managing without deleting - Remove from Terraform config and apply instead of destroy
Safe patterns
Checked first. A command that matches one is never blocked by this pack.
datadog-ci-monitors-listdatadog-ci-dashboards-listdatadog-api-get