-
Notifications
You must be signed in to change notification settings - Fork 65
[+] add stat_statements_jit metric
#1054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[+] add stat_statements_jit metric
#1054
Conversation
Pull Request Test Coverage Report for Build 19829454390Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
d11d8a8 to
da3e81c
Compare
It queries `pg_stat_statements` to identify queries with high percent of execution time spent in JIT.
It queries the `stat_statements_jit` metric table to identify the percentage of jit in the current total query execution time within the specified grafana time window.
It queries the `stat_statements_jit` metric table to identify the percentage of jit in the current total query execution time for each dbname within the specified grafana time window.
The `Auto` option will contain a value identical to the current time range, so we can partially avoid the imprecision of `$__timeGroup()`
the minimum version where `jit_generation_time` field is available in `pg_stat_statements`.
2c034f7 to
041510b
Compare
|
We don't need another metric. We need updated |
That's what I did at first, but I noticed that |
stat_statements_jitmetric0. Health Checkdashboard that displays the JIT percentage in the total query execution time.Global Health Checkdashboard that displays the Top n dbnames with the highest JIT percentages.TODO:
jit_generation_time> 0.stat_statements_jitmetric on older PostgreSQL versions.Closes: #1046