Versions stable (inachevée mais prête à un déploiement en prod)

This commit is contained in:
DahoudG
2024-12-15 16:35:50 +00:00
parent a276ac2318
commit d2cb9da730
126 changed files with 13559 additions and 631 deletions

View File

@@ -0,0 +1,61 @@
# Configuration Prometheus corrigée
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
monitor: 'lions-portal-monitor'
rule_files:
- "rules/*rules.yml"
- "alerts/*alerts.yml"
alerting:
alertmanagers:
- static_configs:
- targets:
- 'alertmanager:9093'
scrape_configs:
# Application Quarkus metrics
- job_name: 'quarkus'
metrics_path: '/q/metrics'
static_configs:
- targets: ['quarkus-app:8080']
scrape_interval: 10s
# Postgres Exporter metrics
- job_name: 'postgres'
static_configs:
- targets: ['postgres-exporter:9187']
# Nginx metrics
- job_name: 'nginx'
static_configs:
- targets: ['nginx-exporter:9113']
# Node Exporter metrics (system metrics)
- job_name: 'node'
static_configs:
- targets: ['node-exporter:9100']
# Prometheus self-monitoring
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
# Nginx Status Page
- job_name: 'nginx-status'
metrics_path: /stub_status
static_configs:
- targets: ['nginx:80']
# Grafana metrics
- job_name: 'grafana'
static_configs:
- targets: ['grafana:3000']
# Node Exporter Host metrics
- job_name: 'node_exporter_host'
static_configs:
- targets: ['node-exporter:9100']
labels:
instance: 'host'