docs: add monitoring alerting updates

This commit is contained in:
2026-06-25 14:11:23 +03:30
parent 4cf06da0a8
commit a74909be25
10 changed files with 518 additions and 18 deletions
+40 -3
View File
@@ -9,7 +9,7 @@ The goal is to ensure that all critical services can be restored after hardware
Current state:
```text
Backup v2 operational
Backup v5.3 production
```
---
@@ -60,6 +60,34 @@ Operational
---
### Backup v5.3
Implemented:
* PostgreSQL backup using `pg_dumpall`
* MSSQL backup using `sqlcmd` and `docker cp`
* Gitea backup
* BaGet backup
* OpenProject backup
* Docker configuration backup
* Final compressed archive
* Lock file protection
* Disk space validation
* Central backup logging
* Structured failure handling
* Prometheus Textfile Collector metrics output
* Backup success and failure tracking
* Duration and size monitoring
* Historical logging
Status:
```text
Production
```
---
## Backup Priorities
### Critical
@@ -351,7 +379,7 @@ Suggested Structure:
Current cleanup behavior:
* Backup v2 monitors available disk space.
* Backup v5.3 monitors available disk space.
* If disk space is low, the oldest backups are deleted automatically.
* Cleanup is logged.
@@ -431,13 +459,21 @@ Validation results:
## Monitoring Integration
Backup v2 exports metrics for Prometheus.
Backup v5.3 exports metrics for Prometheus.
Current metrics:
* Backup success
* Backup duration
* Backup size
* Backup timestamp
Metric names:
* `silverlinux_backup_success`
* `silverlinux_backup_duration_seconds`
* `silverlinux_backup_size_bytes`
* `silverlinux_backup_timestamp_seconds`
Export path:
@@ -546,6 +582,7 @@ Verify:
* docs/server.md
* docs/security.md
* docs/secrets.md
* docs/monitoring.md
* postgres/README.md
* gitea/README.md
* openproject/README.md