Spaces:
Running
Running
Create monitoring/prometheus.yml
Browse files- monitoring/prometheus.yml +64 -0
monitoring/prometheus.yml
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# 🛡️ AntiScam AI Pro - Configuración Prometheus
|
2 |
+
# Monitoreo y métricas de la aplicación
|
3 |
+
|
4 |
+
global:
|
5 |
+
scrape_interval: 15s
|
6 |
+
evaluation_interval: 15s
|
7 |
+
|
8 |
+
# Reglas de alertas
|
9 |
+
rule_files:
|
10 |
+
- "alerts.yml"
|
11 |
+
|
12 |
+
# Configuración de Alertmanager
|
13 |
+
alerting:
|
14 |
+
alertmanagers:
|
15 |
+
- static_configs:
|
16 |
+
- targets:
|
17 |
+
- alertmanager:9093
|
18 |
+
|
19 |
+
# Trabajos de scraping
|
20 |
+
scrape_configs:
|
21 |
+
# Prometheus self-monitoring
|
22 |
+
- job_name: 'prometheus'
|
23 |
+
static_configs:
|
24 |
+
- targets: ['localhost:9090']
|
25 |
+
|
26 |
+
# AntiScam AI aplicación
|
27 |
+
- job_name: 'antiscam-ai'
|
28 |
+
static_configs:
|
29 |
+
- targets: ['antiscam-ai:7860']
|
30 |
+
metrics_path: '/metrics'
|
31 |
+
scrape_interval: 30s
|
32 |
+
scrape_timeout: 10s
|
33 |
+
|
34 |
+
# PostgreSQL
|
35 |
+
- job_name: 'postgres'
|
36 |
+
static_configs:
|
37 |
+
- targets: ['postgres-exporter:9187']
|
38 |
+
|
39 |
+
# Redis
|
40 |
+
- job_name: 'redis'
|
41 |
+
static_configs:
|
42 |
+
- targets: ['redis-exporter:9121']
|
43 |
+
|
44 |
+
# Nginx
|
45 |
+
- job_name: 'nginx'
|
46 |
+
static_configs:
|
47 |
+
- targets: ['nginx-exporter:9113']
|
48 |
+
|
49 |
+
# Node Exporter (métricas del sistema)
|
50 |
+
- job_name: 'node'
|
51 |
+
static_configs:
|
52 |
+
- targets: ['node-exporter:9100']
|
53 |
+
|
54 |
+
# cAdvisor (métricas de contenedores)
|
55 |
+
- job_name: 'cadvisor'
|
56 |
+
static_configs:
|
57 |
+
- targets: ['cadvisor:8080']
|
58 |
+
|
59 |
+
# Configuración remota de almacenamiento (opcional)
|
60 |
+
# remote_write:
|
61 |
+
# - url: "https://prometheus.example.com/api/v1/write"
|
62 |
+
# basic_auth:
|
63 |
+
# username: "user"
|
64 |
+
# password: "password"
|