spring-petclinic/monitoring/prometheus/prometheus.yml

39 lines
835 B
YAML
Raw Normal View History

2025-02-03 09:27:33 +01:00
global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
- "pipeline-rules.yml"
scrape_configs:
# Pipeline metrics
- job_name: 'petclinic-pipeline'
static_configs:
2025-02-03 11:20:42 +01:00
- targets: ['pushgateway:9091']
2025-02-03 09:27:33 +01:00
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'
2025-02-03 11:20:42 +01:00
metrics_path: '/metrics'
2025-02-03 09:27:33 +01:00
static_configs:
- targets: ['mysql:3306']