Skip to content

DaemonCli: Move check into startMetricsServer#39904

Merged
cpuguy83 merged 1 commit into
moby:masterfrom
yedamao:start-metrics-server
Sep 12, 2019
Merged

DaemonCli: Move check into startMetricsServer#39904
cpuguy83 merged 1 commit into
moby:masterfrom
yedamao:start-metrics-server

Conversation

@yedamao
Copy link
Copy Markdown
Contributor

@yedamao yedamao commented Sep 11, 2019

Fix TODO: move into startMetricsServer()
Fix errors.Wrap return nil when passed err is nil

Signed-off-by: HuanHuan Ye logindaveye@gmail.com

- What I did
In DaemonCli.start() method.
fix TODO move startMetricsServer prepare check into startMetricsServer()
fix return nil when daemon not HasExperimental

- How I did it
change function startMetricsServer() to DaemonCli's method
use errors.New() replace errors.Wrap()

- How to verify it
./bundles/binary-daemon/dockerd-dev --metrics-addr 0.0.0.0:7878 -D
- Description for the changelog

DaemonCli: Move check into startMetricsServer

- A picture of a cute animal (not mandatory but encouraged)

image

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

Thanks! I left some comments inline 👍

Comment thread cmd/dockerd/daemon.go Outdated
Comment thread cmd/dockerd/metrics.go Outdated
Comment thread cmd/dockerd/daemon.go Outdated
@yedamao
Copy link
Copy Markdown
Contributor Author

yedamao commented Sep 12, 2019

@thaJeztah Thanks your suggestion. please review again

@yedamao yedamao requested a review from thaJeztah September 12, 2019 04:59
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

thank you!

changes LGTM, but could you squash the commits so that there's only a single commit in this PR?

(let me know if you need help squashing 👍)

Fix TODO: move into startMetricsServer()
Fix errors.Wrap return nil when passed err is nil

Co-Authored-By: Sebastiaan van Stijn <thaJeztah@users.noreply.github.com>
Signed-off-by: HuanHuan Ye <logindaveye@gmail.com>
@yedamao yedamao force-pushed the start-metrics-server branch from e09cb16 to 88c554f Compare September 12, 2019 07:28
@yedamao yedamao requested a review from thaJeztah September 12, 2019 07:29
@yedamao
Copy link
Copy Markdown
Contributor Author

yedamao commented Sep 12, 2019

all commits squashed

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@thaJeztah
Copy link
Copy Markdown
Member

@cpuguy83 ptal

Copy link
Copy Markdown
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants