mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-13 13:21:11 +00:00
38 lines
835 B
YAML
38 lines
835 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']
|
|
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'
|
|
static_configs:
|
|
- targets: ['mysql:3306']
|