Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add rocksDB stats collect #43

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Feat: Add rocksDB stats collect #43

merged 1 commit into from
Apr 7, 2022

Conversation

xjlgod
Copy link
Contributor

@xjlgod xjlgod commented Apr 2, 2022

No description provided.

Comment on lines 160 to 174
wg.Add(2)
if instance.ComponentType == "storaged" {
wg.Add(3)
go func() {
defer wg.Done()
rocksDBStatus, err := getNebulaRocksDBStats(podIpAddress, podHttpPort)
if err != nil {
klog.Errorf("get query metrics from %s:%d failed: %v", podIpAddress, podHttpPort, err)
return
}
exporter.CollectMetrics(instance.Name, instance.ComponentType, namespace, clusterName, rocksDBStatus, ch)
}()
} else {
wg.Add(2)
}

Copy link
Contributor

@kqzh kqzh Apr 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use

wg.Add(2)
if instance.ComponentType == "storaged" {
    wg.Add(1)
}

Copy link
Contributor

@kqzh kqzh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kqzh kqzh merged commit ef1aced into vesoft-inc:master Apr 7, 2022
@kqzh kqzh mentioned this pull request Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants