Skip to content

Modify log info about fetching metrics - #219

Merged
sczyh30 merged 1 commit into
alibaba:masterfrom
xcaspar:master
Nov 1, 2018
Merged

Modify log info about fetching metrics#219
sczyh30 merged 1 commit into
alibaba:masterfrom
xcaspar:master

Conversation

@xcaspar

@xcaspar xcaspar commented Nov 1, 2018

Copy link
Copy Markdown
Member

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

CLAassistant commented Nov 1, 2018

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@sczyh30 sczyh30 added the to-review To review label Nov 1, 2018
@sczyh30
sczyh30 requested a review from CarpenterLee November 1, 2018 02:30

@sczyh30 sczyh30 left a comment

Copy link
Copy Markdown
Member

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

sczyh30 commented Nov 1, 2018

Copy link
Copy Markdown
Member

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