Téléverser les fichiers vers "docker"

C:\DevOpsProject\docker
This commit is contained in:
2026-01-23 13:31:45 +00:00
commit ec3b72f62c
4 changed files with 205 additions and 0 deletions

41
docker/prometheus.yml Normal file
View File

@@ -0,0 +1,41 @@
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
cluster: 'windows-devops'
environment: 'development'
# Règles d'alerte
rule_files:
# - "alerts.yml"
# Configuration de scraping
scrape_configs:
# Scraper l'application FastAPI
- job_name: 'fastapi-app'
static_configs:
- targets: ['app:8000']
labels:
app: 'devops-app'
component: 'backend'
tier: 'application'
# Scraper Prometheus lui-même
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
labels:
component: 'monitoring'
# Découverte de service Docker
- job_name: 'docker'
static_configs:
- targets: ['host.docker.internal:9323']
metrics_path: /metrics
scheme: http
# Alerting (exemple)
# alerting:
# alertmanagers:
# - static_configs:
# - targets: []