Skip to content

Commit

Permalink
📝 Ajout fichiers manquants pour chapitre 16
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannig committed Nov 20, 2021
1 parent 4f15932 commit 3c49cdd
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
17 changes: 17 additions & 0 deletions chapitre-16/rules/flask.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
groups:
- name: FlaskErrors
rules:
- alert: HTTPError
expr: >
sum(
rate(
flask_http_request_duration_seconds_count{
status=~"[45].."
}[5m]
)
) > 0
for: 5m
labels:
severity: critical
annotations:
summary: Too much 4xx or 5xx errors on Flask apps
22 changes: 22 additions & 0 deletions chapitre-16/rules/spring-boot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
groups:
- name: SpringBootAlerts
rules:
- alert: HTTPError
expr: >
sum(
rate(
http_server_requests_seconds_count{status=~"[45].."}[5m]
)
) > 0
for: 5m
labels:
severity: critical
annotations:
summary: Too much 4xx or 5xx errors on Spring boot apps
- alert: LogError
expr: sum(rate(logback_events_total{level="error"}[5m])) > 0
for: 5m
labels:
severity: critical
annotations:
summary: Too much log error activity since 5 minutes
File renamed without changes.

0 comments on commit 3c49cdd

Please sign in to comment.