Files
mtusi2026lab7/prometheus.yml
T
2026-11-24 19:50:03 +03:00

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']