wyxxxcat opened a new pull request, #70803:
URL: https://github.com/apache/doris/pull/70803
### Background
Recycler task event counters report submitted, completed, and error events.
Operators also need to see whether an instance is currently being recycled.
### What problem does this PR solve?
Issue Number: None
Related PR: #55455 (introduced the recycle task event counters)
PR Type: Enhancement
Problem Summary:
Reusing the event metric name for a 0/1 gauge drops the status label and
breaks existing error queries as Recycler nodes are upgraded. Publish activity
under a separate metric name.
### Details
- Add `recycler_instance_recycle_task_active{instance_id="..."}`, which
reports `1` while the local Recycler handles a task and `0` after it exits.
- **Configs and defaults:** None.
- **Impact on existing users:** Existing event queries retain coverage
during rolling upgrades. Upgraded Recycler nodes also expose the gauge.
### Release note
Recycler exposes a per-instance gauge for current recycle activity.
### Check List (For Author)
- Behavior changed: No
- Does this need documentation: Yes. Document the gauge in the Recycler
metrics reference.
--
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]