github-actions[bot] commented on code in PR #70803:
URL: https://github.com/apache/doris/pull/70803#discussion_r4658354837


##########
cloud/src/common/bvars.cpp:
##########
@@ -149,9 +149,10 @@ BvarStatusWithTag<int64_t> 
g_bvar_recycler_recycle_tmp_rowset_earlest_ts("recycl
 BvarStatusWithTag<int64_t> 
g_bvar_recycler_recycle_expired_txn_label_earlest_ts("recycler", 
"recycle_expired_txn_label_earlest_ts");
 BvarStatusWithTag<int64_t> 
g_bvar_recycler_recycle_restore_job_earlest_ts("recycler", 
"recycle_restore_job_earlest_ts");
 bvar::Status<int64_t> 
g_bvar_recycler_task_max_concurrency("recycler_task_max_concurrency_num",0);
-// current status of recycle task (submitted, completed, error)
-mBvarIntAdder 
g_bvar_recycler_instance_recycle_task_status("recycler_instance_recycle_task_status",
 { "status"});
 // recycler's mbvars
+// 1 while the local Recycler is running a task for the instance, 0 when idle.
+mBvarStatus<int64_t> g_bvar_recycler_instance_recycle_task_status(
+        "recycler_instance_recycle_task_status", {"instance_id"});

Review Comment:
   [P2] Preserve the old metric contract or publish the gauge under a new name. 
This declaration replaces 
`recycler_instance_recycle_task_status{status="submitted|error|completed"}` (an 
accumulating counter) with 
`recycler_instance_recycle_task_status{instance_id="..."}` (a 0/1 gauge), so 
existing scrapers and dashboards querying the old label set will silently stop 
receiving data. A new metric name would let existing consumers continue while 
the per-instance gauge is adopted.



-- 
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