Skip to content

[SCB-252] Overwatch Integration#531

Closed
zhengyangyong wants to merge 9 commits into
apache:masterfrom
zhengyangyong:SCB-252
Closed

[SCB-252] Overwatch Integration#531
zhengyangyong wants to merge 9 commits into
apache:masterfrom
zhengyangyong:SCB-252

Conversation

@zhengyangyong
Copy link
Copy Markdown

@zhengyangyong zhengyangyong commented Jan 26, 2018

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [SCB-XXX] Fixes bug in ApproximateQuantiles, where you replace SCB-XXX with the appropriate JIRA issue.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

Integration with Overwatch
Also samples "metrics-overwatch-sample"

zhengyangyong added 6 commits January 26, 2018 09:09
Signed-off-by: zhengyangyong <yangyong.zheng@huawei.com>
Signed-off-by: zhengyangyong <yangyong.zheng@huawei.com>
Signed-off-by: zhengyangyong <yangyong.zheng@huawei.com>
Signed-off-by: zhengyangyong <yangyong.zheng@huawei.com>
Signed-off-by: zhengyangyong <yangyong.zheng@huawei.com>
Signed-off-by: zhengyangyong <yangyong.zheng@huawei.com>
@coveralls
Copy link
Copy Markdown

coveralls commented Jan 26, 2018

Coverage Status

Coverage increased (+0.03%) to 87.484% when pulling a96ba8d on zhengyangyong:SCB-252 into ed15183 on apache:master.

zhengyangyong added 2 commits January 26, 2018 10:39
Signed-off-by: zhengyangyong <yangyong.zheng@huawei.com>
Signed-off-by: zhengyangyong <yangyong.zheng@huawei.com>

@Component
public class MetricsBootListener implements BootListener {
private static final Logger logger = LoggerFactory.getLogger(MetricsBootListener.class);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For conventions, better to use LOGGER

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

DONE


public OverwatchMetricsPublisher(HealthCheckerManager checkerManager) {
this.checkerManager = checkerManager;
String url = "http://" + DynamicPropertyFactory.getInstance()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

publisher should be full customize by developers, including schema(https), and certificates etc.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

DONE

@Component
public class MetricsPublisher implements ApplicationListener<ApplicationEvent> {
private static final Logger LOGGER = LoggerFactory.getLogger(MetricsPublisher.class);
private static final Logger logger = LoggerFactory.getLogger(MetricsPublisher.class);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why changed to logger? for static final varibles, use upper case, see this code below(METRICS_PROMETHEUS_PORT).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

DONE

…l path config

Signed-off-by: zhengyangyong <yangyong.zheng@huawei.com>
@zhengyangyong zhengyangyong deleted the SCB-252 branch March 27, 2018 06:30
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.

3 participants