From 8251175644cc64376fa9e62f5df49e435c19c81d Mon Sep 17 00:00:00 2001 From: jerryfan01234 <44346807+jerryfan01234@users.noreply.github.com> Date: Fri, 23 Aug 2024 16:12:25 -0400 Subject: [PATCH] Stale compliance monitor (#129) --- .../precautionary_monitors.tf | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/modules/indexer_monitors/precautionary_monitors.tf b/modules/indexer_monitors/precautionary_monitors.tf index b72ca8e2..837a8cc8 100644 --- a/modules/indexer_monitors/precautionary_monitors.tf +++ b/modules/indexer_monitors/precautionary_monitors.tf @@ -118,3 +118,31 @@ resource "datadog_monitor_json" "websocket_stream_destroyed" { } EOF } + +resource "datadog_monitor_json" "stale_compliance_data" { + count = var.environment == "mainnet" ? 1 : 0 + monitor = < 1000", + "message": "Addresses have stale compliance data. Check the two metrics to determine if active or inactive addresses are stale. update-compliance-data.ts roundtable is responsible for updating compliance data.", + "tags": [ + "team:${var.team}", + "env:${var.env_tag}" + ], + "options": { + "thresholds": { + "critical": 1000 + }, + "notify_audit": false, + "include_tags": false, + "notify_no_data": false, + "silenced": {} + }, + "priority": null, + "restricted_roles": null +} +EOF +} \ No newline at end of file