mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-26 00:32:34 +03:00
expose prometheus metrics, add health endpoint
This commit is contained in:
18
doc/examples/management/metrics.md
Normal file
18
doc/examples/management/metrics.md
Normal file
@@ -0,0 +1,18 @@
|
||||
Метрики приложения в формате prometheus:
|
||||
|
||||
```shell
|
||||
curl --request GET \
|
||||
--url 'http://localhost:8081/metrics'
|
||||
```
|
||||
|
||||
Список доступных для отображения метрик приложения:
|
||||
```shell
|
||||
curl --request GET \
|
||||
--url 'http://localhost:8081/spring-metrics'
|
||||
```
|
||||
|
||||
Значение конкретной метрики:
|
||||
```shell
|
||||
curl --request GET \
|
||||
--url 'http://localhost:8081/spring-metrics/<metric-name>'
|
||||
```
|
||||
Reference in New Issue
Block a user