Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stale compliance monitor #129

Merged
merged 9 commits into from
Aug 23, 2024
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
}
Loading