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
- Move metrics overview into Prometheus section for better flow
- Add explicit /metrics path mention in Prometheus intro
- Add links to Status API and Decision Logs documentation
- Fix CLI tools to include proper documentation links
- Clarify which metrics are enabled with instrument=true parameter
- Remove inaccurate 'subset' terminology for Status API
Addresses review comments from charlieegan3 on September 25, 2025
Signed-off-by: Anivar A Aravind <[email protected]>
Copy file name to clipboardExpand all lines: docs/docs/rest-api.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2277,7 +2277,13 @@ OPA provides the following query performance metrics:
2277
2277
-**timer_server_handler_ns**: time taken (in nanoseconds) to handle the API request.
2278
2278
-**counter_server_query_cache_hit**: number of cache hits for the query.
2279
2279
2280
-
When query instrumentation is enabled (`instrument=true`), additional evaluation metrics are included. See [Policy Performance](./policy-performance#performance-metrics) for details on interpreting these metrics.
2280
+
When query instrumentation is enabled (`instrument=true`), the following additional detailed evaluation metrics are included:
2281
+
-**timer_eval_op_***: Various evaluation operation timers (e.g., `timer_eval_op_plug_ns`, `timer_eval_op_resolve_ns`)
2282
+
-**histogram_eval_op_***: Histograms tracking evaluation operation time distributions
2283
+
-**timer_rego_builtin_***: Built-in function execution times
2284
+
-**counter_rego_builtin_***: Built-in function call counts and cache hits
2285
+
2286
+
See [Policy Performance](./policy-performance#performance-metrics) for details on interpreting these metrics.
2281
2287
2282
2288
The `counter_server_query_cache_hit` counter gives an indication about whether OPA creates a new Rego query
2283
2289
or it uses a pre-processed query which holds some prepared state to serve the API request. A pre-processed query will be
0 commit comments