This commit is contained in:
Denis Savosin
2024-10-07 13:21:41 +07:00
parent 01ce385c30
commit 02c419f745

View File

@@ -1,3 +1,5 @@
### Requests
Метрики приложения в формате prometheus:
```shell
@@ -16,3 +18,13 @@ curl --request GET \
curl --request GET \
--url 'http://localhost:8081/spring-metrics/<metric-name>'
```
### Prometheus scrape
```yaml
scrape_configs:
- job_name: spring-boot-demo
metrics_path: /metrics
static_configs:
- targets: [spring-boot-demo-demo-1:8081]
```