- Added AnonBot service to docker-compose with resource limits and environment variables. - Updated Makefile to include commands for AnonBot logs, restart, and dependency checks. - Enhanced Grafana dashboards with AnonBot health metrics and database connection statistics. - Implemented AnonBot status retrieval in the message sender for improved monitoring. - Updated Prometheus configuration to scrape metrics from AnonBot service.
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
|
|
rule_files:
|
|
# - "first_rules.yml"
|
|
# - "second_rules.yml"
|
|
|
|
scrape_configs:
|
|
- job_name: 'prometheus'
|
|
static_configs:
|
|
- targets: ['localhost:9090']
|
|
|
|
# Job для мониторинга инфраструктуры
|
|
- job_name: 'infrastructure'
|
|
static_configs:
|
|
- targets: ['bots_server_monitor:9091'] # Порт для метрик сервера мониторинга
|
|
metrics_path: '/metrics'
|
|
scrape_interval: 30s
|
|
scrape_timeout: 10s
|
|
honor_labels: true
|
|
|
|
- job_name: 'telegram-helper-bot'
|
|
static_configs:
|
|
- targets: ['bots_telegram_bot:8080'] # Локальный бот на порту 8080
|
|
labels:
|
|
bot_name: 'telegram-helper-bot'
|
|
environment: 'production'
|
|
service: 'telegram-bot'
|
|
metrics_path: '/metrics'
|
|
scrape_interval: 15s
|
|
scrape_timeout: 10s
|
|
honor_labels: true
|
|
|
|
- job_name: 'anon-bot'
|
|
static_configs:
|
|
- targets: ['bots_anon_bot:8081'] # AnonBot на порту 8081
|
|
labels:
|
|
bot_name: 'anon-bot'
|
|
environment: 'production'
|
|
service: 'anon-bot'
|
|
metrics_path: '/metrics'
|
|
scrape_interval: 15s
|
|
scrape_timeout: 10s
|
|
honor_labels: true
|
|
|
|
alerting:
|
|
alertmanagers:
|
|
- static_configs:
|
|
- targets:
|
|
# - alertmanager:9093
|