mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-25 16:22:35 +03:00
add docs
This commit is contained in:
@@ -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]
|
||||
```
|
||||
Reference in New Issue
Block a user