This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 3bc3ef8 docs: Optimize the sample configuration of prometheus job
(#5196)
3bc3ef8 is described below
commit 3bc3ef8a74e3c47eda443ca9c8ea1fccfd309596
Author: Nic <[email protected]>
AuthorDate: Mon Oct 11 19:08:13 2021 +0800
docs: Optimize the sample configuration of prometheus job (#5196)
---
docs/en/latest/plugins/prometheus.md | 1 +
docs/zh/latest/plugins/prometheus.md | 1 +
2 files changed, 2 insertions(+)
diff --git a/docs/en/latest/plugins/prometheus.md
b/docs/en/latest/plugins/prometheus.md
index f9e10d0..ee3073b 100644
--- a/docs/en/latest/plugins/prometheus.md
+++ b/docs/en/latest/plugins/prometheus.md
@@ -106,6 +106,7 @@ For example like this:
```yaml
scrape_configs:
- job_name: 'apisix'
+ scrape_interval: 15s # This value will be related to the time range of the
rate function in Prometheus QL. The time range in the rate function should be
at least twice this value.
metrics_path: '/apisix/prometheus/metrics'
static_configs:
- targets: ['127.0.0.1:9091']
diff --git a/docs/zh/latest/plugins/prometheus.md
b/docs/zh/latest/plugins/prometheus.md
index dc7c366..3c35879 100644
--- a/docs/zh/latest/plugins/prometheus.md
+++ b/docs/zh/latest/plugins/prometheus.md
@@ -105,6 +105,7 @@ curl -i http://127.0.0.1:9091/apisix/prometheus/metrics
```yaml
scrape_configs:
- job_name: "apisix"
+ scrape_interval: 15s # 这个值会跟Prometheus QL中rate函数的时间范围有关系,
rate函数中的时间范围应该至少两倍于该值.
metrics_path: "/apisix/prometheus/metrics"
static_configs:
- targets: ["127.0.0.1:9091"]