-
Notifications
You must be signed in to change notification settings - Fork 34
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
Make it possible to configure a metrics port in pods #392
Conversation
ad5a816
to
a209c7e
Compare
podbuilder/podbuilder_test.go
Outdated
Expect(getNames(runContainer.Ports)).NotTo(ContainElement("metrics")) | ||
}) | ||
|
||
It("does not expose the metrics port if not set", func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be "exposes the metrics port if set".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in next commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops sorry I missed this comment, thank you for fixing it! @paulosjca
This PR currently includes changes from #390
We (Spotify) are currently using this framework to set up automated benchmarking for our internal gRPC. While we have metrics from the driver for performance comparison, we would like to scrape and see actual metrics from the client/server in many cases. This PR adds a configuration
metricsPort
for both client and server. A metrics port with configured port number is exposed in the pod if configured, otherwise no extra ports are exposed.