Implement user-specific question numbering and update database schema. Added triggers for automatic question numbering and adjustments upon deletion. Enhanced CRUD operations to manage user_question_number effectively.

This commit is contained in:
2025-09-06 18:35:12 +03:00
parent 50be010026
commit 596a2fa813
111 changed files with 16847 additions and 65 deletions

22
prometheus.yml Normal file
View File

@@ -0,0 +1,22 @@
# Конфигурация Prometheus для AnonBot
global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"
scrape_configs:
# AnonBot метрики
- job_name: 'anon-bot'
static_configs:
- targets: ['localhost:8081']
metrics_path: '/metrics'
scrape_interval: 30s
scrape_timeout: 10s
# Prometheus сам по себе
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']