You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by me...@apache.org on 2020/02/28 06:11:14 UTC
[incubator-apisix] branch master updated: doc: added `curl` example
for plugin `prometheus` . (#1172)
This is an automated email from the ASF dual-hosted git repository.
membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 7f7b4a5 doc: added `curl` example for plugin `prometheus` . (#1172)
7f7b4a5 is described below
commit 7f7b4a5376c5949c4694dab406ec9499a0588c4e
Author: 温铭 WenMing <mo...@gmail.com>
AuthorDate: Fri Feb 28 14:11:07 2020 +0800
doc: added `curl` example for plugin `prometheus` . (#1172)
---
doc/plugins/prometheus-cn.md | 5 ++++-
doc/plugins/prometheus.md | 3 +++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/doc/plugins/prometheus-cn.md b/doc/plugins/prometheus-cn.md
index 851d40d..139d9bf 100644
--- a/doc/plugins/prometheus-cn.md
+++ b/doc/plugins/prometheus-cn.md
@@ -59,7 +59,10 @@ curl http://127.0.0.1:9080/apisix/admin/routes/1 -X PUT -d '
## 如何提取指标数据
-我们可以从指定的url中提取指标数据 `/apisix/prometheus/metrics`.
+我们可以从指定的 url 中提取指标数据 `/apisix/prometheus/metrics`:
+```
+curl -i http://127.0.0.1:9080/apisix/prometheus/metrics
+```
把改uri地址配置到 prometheus 中去,就会自动完成指标数据提取.
diff --git a/doc/plugins/prometheus.md b/doc/plugins/prometheus.md
index f589b72..154ede9 100644
--- a/doc/plugins/prometheus.md
+++ b/doc/plugins/prometheus.md
@@ -60,6 +60,9 @@ Then add prometheus plugin:
## How to fetch the metric data
We fetch the metric data from the specified url `/apisix/prometheus/metrics`.
+```
+curl -i http://127.0.0.1:9080/apisix/prometheus/metrics
+```
Puts this uri address into prometheus, and it will automatically fetch
these metric data.