Understanding the Performance metrics better #239
-
Hello Team, I am using these https://www.openpolicyagent.org/docs/latest/rest-api/#performance-metrics I don't understand the performance parameters well. e.g.
Would like help with the above. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@deshmukhrajvardhan Thank you for your patience! Here's what I was able to dig up from a cursory look around the OPA REST API sources, hunting for metrics-related stuff:
Disclaimer: I only spent about 10 min hunting around, so one or two points there may be wrong, but if you want to go spelunking yourself with |
Beta Was this translation helpful? Give feedback.
@deshmukhrajvardhan Thank you for your patience! Here's what I was able to dig up from a cursory look around the OPA REST API sources, hunting for metrics-related stuff:
timer_server_handler_ns
is a holistic measurement; it tells you how long everything took to process on the API endpoint you hit. So, it may wrap up some/most/all of the other parameters mentioned on that page, depending on the situation. It's meant to mimic common web framework endpoint timing metrics, so that you can understand the overall latency of a request/response on the server.timer_rego_module_compile_ns
should only come up when a new policy is created/updated with a PUT…