moonming commented on a change in pull request #3494: URL: https://github.com/apache/apisix/pull/3494#discussion_r603773164
########## File path: docs/en/latest/plugins/prometheus.md ########## @@ -122,26 +122,70 @@ Or you can goto [Grafana official](https://grafana.com/grafana/dashboards/11719) ### Available metrics -* `Status codes`: HTTP status codes returned by upstream services. These are available per service and across all services. -* `Bandwidth`: Total Bandwidth (egress/ingress) flowing through apisix. This metric is available per service and as a sum across all services. -* `etcd reachability`: A gauge type with a value of 0 or 1, representing if etcd can be reached by a apisix or not. +* `Status codes`: HTTP status code returned from upstream services. These status code available per service and across all services. + + Attributes: + + | Name | Description | + | -------------| --------------------| + | code | The HTTP status code returned by the upstream service. | + | route | The `route_id` of the matched route is request. If it does not match, the default value is an empty string. | + | matched_uri | The `uri` of the route matching the request, if it does not match, the default value is an empty string. | + | matched_host | The `host` of the route that matches the request. If it does not match, the default value is an empty string. | + | service | The `service_id` of the route matched by the request. When the route lacks service_id, the default is `$host`. | + | consumer | The `consumer_name` of the consumer that matches the request. If it does not match, the default value is an empty string. | + | node | The `ip` of the upstream node. | + +* `Bandwidth`: Total Bandwidth (egress/ingress) flowing through apisix. The total bandwidth of each service or all services can be counted. Review comment: `apisix` -> `APISIX` ########## File path: docs/en/latest/plugins/prometheus.md ########## @@ -122,26 +122,70 @@ Or you can goto [Grafana official](https://grafana.com/grafana/dashboards/11719) ### Available metrics -* `Status codes`: HTTP status codes returned by upstream services. These are available per service and across all services. -* `Bandwidth`: Total Bandwidth (egress/ingress) flowing through apisix. This metric is available per service and as a sum across all services. -* `etcd reachability`: A gauge type with a value of 0 or 1, representing if etcd can be reached by a apisix or not. +* `Status codes`: HTTP status code returned from upstream services. These status code available per service and across all services. + + Attributes: + + | Name | Description | + | -------------| --------------------| + | code | The HTTP status code returned by the upstream service. | + | route | The `route_id` of the matched route is request. If it does not match, the default value is an empty string. | + | matched_uri | The `uri` of the route matching the request, if it does not match, the default value is an empty string. | + | matched_host | The `host` of the route that matches the request. If it does not match, the default value is an empty string. | + | service | The `service_id` of the route matched by the request. When the route lacks service_id, the default is `$host`. | Review comment: how to config `all services`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org