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

   ## Summary
   - Changed `auto_partition_near_limit_count` and 
`dynamic_partition_near_limit_count` from `LongCounterMetric` (monotonically 
increasing) to `GaugeMetricImpl<Long>` so they correctly decrease when the 
near-limit condition resolves
   - Moved metric computation from inline event-driven increments (in 
`FrontendServiceImpl` and `DynamicPartitionUtil`) to `TabletStatMgr`'s periodic 
all-table scan, which already iterates all tables and partitions under read 
locks
   - Metric names are preserved for monitoring compatibility; semantics changed 
from "cumulative event count" to "current number of tables near the limit"
   
   ## Test plan
   - [ ] Verify `auto_partition_near_limit_count` increases when an 
auto-partition table exceeds 80% of `max_auto_partition_num`
   - [ ] Verify the gauge decreases back to 0 after dropping partitions below 
the 80% threshold (within one `tablet_stat_update_interval_second` cycle)
   - [ ] Verify `dynamic_partition_near_limit_count` behaves the same for 
dynamic partition tables
   - [ ] Verify existing Prometheus/Grafana dashboards continue to scrape the 
metric names without changes
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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