spring-petclinic/monitoring/prometheus/prometheus.yml
2025-02-03 09:27:33 +01:00

38 lines
920 B
YAML

global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
- "pipeline-rules.yml"
scrape_configs:
# Pipeline metrics
- job_name: 'petclinic-pipeline'
static_configs:
- targets: ['pushgateway:9091'] # Changé de localhost:9091 à pushgateway:9091
labels:
application: 'petclinic'
type: 'pipeline'
# PowerAPI metrics
- job_name: 'powerapi'
static_configs:
- targets: ['powerapi:9091']
metrics_path: '/metrics'
# Node Exporter metrics
- job_name: 'node'
static_configs:
- targets: ['node-exporter:9100']
# Application metrics
- job_name: 'spring-petclinic'
metrics_path: '/actuator/prometheus'
static_configs:
- targets: ['host.docker.internal:8080']
# Database metrics
- job_name: 'mysql'
metrics_path: '/metrics' # Ajouté le chemin des métriques
static_configs:
- targets: ['mysql:3306']