mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-04 21:17:36 +08:00
fix: update example grafana to lastest prometheus support (#3402)
This commit is contained in:
parent
806ac668d5
commit
1819b6b524
File diff suppressed because it is too large
Load Diff
@ -94,9 +94,9 @@ And we can check the status at prometheus console:
|
||||
|
||||
We can change the default export uri in the `plugin_attr` section of `conf/config.yaml`.
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| ------------ | ------ | -------- | -------------------------------------------------------------------- |
|
||||
| export_uri | string | "/apisix/prometheus/metrics" | uri to get the prometheus metrics |
|
||||
| Name | Type | Default | Description |
|
||||
| ---------- | ------ | ---------------------------- | --------------------------------- |
|
||||
| export_uri | string | "/apisix/prometheus/metrics" | uri to get the prometheus metrics |
|
||||
|
||||
Here is an example:
|
||||
|
||||
@ -142,6 +142,19 @@ apisix_bandwidth{type="egress",service="foo.com"} 2379
|
||||
apisix_bandwidth{type="ingress",service="127.0.0.2"} 83
|
||||
apisix_bandwidth{type="ingress",service="bar.com"} 76
|
||||
apisix_bandwidth{type="ingress",service="foo.com"} 988
|
||||
# HELP apisix_etcd_modify_indexes Etcd modify index for APISIX keys
|
||||
# TYPE apisix_etcd_modify_indexes gauge
|
||||
apisix_etcd_modify_indexes{key="consumers"} 0
|
||||
apisix_etcd_modify_indexes{key="global_rules"} 0
|
||||
apisix_etcd_modify_indexes{key="max_modify_index"} 222
|
||||
apisix_etcd_modify_indexes{key="prev_index"} 35
|
||||
apisix_etcd_modify_indexes{key="protos"} 0
|
||||
apisix_etcd_modify_indexes{key="routes"} 222
|
||||
apisix_etcd_modify_indexes{key="services"} 0
|
||||
apisix_etcd_modify_indexes{key="ssls"} 0
|
||||
apisix_etcd_modify_indexes{key="stream_routes"} 0
|
||||
apisix_etcd_modify_indexes{key="upstreams"} 0
|
||||
apisix_etcd_modify_indexes{key="x_etcd_index"} 223
|
||||
# HELP apisix_batch_process_entries batch process remaining entries
|
||||
# TYPE apisix_batch_process_entries gauge
|
||||
apisix_batch_process_entries{name="http-logger",route_id="9",server_addr="127.0.0.1"} 1
|
||||
|
@ -92,8 +92,8 @@ scrape_configs:
|
||||
|
||||
我们可以在 `conf/config.yaml` 的 `plugin_attr` 修改默认的uri
|
||||
|
||||
| 名称 | 类型 | 默认值 | 描述 |
|
||||
| ------------ | ------ | -------- | -------------------------------------------------------------------- |
|
||||
| 名称 | 类型 | 默认值 | 描述 |
|
||||
| ---------- | ------ | ---------------------------- | ------------- |
|
||||
| export_uri | string | "/apisix/prometheus/metrics" | 暴露指标的uri |
|
||||
|
||||
配置示例:
|
||||
@ -140,6 +140,19 @@ apisix_bandwidth{type="egress",service="foo.com"} 2379
|
||||
apisix_bandwidth{type="ingress",service="127.0.0.2"} 83
|
||||
apisix_bandwidth{type="ingress",service="bar.com"} 76
|
||||
apisix_bandwidth{type="ingress",service="foo.com"} 988
|
||||
# HELP apisix_etcd_modify_indexes Etcd modify index for APISIX keys
|
||||
# TYPE apisix_etcd_modify_indexes gauge
|
||||
apisix_etcd_modify_indexes{key="consumers"} 0
|
||||
apisix_etcd_modify_indexes{key="global_rules"} 0
|
||||
apisix_etcd_modify_indexes{key="max_modify_index"} 222
|
||||
apisix_etcd_modify_indexes{key="prev_index"} 35
|
||||
apisix_etcd_modify_indexes{key="protos"} 0
|
||||
apisix_etcd_modify_indexes{key="routes"} 222
|
||||
apisix_etcd_modify_indexes{key="services"} 0
|
||||
apisix_etcd_modify_indexes{key="ssls"} 0
|
||||
apisix_etcd_modify_indexes{key="stream_routes"} 0
|
||||
apisix_etcd_modify_indexes{key="upstreams"} 0
|
||||
apisix_etcd_modify_indexes{key="x_etcd_index"} 223
|
||||
# HELP apisix_batch_process_entries batch process remaining entries
|
||||
# TYPE apisix_batch_process_entries gauge
|
||||
apisix_batch_process_entries{name="http-logger",route_id="9",server_addr="127.0.0.1"} 1
|
||||
|
Loading…
Reference in New Issue
Block a user