diff --git a/modules/indexer_monitors/roundtable_monitors.tf b/modules/indexer_monitors/roundtable_monitors.tf new file mode 100644 index 0000000..b16972a --- /dev/null +++ b/modules/indexer_monitors/roundtable_monitors.tf @@ -0,0 +1,51 @@ +resource "datadog_monitor_json" "roundtable_update_affiliate_info_persistent_cache_stale" { + monitor = < 600", + "message": "persistentCache.affiliateInfoUpdateTime is more than 10 minutes in the past. This indicates that update-affiliate-info roundtable has not run successfully in past 10 min -> affiliate_info table is stale.", + "tags": [ + "team:${var.team}", + "env:${var.env_tag}" + ], + "options": { + "thresholds": { + "critical": 600 + }, + "notify_audit": false, + "include_tags": false, + "notify_no_data": false, + "silenced": {} + }, + "priority": null, + "restricted_roles": null +} +EOF +} + +resource "datadog_monitor_json" "roundtable_update_wallet_total_volume_persistent_cache_stale" { + monitor = < 600", + "message": "persistentCache.totalVolumeUpdateTime is more than 10 minutes in the past. This indicates that update-wallet-total-volume roundtable has not run successfully in past 10 min -> totalVolume column of wallets table is stale.", + "tags": [ + "team:${var.team}", + "env:${var.env_tag}" + ], + "options": { + "thresholds": { + "critical": 600 + }, + "notify_audit": false, + "include_tags": false, + "notify_no_data": false, + "silenced": {} + }, + "priority": null, + "restricted_roles": null +} +EOF +} \ No newline at end of file