Senior
18 novembre 2026Trova il bug: DevOps
Uno snippet di codice. Trova il bug, o dimostra che non ce n'è.
yaml
1groups:
2 - name: api-availability
3 interval: 30s
4 rules:
5 - alert: HighErrorRate
6 expr: |
7 sum(rate(http_requests_total{status=~"5.."}[5m]))
8 /
9 sum(rate(http_requests_total[5m])) > 0.05
10 for: 10m
11 labels:
12 severity: warning
13 team: backend
14 annotations:
15 summary: "High error rate on {{ $labels.service }}"
16 description: "Error rate is {{ $value | humanizePercentage }} over 5m"Clicca sulle righe che causano il problema.
Il tuo verdetto
Un tentativo al giorno. La risposta appare subito dopo.
Mantieni la tua serie
Crea un account per conservare la tua serie e seguire i tuoi progressi.