mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-26 00:32:34 +03:00
add docs
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
### Requests
|
||||||
|
|
||||||
Метрики приложения в формате prometheus:
|
Метрики приложения в формате prometheus:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
@@ -16,3 +18,13 @@ curl --request GET \
|
|||||||
curl --request GET \
|
curl --request GET \
|
||||||
--url 'http://localhost:8081/spring-metrics/<metric-name>'
|
--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