expose prometheus metrics, add health endpoint

This commit is contained in:
Denis Savosin
2024-10-07 11:04:00 +07:00
parent 89080e4ac4
commit 983a9badf2
5 changed files with 55 additions and 10 deletions

View File

@@ -0,0 +1,4 @@
```shell
curl --request GET \
--url 'http://localhost:8080/health'
```

View 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>'
```