@@ -2006,26 +2006,26 @@ def section_hummock_read(outer_panels):
2006
2006
[
2007
2007
* quantile (
2008
2008
lambda quantile , legend : panels .target (
2009
- f"histogram_quantile({ quantile } , sum(rate({ table_metric ('state_store_iter_init_duration_bucket' )} [$__rate_interval])) by (le, { COMPONENT_LABEL } , { NODE_LABEL } , table_id))" ,
2010
- f"create_iter_time p{ legend } - {{{{table_id}}}} @ {{{{{ COMPONENT_LABEL } }}}} @ {{{{{ NODE_LABEL } }}}}" ,
2009
+ f"histogram_quantile({ quantile } , sum(rate({ table_metric ('state_store_iter_init_duration_bucket' )} [$__rate_interval])) by (le, { COMPONENT_LABEL } , { NODE_LABEL } , table_id, iter_type ))" ,
2010
+ f"create_iter_time p{ legend } - {{{{iter_type}}}} {{{{ table_id}}}} @ {{{{{ COMPONENT_LABEL } }}}} @ {{{{{ NODE_LABEL } }}}}" ,
2011
2011
),
2012
2012
[50 , 99 , "max" ],
2013
2013
),
2014
2014
panels .target (
2015
- f"sum by(le, { COMPONENT_LABEL } , { NODE_LABEL } )(rate({ metric ('state_store_iter_init_duration_sum' )} [$__rate_interval])) / sum by(le, { COMPONENT_LABEL } , { NODE_LABEL } ) (rate({ metric ('state_store_iter_init_duration_count' )} [$__rate_interval])) > 0" ,
2016
- "create_iter_time avg - {{%s}} @ {{%s}}"
2015
+ f"sum by(le, { COMPONENT_LABEL } , { NODE_LABEL } )(rate({ metric ('state_store_iter_init_duration_sum' )} [$__rate_interval])) / sum by(le, { COMPONENT_LABEL } , { NODE_LABEL } , iter_type ) (rate({ metric ('state_store_iter_init_duration_count' )} [$__rate_interval])) > 0" ,
2016
+ "create_iter_time avg - {{iter_type}} {{ %s}} @ {{%s}}"
2017
2017
% (COMPONENT_LABEL , NODE_LABEL ),
2018
2018
),
2019
2019
* quantile (
2020
2020
lambda quantile , legend : panels .target (
2021
- f"histogram_quantile({ quantile } , sum(rate({ table_metric ('state_store_iter_scan_duration_bucket' )} [$__rate_interval])) by (le, { COMPONENT_LABEL } , { NODE_LABEL } , table_id))" ,
2022
- f"pure_scan_time p{ legend } - {{{{table_id}}}} @ {{{{{ COMPONENT_LABEL } }}}} @ {{{{{ NODE_LABEL } }}}}" ,
2021
+ f"histogram_quantile({ quantile } , sum(rate({ table_metric ('state_store_iter_scan_duration_bucket' )} [$__rate_interval])) by (le, { COMPONENT_LABEL } , { NODE_LABEL } , table_id, iter_type ))" ,
2022
+ f"pure_scan_time p{ legend } - {{{{iter_type}}}} {{{{ table_id}}}} @ {{{{{ COMPONENT_LABEL } }}}} @ {{{{{ NODE_LABEL } }}}}" ,
2023
2023
),
2024
2024
[50 , 99 , "max" ],
2025
2025
),
2026
2026
panels .target (
2027
- f"sum by(le, { COMPONENT_LABEL } , { NODE_LABEL } )(rate({ metric ('state_store_iter_scan_duration_sum' )} [$__rate_interval])) / sum by(le, { COMPONENT_LABEL } , { NODE_LABEL } ) (rate({ metric ('state_store_iter_scan_duration_count' )} [$__rate_interval])) > 0" ,
2028
- "pure_scan_time avg - {{%s}} @ {{%s}}"
2027
+ f"sum by(le, { COMPONENT_LABEL } , { NODE_LABEL } )(rate({ metric ('state_store_iter_scan_duration_sum' )} [$__rate_interval])) / sum by(le, { COMPONENT_LABEL } , { NODE_LABEL } , iter_type ) (rate({ metric ('state_store_iter_scan_duration_count' )} [$__rate_interval])) > 0" ,
2028
+ "pure_scan_time avg - {{iter_type}} {{ %s}} @ {{%s}}"
2029
2029
% (COMPONENT_LABEL , NODE_LABEL ),
2030
2030
),
2031
2031
],
@@ -2093,8 +2093,8 @@ def section_hummock_read(outer_panels):
2093
2093
% (COMPONENT_LABEL , NODE_LABEL ),
2094
2094
),
2095
2095
panels .target (
2096
- f"sum(rate({ table_metric ('state_store_iter_in_process_counts ' )} [$__rate_interval])) by ({ COMPONENT_LABEL } ,{ NODE_LABEL } ,table_id)" ,
2097
- "iter - {{table_id}} @ {{%s}} @ {{%s}}"
2096
+ f"sum(rate({ table_metric ('state_store_iter_counts ' )} [$__rate_interval])) by ({ COMPONENT_LABEL } ,{ NODE_LABEL } ,table_id, iter_type )" ,
2097
+ "{{iter_type}} - {{table_id}} @ {{%s}} @ {{%s}}"
2098
2098
% (COMPONENT_LABEL , NODE_LABEL ),
2099
2099
),
2100
2100
],
@@ -2118,8 +2118,8 @@ def section_hummock_read(outer_panels):
2118
2118
[
2119
2119
* quantile (
2120
2120
lambda quantile , legend : panels .target (
2121
- f"histogram_quantile({ quantile } , sum(rate({ table_metric ('state_store_iter_size_bucket' )} [$__rate_interval])) by (le, { COMPONENT_LABEL } , { NODE_LABEL } , table_id))" ,
2122
- f"p{ legend } - {{{{table_id}}}} @ {{{{{ COMPONENT_LABEL } }}}} @ {{{{{ NODE_LABEL } }}}}" ,
2121
+ f"histogram_quantile({ quantile } , sum(rate({ table_metric ('state_store_iter_size_bucket' )} [$__rate_interval])) by (le, { COMPONENT_LABEL } , { NODE_LABEL } , table_id, iter_type ))" ,
2122
+ f"p{ legend } - {{{{iter_type}}}} {{{{ table_id}}}} @ {{{{{ COMPONENT_LABEL } }}}} @ {{{{{ NODE_LABEL } }}}}" ,
2123
2123
),
2124
2124
[50 , 99 , "max" ],
2125
2125
),
@@ -2144,11 +2144,19 @@ def section_hummock_read(outer_panels):
2144
2144
[
2145
2145
* quantile (
2146
2146
lambda quantile , legend : panels .target (
2147
- f"histogram_quantile({ quantile } , sum(rate({ table_metric ('state_store_iter_item_bucket' )} [$__rate_interval])) by (le, { COMPONENT_LABEL } , { NODE_LABEL } , table_id))" ,
2148
- f"p{ legend } - {{{{table_id}}}} @ {{{{{ COMPONENT_LABEL } }}}} @ {{{{{ NODE_LABEL } }}}}" ,
2147
+ f"histogram_quantile({ quantile } , sum(rate({ table_metric ('state_store_iter_item_bucket' )} [$__rate_interval])) by (le, { COMPONENT_LABEL } , { NODE_LABEL } , table_id, iter_type ))" ,
2148
+ f"p{ legend } - {{{{iter_type}}}} {{{{ table_id}}}} @ {{{{{ COMPONENT_LABEL } }}}} @ {{{{{ NODE_LABEL } }}}}" ,
2149
2149
),
2150
2150
[50 , 99 , "max" ],
2151
2151
),
2152
+ panels .target (
2153
+ f"{ metric ('state_store_iter_in_progress_counts' )} " ,
2154
+ "Existing {{iter_type}} count @ {{table_id}}" ,
2155
+ ),
2156
+ panels .target (
2157
+ f"sum(rate({ metric ('state_store_iter_log_op_type_counts' )} [$__rate_interval])) by (table_id, op_type)" ,
2158
+ "iter_log op count @ {{table_id}} {{op_type}}" ,
2159
+ ),
2152
2160
],
2153
2161
),
2154
2162
panels .timeseries_bytes_per_sec (
0 commit comments