This is an automated email from the ASF dual-hosted git repository.
xianjingfeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git
The following commit(s) were added to refs/heads/master by this push:
new 16942c21 [MINOR] doc: fix metrics document (#1040)
16942c21 is described below
commit 16942c21b9e1fad070a3ff1fa313c6f93f2bedc2
Author: zhengchenyu <[email protected]>
AuthorDate: Thu Jul 27 09:56:26 2023 +0800
[MINOR] doc: fix metrics document (#1040)
---
docs/metrics_guide.md | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/docs/metrics_guide.md b/docs/metrics_guide.md
index 4ad5a6d7..c0a5a64e 100644
--- a/docs/metrics_guide.md
+++ b/docs/metrics_guide.md
@@ -27,16 +27,17 @@ This document will introduce how to collect metrics from
servers.
### Fetch metrics by REST API
``` shell
# For json format
-curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/metric # fetch all metrics
-curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/metric/server # only fetch
server metrics
-curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/metric/grpc # only fetch grpc
metrics
-curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/metric/jvm # only fetch jvm
metrics
+curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/metrics # fetch all metrics
+curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/metrics/all # fetch all metrics
+curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/metrics/server # only fetch
server metrics
+curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/metrics/grpc # only fetch grpc
metrics
+curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/metrics/jvm # only fetch jvm
metrics
# For Prometheus format
-curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/prometheus/ # fetch all metrics
-curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/prometheus/metric/server # only
fetch server metrics
-curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/prometheus/metric/grpc # only
fetch grpc metrics
-curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/prometheus/metric/jvm # only
fetch jvm metrics
+curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/prometheus/metrics/all # fetch
all metrics
+curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/prometheus/metrics/server #
only fetch server metrics
+curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/prometheus/metrics/grpc # only
fetch grpc metrics
+curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/prometheus/metrics/jvm # only
fetch jvm metrics
```