Repository navigation
Conversation
- Explain how template parameters and literals form metric keys. - Document the unmatched method buckets and dashboard migration. - Remove superseded unmatched series from the English and Chinese examples.
imbajin
left a comment
There was a problem hiding this comment.
Score: 6.5/10 · Confidence: high
Blocking: yes
Summary
The documented metric names depend on an unmerged server change, and examples retain obsolete root-route keys even with that change.
Evidence
Current Apache AccessLogFilter uses request paths; linked server PR #401 remains open. Its proposed matchedRoute removes empty segments while MetricsAPI root is mapped to metrics.
Validation notes
Source inspection only; no live server or site build was run.
| `graphspaces/graphspace/graphs/graph/graph/vertices/id/GET/TOTAL_COUNTER`. | ||
| `/metrics/statistics?type=json` groups statistics by `<route>/<method>`. | ||
|
|
||
| Requests without a matched resource method use the `_unmatched` route. `GET`, `HEAD`, `POST`, `PUT`, `PATCH`, `DELETE`, and `OPTIONS` |
There was a problem hiding this comment.
The linked server change is still open, and Apache master currently derives these keys from request paths without an _unmatched bucket. Publishing this as current behavior would lead readers to query series their server does not emit. Please coordinate publication with the implementation landing in Apache and identify the applicable version, or retain the current behavior until then.
|
|
||
| For example, `GET /favicon.ico` and `POST /metrics` use `_unmatched/GET/TOTAL_COUNTER` and `_unmatched/POST/TOTAL_COUNTER`, respectively. | ||
| An unmatched request with another method uses `_unmatched/_other/TOTAL_COUNTER`. These examples show only the key format. | ||
| The response excerpts below retain historical sample values. |
There was a problem hiding this comment.
The retained examples include metrics//GET and metrics__GET, not just historical values. In the linked server change, matchedRoute strips slashes and skips empty segments, while the root GET handler is mapped at metrics, so the new keys use metrics/GET and metrics_GET. Please update the JSON and Prometheus examples in both languages as well.
bitflicker64
left a comment
There was a problem hiding this comment.
Blocking: yes. Summary: The route-key description matches AccessLogFilter in the linked server PR, but neither page carries the dashboard migration the PR description lists. Both earlier inline comments on this head, on gating publication and on the root-route example keys, still apply.
|
|
||
| ## 2.Statistical Metrics | ||
|
|
||
| REST request counters and histograms use keys in the form `<route>/<method>/<metric suffix>`. The matched route template supplies |
There was a problem hiding this comment.
Important: the PR description lists dashboard migration, but neither page tells upgrading users that keys built from request paths, such as favicon.ico/GET or metrics//GET, become route-template and _unmatched keys. Add a short note to the English and Chinese pages saying dashboards and alerts on the earlier keys must move to the route-based names.
Purpose
Request metrics used paths rebuilt from parameter values, which could replace fixed URL segments and create separate keys for unmatched paths. The keys now use the resource templates matched by Jersey.
Main Changes
Verification
Checked the English and Chinese pages locally.
Server PR