[*] improve single query details pg dashboard#1276
[*] improve single query details pg dashboard#12760xgouda merged 10 commits intocybertec-postgresql:masterfrom
single query details pg dashboard#1276Conversation
b86bd15 to
c5f65ba
Compare
|
Can you please attach a clear description of the approach you took for fixing the queries? |
|
@0xgouda time >= (SELECT time FROM baseline)
AND time <= $__timeTo()::timestamptzby this modification i get another extra row for the first row in the required time range which make |
|
ping @0xgouda |
e5ddb67 to
c01eef1
Compare
|
@Bishoywadea As this would cause the very last time group to output incorrect values, as it will have less than the number of expected data points (as they are still being collected), for example See the drop at the end here and how it affects the
vs if we used
As it won't add extra minutes in the divisor for the points that haven't been collected yet. Also, I get why you did that, for performance, but I hope that pg will be able to handle the additional |
|
@0xgouda makes sense, i think this is more accurate indeed, check it after the commit |
…er call per call panel
…Written per call panel
3 minutes is the default gathering interval for the `stat_statements` metric so having `$agg_interval` a multiple of that makes it easier to define how many data points one wants to include in a group
dceafa1 to
cb2acdb
Compare
single query dahboard with prom single query dahboard updatessingle query details pg dashboard


Description
based on @0xgouda request this PR modify queries in
single query dashboardin pg to match the updates in correspond prom dashboard and partially solves #1152 in this dashboardfixes partially: #1152
AI & Automation Policy
AI/automation tools used (leave blank if none):
No agents were used in this PR i only used Gemini the free tier to help me with the queries but i have reviewed it carefully and tested it well
Checklist