Enhance Makefile and update metrics handling in bot

- Added new commands in the Makefile for restarting individual services: `restart-bot`, `restart-prometheus`, and `restart-grafana`.
- Updated Prometheus and Grafana dashboard expressions for better metrics aggregation.
- Removed the `main_with_metrics.py` file and integrated metrics handling directly into the main bot file.
- Refactored middleware to improve metrics tracking and error handling across message and callback processing.
- Optimized metrics recording with enhanced bucket configurations for better performance monitoring.
This commit is contained in:
2025-08-29 18:23:17 +03:00
parent c68db87901
commit f097d69dd4
13 changed files with 166 additions and 408 deletions

1
.gitignore vendored
View File

@@ -2,6 +2,7 @@
/database/tg-bot-database.db
/database/tg-bot-database.db-shm
/database/tg-bot-database.db-wm
/database/tg-bot-database.db-wal
/database/test.db
/database/test.db-shm
/database/test.db-wal