luwei16 opened a new pull request, #64385:
URL: https://github.com/apache/doris/pull/64385

   pick master #63036 
   
   Problem Summary: Add an FE cloud metric that records virtual compute group 
active-standby switch events. The metric key uses virtual/src/dst compute group 
ids so a compute group rename updates the exposed labels without leaving stale 
old-name series.
   
   Prometheus output example:
   
   ```text
   
doris_fe_virtual_compute_group_switch_total{virtual_compute_group_id="id1",virtual_compute_group_name="v_group_1",src_compute_group_id="id2",src_compute_group_name="p_group_1",dst_compute_group_id="id3",dst_compute_group_name="p_group_2"}
 1
   ```
   
   The metric value is the accumulated switch count for the labeled virtual 
compute group switch path.
   
   Add FE metric doris_fe_virtual_compute_group_switch_total for virtual 
compute group active-standby switches.
   
   - Test:
       - Unit Test: bash run-fe-ut.sh --run 
org.apache.doris.cloud.system.CloudSystemInfoServiceTest
       - Unit Test: bash run-fe-ut.sh --run org.apache.doris.metric.MetricsTest
       - Manual test: git diff --check
       - FE checkstyle: bash -lc "export DORIS_HOME=$PWD && source env.sh && cd 
fe && ${MVN_CMD} -pl fe-core -DskipTests checkstyle:check"
   - Behavior changed: Yes. Add a new FE metric for virtual compute group 
active-standby switches.
   - Does this need documentation: No
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to