Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
config
Commits
c32336a6
Commit
c32336a6
authored
1 month ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Conflate "deferred" and "active" Postfix queues for alerting
parent
1e7ed15b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/ai3-prometheus/templates/rules/alerts_postfix.conf.yml
+4
-4
4 additions, 4 deletions
roles/ai3-prometheus/templates/rules/alerts_postfix.conf.yml
with
4 additions
and
4 deletions
roles/ai3-prometheus/templates/rules/alerts_postfix.conf.yml
+
4
−
4
View file @
c32336a6
...
@@ -11,7 +11,7 @@ groups:
...
@@ -11,7 +11,7 @@ groups:
# The postfix-out instances should be allowed to have a large
# The postfix-out instances should be allowed to have a large
# deferred queue for outbound messages.
# deferred queue for outbound messages.
-
alert
:
PostfixQueueTooLarge
-
alert
:
PostfixQueueTooLarge
expr
:
postfix_queue_length{postfix_instance="postfix-out",queue=
"
deferred"} >
5000
expr
:
postfix_queue_length{postfix_instance="postfix-out",queue=
~"(
deferred
|active)
"} >
5000
for
:
10m
for
:
10m
labels
:
labels
:
severity
:
warn
severity
:
warn
...
@@ -25,7 +25,7 @@ groups:
...
@@ -25,7 +25,7 @@ groups:
deliveries.
deliveries.
runbook
:
'
[[
alert_runbook_fmt
|
format("PostfixQueueTooLarge")
]]'
runbook
:
'
[[
alert_runbook_fmt
|
format("PostfixQueueTooLarge")
]]'
-
alert
:
PostfixQueueTooLarge
-
alert
:
PostfixQueueTooLarge
expr
:
sum(postfix_queue_length{postfix_instance="postfix-out",queue=
"
deferred"}) >
10000
expr
:
sum(postfix_queue_length{postfix_instance="postfix-out",queue=
~"(
deferred
|active)
"}) >
10000
for
:
10m
for
:
10m
labels
:
labels
:
severity
:
page
severity
:
page
...
@@ -71,7 +71,7 @@ groups:
...
@@ -71,7 +71,7 @@ groups:
# all. Note the longer timeout: it is fine for queues like
# all. Note the longer timeout: it is fine for queues like
# 'active' or 'incoming' to accomodate temporary spikes.
# 'active' or 'incoming' to accomodate temporary spikes.
-
alert
:
PostfixUnexpectedQueueTooLarge
-
alert
:
PostfixUnexpectedQueueTooLarge
expr
:
postfix_queue_length{queue!
="
deferred"} >
50
expr
:
postfix_queue_length{queue!
~"(
deferred
|active)
"} >
50
for
:
1h
for
:
1h
labels
:
labels
:
severity
:
page
severity
:
page
...
@@ -85,7 +85,7 @@ groups:
...
@@ -85,7 +85,7 @@ groups:
service malfunctioning, or having capacity issues.
service malfunctioning, or having capacity issues.
runbook
:
'
[[
alert_runbook_fmt
|
format("PostfixQueueTooLarge")
]]'
runbook
:
'
[[
alert_runbook_fmt
|
format("PostfixQueueTooLarge")
]]'
-
alert
:
PostfixUnexpectedQueueTooLarge
-
alert
:
PostfixUnexpectedQueueTooLarge
expr
:
sum(postfix_queue_length{queue!
="
deferred"}) by (postfix_instance, queue) >
100
expr
:
sum(postfix_queue_length{queue!
~"(
deferred
|active)
"}) by (postfix_instance, queue) >
100
for
:
1h
for
:
1h
labels
:
labels
:
severity
:
page
severity
:
page
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment