feat: Exporter for Proxy - #2199
Merged
AlexStocks merged 4 commits intoDec 21, 2023
Merged
Conversation
chenbt-hz
reviewed
Dec 12, 2023
chenbt-hz
reviewed
Dec 12, 2023
chenbt-hz
reviewed
Dec 12, 2023
dingxiaoshuai123
force-pushed
the
exporter_for_proxy
branch
from
December 12, 2023 11:45
086ab75 to
561d98b
Compare
dingxiaoshuai123
force-pushed
the
exporter_for_proxy
branch
from
December 13, 2023 02:12
561d98b to
9e75379
Compare
dingxiaoshuai123
force-pushed
the
exporter_for_proxy
branch
from
December 18, 2023 03:06
b58fdbd to
e13eff8
Compare
chenbt-hz
reviewed
Dec 19, 2023
| } | ||
| }() | ||
|
|
||
| // Clear the accumulated maximum delay to 0 every 15 seconds. |
Collaborator
There was a problem hiding this comment.
这边辛苦小帅调整下,改成动态可配置重置时间,会更好些。避免信息缺失
chenbt-hz
reviewed
Dec 19, 2023
| "datacenter": "" | ||
| } | ||
| ], | ||
| "stats": { |
dingxiaoshuai123
force-pushed
the
exporter_for_proxy
branch
from
December 19, 2023 06:07
7cf2b02 to
97039c2
Compare
chenbt-hz
approved these changes
Dec 19, 2023
AlexStocks
reviewed
Dec 21, 2023
| } | ||
|
|
||
| if c.MaxDelayRefreshTimeInterval <= 0 { | ||
| return errors.New("invalid max_delay_refresh_time_interval") |
Contributor
There was a problem hiding this comment.
max_delay_refresh_time_interval must be greater than 0
AlexStocks
reviewed
Dec 21, 2023
| return redis.NewErrorf("err:%s.", err) | ||
| } | ||
| if d := p.config.MaxDelayRefreshTimeInterval.Duration(); d <= 0 { | ||
| return redis.NewErrorf("invalid max_delay_refresh_time_interval") |
Contributor
There was a problem hiding this comment.
max_delay_refresh_time_interval must be greater than 0
AlexStocks
reviewed
Dec 21, 2023
|
|
||
| func (d *codisDiscovery) comparedis(new_instance *codisDiscovery) bool { | ||
| var addrs []string | ||
| var addrs, addrsProxy []string |
Contributor
There was a problem hiding this comment.
var (
addrs []string
addrsProxy []string
diff bool
)
AlexStocks
reviewed
Dec 21, 2023
| } | ||
|
|
||
| type futureKeyForProxy struct { | ||
| addr, ID, productName string |
AlexStocks
reviewed
Dec 21, 2023
|
|
||
| func (f *futureForProxy) Done(key futureKeyForProxy, val error) { | ||
| f.Lock() | ||
| defer f.Unlock() |
Contributor
There was a problem hiding this comment.
defer func() {
f.Unlock()
f.wait.Done()
}()
AlexStocks
reviewed
Dec 21, 2023
| elemType := field.Index(j).Type() | ||
| elemValue := field.Index(j) | ||
| if elemType.Kind() == reflect.Struct { | ||
| var key string |
Contributor
There was a problem hiding this comment.
key := elemValue.Field(0).String()
for p := 1; p < elemValue.NumField(); p++ {
cmdResult[key] = append(cmdResult[key], elemValue.Field(p).Int())
}
AlexStocks
reviewed
Dec 21, 2023
AlexStocks
reviewed
Dec 21, 2023
dingxiaoshuai123
force-pushed
the
exporter_for_proxy
branch
from
December 21, 2023 06:11
97039c2 to
e6f0775
Compare
dingxiaoshuai123
force-pushed
the
exporter_for_proxy
branch
from
December 21, 2023 06:16
e6f0775 to
f7c73b8
Compare
AlexStocks
approved these changes
Dec 21, 2023
bigdaronlee163
pushed a commit
to bigdaronlee163/pika
that referenced
this pull request
Jun 8, 2024
* First edition * Exporter collects Proxy information. * Improve metrics * Dynamically adjust refresh time.
cheniujh
pushed a commit
to cheniujh/pika
that referenced
this pull request
Sep 24, 2024
* First edition * Exporter collects Proxy information. * Improve metrics * Dynamically adjust refresh time.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
issue : #2201
issue : #2208
Add metric collection for Proxy instances in the exporter

以下是本地压测set命令时, exporter采集的有关proxy的结果: