Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/apollo_dashboard/resources/dev_grafana_alerts.json
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,7 @@
},
{
"name": "state_sync_stuck",
"title": "State sync stuck",
"title": "State Sync Stuck",
"ruleGroup": "state_sync",
"expr": "increase(apollo_state_sync_class_manager_marker{cluster=~\"$cluster\", namespace=~\"$namespace\"}[120s])",
"conditions": [
Expand Down Expand Up @@ -1794,7 +1794,7 @@
},
{
"name": "state_sync_stuck_long_time",
"title": "State sync stuck",
"title": "State Sync Stuck Long Time",
"ruleGroup": "state_sync",
"expr": "increase(apollo_state_sync_class_manager_marker{cluster=~\"$cluster\", namespace=~\"$namespace\"}[1800s])",
"conditions": [
Expand Down
6 changes: 3 additions & 3 deletions crates/apollo_dashboard/src/alert_scenarios/sync_halt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ fn get_state_sync_stuck(
alert_severity: AlertSeverity,
) -> Alert {
Alert::new(
alert_name.to_lowercase().replace(' ', "_"),
alert_name,
"State sync stuck",
AlertGroup::StateSync,
format!(
"increase({}[{}s])",
Expand All @@ -66,12 +66,12 @@ fn get_state_sync_stuck(
pub(crate) fn get_state_sync_stuck_vec() -> Vec<Alert> {
vec![
get_state_sync_stuck(
"state_sync_stuck",
"State Sync Stuck",
Duration::from_secs(2 * SECS_IN_MIN),
AlertSeverity::Regular,
),
get_state_sync_stuck(
"state_sync_stuck_long_time",
"State Sync Stuck Long Time",
Duration::from_secs(30 * SECS_IN_MIN),
AlertSeverity::Regular,
),
Expand Down
Loading