Files
microdao-daarion/monitoring/prometheus/prometheus.yml
Apple 3de3c8cb36 feat: Add presence heartbeat for Matrix online status
- matrix-gateway: POST /internal/matrix/presence/online endpoint
- usePresenceHeartbeat hook with activity tracking
- Auto away after 5 min inactivity
- Offline on page close/visibility change
- Integrated in MatrixChatRoom component
2025-11-27 00:19:40 -08:00

200 lines
5.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Prometheus Configuration for DAARION Platform
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
cluster: 'daarion-prod'
environment: 'production'
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets: []
# - alertmanager:9093
# Load rules once and periodically evaluate them
rule_files:
- "/etc/prometheus/alerts/*.yml"
# Scrape configurations
scrape_configs:
# DAGI Router
- job_name: 'dagi-router'
static_configs:
- targets: ['dagi-router:9102']
labels:
service: 'dagi-router'
node_id: 'node-1-hetzнер-gex44'
env: 'production'
cluster: 'daarion-prod'
metrics_path: '/metrics'
scrape_interval: 10s
# Telegram Gateway
- job_name: 'telegram-gateway'
static_configs:
- targets: ['telegram-gateway:8000']
labels:
service: 'telegram-gateway'
node_id: 'node-1-hetzнер-gex44'
env: 'production'
cluster: 'daarion-prod'
metrics_path: '/metrics'
scrape_interval: 10s
# DAGI Gateway
- job_name: 'dagi-gateway'
static_configs:
- targets: ['dagi-gateway:9300']
labels:
service: 'dagi-gateway'
node_id: 'node-1-hetzнер-gex44'
env: 'production'
cluster: 'daarion-prod'
metrics_path: '/metrics'
scrape_interval: 10s
# RBAC Service
- job_name: 'dagi-rbac'
static_configs:
- targets: ['dagi-rbac:9200']
labels:
service: 'dagi-rbac'
node_id: 'node-1-hetzнер-gex44'
env: 'production'
cluster: 'daarion-prod'
metrics_path: '/metrics'
scrape_interval: 15s
# CrewAI Service
- job_name: 'dagi-crewai'
static_configs:
- targets: ['dagi-crewai:9010']
labels:
service: 'dagi-crewai'
node_id: 'node-1-hetzнер-gex44'
env: 'production'
cluster: 'daarion-prod'
metrics_path: '/metrics'
scrape_interval: 15s
# Parser Service
- job_name: 'dagi-parser'
static_configs:
- targets: ['dagi-parser:9400']
labels:
service: 'dagi-parser'
node_id: 'node-1-hetzner-gex44'
env: 'production'
cluster: 'daarion-prod'
metrics_path: '/metrics'
scrape_interval: 20s
# Vision Encoder
- job_name: 'dagi-vision-encoder'
static_configs:
- targets: ['dagi-vision-encoder:8001']
labels:
service: 'dagi-vision-encoder'
node_id: 'node-1-hetzner-gex44'
env: 'production'
cluster: 'daarion-prod'
metrics_path: '/metrics'
scrape_interval: 20s
# DevTools
- job_name: 'dagi-devtools'
static_configs:
- targets: ['dagi-devtools:8008']
labels:
service: 'dagi-devtools'
node_id: 'node-1-hetzner-gex44'
env: 'production'
cluster: 'daarion-prod'
metrics_path: '/metrics'
scrape_interval: 15s
# STT Service
- job_name: 'dagi-stt'
static_configs:
- targets: ['dagi-stt:9000']
labels:
service: 'dagi-stt'
node_id: 'node-1-hetzner-gex44'
env: 'production'
cluster: 'daarion-prod'
metrics_path: '/metrics'
scrape_interval: 20s
# TTS Service
- job_name: 'dagi-tts'
static_configs:
- targets: ['dagi-tts:9101']
labels:
service: 'dagi-tts'
node_id: 'node-1-hetzner-gex44'
env: 'production'
cluster: 'daarion-prod'
metrics_path: '/metrics'
scrape_interval: 20s
# Qdrant Vector DB
- job_name: 'dagi-qdrant'
static_configs:
- targets: ['dagi-qdrant:6333']
labels:
service: 'dagi-qdrant'
node_id: 'node-1-hetzner-gex44'
env: 'production'
cluster: 'daarion-prod'
metrics_path: '/metrics'
scrape_interval: 30s
# NATS
- job_name: 'nats'
static_configs:
- targets: ['nats:8222']
labels:
service: 'nats'
node_id: 'node-1-hetzner-gex44'
env: 'production'
cluster: 'daarion-prod'
metrics_path: '/varz'
scrape_interval: 15s
# PostgreSQL (if exporter is installed)
- job_name: 'postgres'
static_configs:
- targets: ['dagi-postgres:5432']
labels:
service: 'postgres'
node_id: 'node-1-hetzner-gex44'
env: 'production'
cluster: 'daarion-prod'
metrics_path: '/metrics'
scrape_interval: 30s
# Prometheus self-monitoring
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
labels:
service: 'prometheus'
node_id: 'node-1-hetzner-gex44'
env: 'production'
cluster: 'daarion-prod'
# Docker containers (if node_exporter is installed)
- job_name: 'node-exporter'
static_configs:
- targets: ['host.docker.internal:9100']
labels:
service: 'node-exporter'
node_id: 'node-1-hetzner-gex44'
env: 'production'
cluster: 'daarion-prod'
scrape_interval: 30s