Skip to content

Commit

Permalink
Stale compliance monitor (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryfan01234 authored Aug 23, 2024
1 parent c02fa48 commit 8251175
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions modules/indexer_monitors/precautionary_monitors.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <<EOF
{
"id": 152007506,
"name": "[${var.environment}] Compliance data stale.",
"type": "query alert",
"query": "max(last_10m):max:roundtable.update_compliance_data.num_active_addresses_with_stale_compliance{env:${var.environment}} + max:roundtable.update_compliance_data.num_inactive_addresses_with_stale_compliance{env:${var.environment}} > 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
}

0 comments on commit 8251175

Please sign in to comment.