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:
13
Makefile
13
Makefile
@@ -36,6 +36,19 @@ restart: ## Перезапустить все сервисы (с пересбо
|
||||
docker-compose build
|
||||
docker-compose up -d
|
||||
|
||||
restart-bot: ## Перезапустить только бота
|
||||
docker-compose stop telegram-bot
|
||||
docker-compose build telegram-bot
|
||||
docker-compose up -d telegram-bot
|
||||
|
||||
restart-prometheus: ## Перезапустить только Prometheus
|
||||
docker-compose stop prometheus
|
||||
docker-compose up -d prometheus
|
||||
|
||||
restart-grafana: ## Перезапустить только Grafana
|
||||
docker-compose stop grafana
|
||||
docker-compose up -d grafana
|
||||
|
||||
status: ## Показать статус контейнеров
|
||||
docker-compose ps
|
||||
|
||||
|
||||
Reference in New Issue
Block a user