Skip to content

Commit

Permalink
fix: Add for to alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
adinhodovic committed Nov 7, 2023
1 parent 4c3be82 commit cf6eae2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions alerts/alerts.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
labels: {
severity: 'warning',
},
'for': '1m',
annotations: {
summary: 'An ArgoCD Application has Failed to Sync.',
description: 'The application {{ $labels.dest_server }}/{{ $labels.project }}/{{ $labels.name }} has failed to sync with the status {{ $labels.phase }} the past %s.' % $._config.argoCdAppSyncInterval,
Expand All @@ -105,6 +106,7 @@
)
) by (job, exported_service, succeeded) > 0
||| % $._config,
'for': '1m',
labels: {
severity: 'warning',
},
Expand Down
2 changes: 2 additions & 0 deletions prometheus_alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
)
)
) by (job, dest_server, project, name, phase) > 0
"for": "1m"
"labels":
"severity": "warning"
- "alert": "ArgoCdNotificationDeliveryFailed"
Expand All @@ -84,5 +85,6 @@
)
)
) by (job, exported_service, succeeded) > 0
"for": "1m"
"labels":
"severity": "warning"

0 comments on commit cf6eae2

Please sign in to comment.