-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OTE-821] Add roundtable monitors for update affiliate info and updat…
…e wallet total volume (#134) * upgrade kafka version and reduce session timeout * Add partition level logging for mainnet MSK * Fix terraform apply resource conflict * Add partition offset plot to vulcan dashboard * dummy * Add stale compliance data monitor for mainnet * add roundtable monitors for update affiliate info and update wallet total volume
- Loading branch information
1 parent
bd21af5
commit 30ef8a6
Showing
2 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
resource "datadog_monitor_json" "roundtable_update_affiliate_info_persistent_cache_stale" { | ||
monitor = <<EOF | ||
{ | ||
"name": "[${var.environment}] Update affiliate info roundtable is not running successfully.", | ||
"type": "query alert", | ||
"query": "max(last_5m):avg:rroundtable.persistent_cache_affiliateInfoUpdateTime_lag_seconds{env:${var.environment}} > 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 = <<EOF | ||
{ | ||
"name": "[${var.environment}] Update wallet total volume roundtable is not running successfully.", | ||
"type": "query alert", | ||
"query": "max(last_5m):avg:roundtable.persistent_cache_totalVolumeUpdateTime_lag_seconds{env:${var.environment}} > 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 | ||
} |