-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backpressure): add metrics (#2198)
* feat(backpressure): log it on recovery from backpressure Signed-off-by: Ning Yu <[email protected]> * feat: add metric fetch_limiter_waiting_task_num Signed-off-by: Ning Yu <[email protected]> * feat: add metric fetch_limiter_timeout_count Signed-off-by: Ning Yu <[email protected]> * feat: add metric fetch_limiter_time Signed-off-by: Ning Yu <[email protected]> * feat: add metric back_pressure_state Signed-off-by: Ning Yu <[email protected]> * feat: add metric broker_quota_limit Signed-off-by: Ning Yu <[email protected]> * fix(backpressure): run checkers with fixed delay Signed-off-by: Ning Yu <[email protected]> * style: fix lint Signed-off-by: Ning Yu <[email protected]> * perf: drop too large values Signed-off-by: Ning Yu <[email protected]> * refactor: record -1 for other states Signed-off-by: Ning Yu <[email protected]> * test: fix tests Signed-off-by: Ning Yu <[email protected]> --------- Signed-off-by: Ning Yu <[email protected]>
- Loading branch information
1 parent
504ce4e
commit b470ba4
Showing
12 changed files
with
252 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
s3stream/src/main/java/com/automq/stream/s3/metrics/NoopObservableDoubleGauge.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright 2024, AutoMQ HK Limited. | ||
* | ||
* The use of this file is governed by the Business Source License, | ||
* as detailed in the file "/LICENSE.S3Stream" included in this repository. | ||
* | ||
* As of the Change Date specified in that file, in accordance with | ||
* the Business Source License, use of this software will be governed | ||
* by the Apache License, Version 2.0 | ||
*/ | ||
|
||
package com.automq.stream.s3.metrics; | ||
|
||
import io.opentelemetry.api.metrics.ObservableDoubleGauge; | ||
|
||
public class NoopObservableDoubleGauge implements ObservableDoubleGauge { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.