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

Modify log info about fetching metrics #219

Merged
merged 1 commit into from
Nov 1, 2018
Merged

Conversation

xcaspar
Copy link
Member

@xcaspar xcaspar commented Nov 1, 2018

Describe what this PR does / why we need it

See #215 for details.

Does this pull request fix one issue?

Fixes #215

Describe how you did it

Add a "No metrics" content judgment, modify the log level and message in the try-catch block, and add a method in the MachineInfo class to identify the application in the log message.

Describe how to verify it

Run a client and dashboard and test for metrics and no metrics

Special notes for reviews

The MetricFetcher file is formatted, so some of attributes line numbers are changed.

@CLAassistant
Copy link

CLAassistant commented Nov 1, 2018

CLA assistant check
All committers have signed the CLA.

@sczyh30 sczyh30 added the to-review To review label Nov 1, 2018
Copy link
Member

@sczyh30 sczyh30 left a comment

Choose a reason for hiding this comment

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

LGTM

@sczyh30 sczyh30 merged commit ef96b15 into alibaba:master Nov 1, 2018
@sczyh30
Copy link
Member

sczyh30 commented Nov 1, 2018

Thanks for contributing!

@sczyh30 sczyh30 removed the to-review To review label Nov 1, 2018
@sczyh30 sczyh30 removed the request for review from CarpenterLee November 1, 2018 06:16
sczyh30 pushed a commit that referenced this pull request Dec 25, 2018
- Receiving "No metrics" response won't cause error log
- Improve log about fetching metrics

(cherry picked from commit ef96b15)
Arlmls pushed a commit to Arlmls/Sentinel that referenced this pull request Jan 8, 2019
- Receiving "No metrics" response won't cause error log
- Improve log about fetching metrics
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.

INFO c.t.c.s.d.metric.MetricFetcher - handleBody line error: No metrics
3 participants