Téléverser les fichiers vers "docker"
C:\DevOpsProject\docker
This commit is contained in:
41
docker/prometheus.yml
Normal file
41
docker/prometheus.yml
Normal 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: []
|
||||
Reference in New Issue
Block a user