mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-25 16:22:35 +03:00
671 B
671 B
Requests
Метрики приложения в формате prometheus:
curl --request GET \
--url 'http://localhost:8081/metrics'
Список доступных для отображения метрик приложения:
curl --request GET \
--url 'http://localhost:8081/spring-metrics'
Значение конкретной метрики:
curl --request GET \
--url 'http://localhost:8081/spring-metrics/<metric-name>'
Prometheus scrape
scrape_configs:
- job_name: spring-boot-demo
metrics_path: /metrics
static_configs:
- targets: [spring-boot-demo-demo-1:8081]