Files
mtusi2026lab6/prometheus.yml
T

13 lines
336 B
YAML

global:
scrape_interval: 15s
scrape_configs:
- job_name: 'otel-collector'
static_configs:
- targets: ['otel-collector:8889']
# Добавляем сбор метрик с API (Spring Boot Actuator)
- job_name: 'messenger-api'
metrics_path: '/actuator/prometheus'
static_configs:
- targets: ['api:8080']