# Application Alerting {#application-alerting}


Configure alerts for critical application events.


## Alert Channels {#alert-channels}


| Channel   | Configuration      |
| --------- | ------------------ |
| Email     | SMTP configuration |
| Slack     | Webhook URL        |
| PagerDuty | Integration key    |
| Discord   | Webhook URL        |


## Recommended Alerts {#recommended-alerts}



### Critical {#critical}


| Alert           | Condition               | Action         |
| --------------- | ----------------------- | -------------- |
| API Down        | Health check fails 3min | Page on-call   |
| Database Down   | No DB connection        | Page on-call   |
| High Error Rate | 5xx > 5% for 5min       | Page on-call   |
| Disk Full       | Disk > 90%              | Alert ops team |


### Warning {#warning}


| Alert             | Condition             | Action        |
| ----------------- | --------------------- | ------------- |
| High Latency      | P99 > 2s for 10min    | Notify team   |
| Memory Usage High | > 80% for 15min       | Investigate   |
| Queue Backlog     | > 1000 pending jobs   | Scale workers |
| SSL Expiring      | Certificate < 14 days | Renew cert    |


### Info {#info}


| Alert               | Condition             | Action |
| ------------------- | --------------------- | ------ |
| Deployment Complete | New version deployed  | Verify |
| Backup Complete     | Daily backup finished | Log    |


## Grafana Alerting {#grafana-alerting}


```yaml
groups:
  - name: gauzy-alerts
    rules:
      - alert: APIHighErrorRate
        expr: rate(http_requests_total{status=~"5.."}[5m]) / rate(http_requests_total[5m]) > 0.05
        for: 5m
        labels:
          severity: critical
        annotations:
          summary: "API error rate > 5%"
```


## Related Pages {#related-pages}


- [Grafana Dashboards](https://sourcey-gauzy.pages.dev/observability/grafana-dashboards/index.md) — dashboards
- [Prometheus Metrics](https://sourcey-gauzy.pages.dev/observability/prometheus-metrics/index.md) — metrics
- [Health Checks](https://sourcey-gauzy.pages.dev/observability/health-checks/index.md) — health monitoring
