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

fix status count 0 #39

Merged
merged 1 commit into from
Jan 17, 2022
Merged

fix status count 0 #39

merged 1 commit into from
Jan 17, 2022

Conversation

kqzh
Copy link
Contributor

@kqzh kqzh commented Jan 7, 2022

No description provided.

@kqzh kqzh requested review from MegaByte875 and veezhang January 7, 2022 10:43
@@ -171,8 +171,8 @@ func (exporter *NebulaExporter) collect(wg *sync.WaitGroup, namespace, clusterNa
defer wg.Done()
statusMetrics, err := getNebulaComponentStatus(podIpAddress, podHttpPort)
if err != nil {
statusMetrics = []string{"count=0"}
Copy link
Contributor

Choose a reason for hiding this comment

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

You have handled metrics in getNebulaComponentStatus, it might be better to it handled ​ it in one place .

rename getNebulaComponentStatus to isNebulaComponentRunning?

Copy link
Contributor

@veezhang veezhang left a comment

Choose a reason for hiding this comment

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

LGTM

@veezhang veezhang merged commit 705b9d2 into vesoft-inc:master Jan 17, 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