From 02c419f7453cd7d2145124e54f9ee43cdc196bb3 Mon Sep 17 00:00:00 2001 From: Denis Savosin Date: Mon, 7 Oct 2024 13:21:41 +0700 Subject: [PATCH] add docs --- doc/examples/management/metrics.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/examples/management/metrics.md b/doc/examples/management/metrics.md index 4509c11..5117872 100644 --- a/doc/examples/management/metrics.md +++ b/doc/examples/management/metrics.md @@ -1,3 +1,5 @@ +### Requests + Метрики приложения в формате prometheus: ```shell @@ -16,3 +18,13 @@ curl --request GET \ curl --request GET \ --url 'http://localhost:8081/spring-metrics/' ``` + +### Prometheus scrape + +```yaml +scrape_configs: + - job_name: spring-boot-demo + metrics_path: /metrics + static_configs: + - targets: [spring-boot-demo-demo-1:8081] +``` \ No newline at end of file