You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is no way to distinguish Datadog metrics for different
HTTP endpoints if these endpoints are served through a single Apisix
route.
With these changes, if `include_path` is set to true, the path pattern
by which the HTTP request was matched to a route is included as a metric
tag with the `path:` key. This allows different endpoints to be
distinguished in metrics.
| prefer_name | boolean | False | true |[true,false]| When set to `false`, uses Route/Service ID instead of name (default) with metric tags. |
47
+
| include_path | boolean | False | false |[true,false]| When set to `true`, includes the path pattern in metric tags. |
47
48
48
49
This Plugin supports using batch processors to aggregate and process entries (logs/data) in a batch. This avoids the need for frequently submitting the data. The batch processor submits data every `5` seconds or when the data in the queue reaches `1000`. See [Batch Processor](../batch-processor.md#configuration) for more information or setting your custom configuration.
49
50
@@ -115,6 +116,7 @@ The metrics will be sent to the DogStatsD agent with the following tags:
115
116
-`balancer_ip`: IP address of the Upstream balancer that processed the current request.
116
117
-`response_status`: HTTP response status code.
117
118
-`scheme`: Request scheme such as HTTP, gRPC, and gRPCs.
119
+
-`path`: The HTTP path pattern. Only available if the attribute `include_path` is set to true.
0 commit comments