Initial commit: Add infrastructure and bot project
This commit is contained in:
38
infra/prometheus/prometheus.yml
Normal file
38
infra/prometheus/prometheus.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
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: ['host.docker.internal:9091'] # Порт для метрик сервера мониторинга
|
||||
metrics_path: '/metrics'
|
||||
scrape_interval: 30s
|
||||
scrape_timeout: 10s
|
||||
honor_labels: true
|
||||
|
||||
- job_name: 'telegram-helper-bot'
|
||||
static_configs:
|
||||
- targets: ['telegram-helper-bot:8080'] # Или IP адрес сервера с ботом
|
||||
metrics_path: '/metrics'
|
||||
scrape_interval: 15s
|
||||
scrape_timeout: 10s
|
||||
honor_labels: true
|
||||
labels:
|
||||
bot_name: 'telegram-helper-bot'
|
||||
environment: 'production'
|
||||
service: 'telegram-bot'
|
||||
alerting:
|
||||
alertmanagers:
|
||||
- static_configs:
|
||||
- targets:
|
||||
# - alertmanager:9093
|
||||
Reference in New Issue
Block a user