Commit 26dbe94
authored
Aggregate multiprocess replica metrics for console overview view (#31850)
We use this query in the Console to power the Environment Overview page
and cluster replica graphs for the 14 day time period.
<!--
Describe the contents of the PR briefly but completely.
If you write detailed commit messages, it is acceptable to copy/paste
them
here, or write "see commit messages for details." If there is only one
commit
in the PR, GitHub will have already added its commit message above.
-->
### Motivation
Sibling PR to MaterializeInc/console#3733. Query
should reflect the duplicate code there
Gabor noticed the utilization graphs being broken for clusters with
multiple processes.
https://materializeinc.slack.com/archives/CU7ELJ6E9/p1741596295446089
<!--
Which of the following best describes the motivation behind this PR?
* This PR fixes a recognized bug.
[Ensure issue is linked somewhere.]
* This PR adds a known-desirable feature.
[Ensure issue is linked somewhere.]
* This PR fixes a previously unreported bug.
[Describe the bug in detail, as if you were filing a bug report.]
* This PR adds a feature that has not yet been specified.
[Write a brief specification for the feature, including justification
for its inclusion in Materialize, as if you were writing the original
feature specification.]
* This PR refactors existing code.
[Describe what was wrong with the existing code, if it is not obvious.]
-->
### Tips for reviewer
<!--
Leave some tips for your reviewer, like:
* The diff is much smaller if viewed with whitespace hidden.
* [Some function/module/file] deserves extra attention.
* [Some function/module/file] is pure code movement and only needs a
skim.
Delete this section if no tips.
-->
### Checklist
- [x] This PR has adequate test coverage / QA involvement has been duly
considered. ([trigger-ci for additional test/nightly
runs](https://trigger-ci.dev.materialize.com/))
I've tested this manually, but I added a unit test in
MaterializeInc/console#37331 parent e5475a3 commit 26dbe94
File tree
2 files changed
+47
-30
lines changed- src/catalog/src
- test/sqllogictest
2 files changed
+47
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8105 | 8105 | | |
8106 | 8106 | | |
8107 | 8107 | | |
8108 | | - | |
| 8108 | + | |
| 8109 | + | |
8109 | 8110 | | |
8110 | 8111 | | |
8111 | 8112 | | |
| |||
8143 | 8144 | | |
8144 | 8145 | | |
8145 | 8146 | | |
| 8147 | + | |
| 8148 | + | |
| 8149 | + | |
| 8150 | + | |
| 8151 | + | |
| 8152 | + | |
| 8153 | + | |
| 8154 | + | |
| 8155 | + | |
| 8156 | + | |
| 8157 | + | |
| 8158 | + | |
| 8159 | + | |
| 8160 | + | |
| 8161 | + | |
| 8162 | + | |
| 8163 | + | |
| 8164 | + | |
| 8165 | + | |
| 8166 | + | |
| 8167 | + | |
| 8168 | + | |
| 8169 | + | |
| 8170 | + | |
| 8171 | + | |
8146 | 8172 | | |
8147 | 8173 | | |
8148 | 8174 | | |
8149 | | - | |
8150 | | - | |
8151 | | - | |
8152 | | - | |
8153 | | - | |
8154 | | - | |
8155 | | - | |
8156 | | - | |
8157 | | - | |
| 8175 | + | |
| 8176 | + | |
| 8177 | + | |
| 8178 | + | |
| 8179 | + | |
| 8180 | + | |
| 8181 | + | |
| 8182 | + | |
8158 | 8183 | | |
8159 | 8184 | | |
8160 | 8185 | | |
8161 | 8186 | | |
8162 | 8187 | | |
8163 | 8188 | | |
8164 | | - | |
8165 | | - | |
| 8189 | + | |
8166 | 8190 | | |
8167 | 8191 | | |
8168 | 8192 | | |
8169 | 8193 | | |
8170 | 8194 | | |
8171 | 8195 | | |
8172 | | - | |
| 8196 | + | |
8173 | 8197 | | |
8174 | | - | |
| 8198 | + | |
8175 | 8199 | | |
8176 | | - | |
8177 | 8200 | | |
8178 | 8201 | | |
8179 | 8202 | | |
8180 | 8203 | | |
8181 | 8204 | | |
8182 | 8205 | | |
8183 | | - | |
8184 | 8206 | | |
8185 | 8207 | | |
8186 | 8208 | | |
8187 | | - | |
| 8209 | + | |
8188 | 8210 | | |
8189 | | - | |
8190 | 8211 | | |
8191 | 8212 | | |
8192 | 8213 | | |
8193 | 8214 | | |
8194 | 8215 | | |
8195 | 8216 | | |
8196 | | - | |
8197 | 8217 | | |
8198 | 8218 | | |
8199 | 8219 | | |
8200 | | - | |
| 8220 | + | |
8201 | 8221 | | |
8202 | | - | |
8203 | 8222 | | |
8204 | 8223 | | |
8205 | 8224 | | |
8206 | 8225 | | |
8207 | 8226 | | |
8208 | 8227 | | |
8209 | | - | |
8210 | 8228 | | |
8211 | 8229 | | |
8212 | 8230 | | |
| |||
8216 | 8234 | | |
8217 | 8235 | | |
8218 | 8236 | | |
8219 | | - | |
| 8237 | + | |
8220 | 8238 | | |
8221 | 8239 | | |
8222 | 8240 | | |
| |||
8242 | 8260 | | |
8243 | 8261 | | |
8244 | 8262 | | |
8245 | | - | |
8246 | 8263 | | |
8247 | 8264 | | |
8248 | | - | |
| 8265 | + | |
8249 | 8266 | | |
8250 | 8267 | | |
8251 | 8268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
980 | 980 | | |
981 | 981 | | |
982 | 982 | | |
983 | | - | |
| 983 | + | |
984 | 984 | | |
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
988 | | - | |
| 988 | + | |
989 | 989 | | |
990 | 990 | | |
991 | 991 | | |
| |||
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
1007 | | - | |
| 1007 | + | |
1008 | 1008 | | |
1009 | 1009 | | |
1010 | 1010 | | |
1011 | 1011 | | |
1012 | | - | |
| 1012 | + | |
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
| |||
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
1037 | | - | |
| 1037 | + | |
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
| |||
0 commit comments