-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add Admin port and group all ports in one file #1442
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1442 +/- ##
======================================
Coverage 100% 100%
======================================
Files 165 165
Lines 7539 7510 -29
======================================
- Hits 7539 7510 -29
Continue to review full report at Codecov.
|
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.
LGTM apart from a couple of questions and one suggestion.
cmd/flags/admin.go
Outdated
|
||
// AddFlags registers CLI flags. | ||
func (s *AdminServer) AddFlags(flagSet *flag.FlagSet) { | ||
flagSet.Int(healthCheckHTTPPort, 0, "(deprecated) The http port for the health check service") |
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.
We have other deprecated options as well and I don't think they follow a standard:
--cassandra-archive.enable-dependencies-v2 DEPRECATED: Jaeger will...
--span-storage.type string Deprecated; please use SPAN_STORAGE_TYPE...
Deprecated;
seems to be most used pattern. One good practice is also to point users to the property that is replacing the deprecated value. In this case, the adminHTTPPort
:
flagSet.Int(healthCheckHTTPPort, 0, "(deprecated) The http port for the health check service. See " + healthCheckHTTPPort)
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.
Normalized all flags to (deprecated) see {replacement flag}
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package ports |
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.
Why is this needed? O_O
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.
I added an explanation to CONTRIBUTING.md
This is a breaking change that will probably impact everyone who is using Jaeger in production, as they are probably monitoring Jaeger via Prometheus. We should communicate this change as loud as possible. |
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
…ment} Signed-off-by: Yuri Shkuro <ys@uber.com>
f968aed
to
cbccc24
Compare
Hi All, super appreciate the project and all the work that goes into it. I just spent an hour wondering where my metrics went only to find this PR. I could find nothing in the release notes. In the future can we make sure to have an PR label that release leads could look at to find all breaking changes? Or maybe have a draft changelog that is updated with every PR by the PR author? |
@gouthamve apologies, we missed it from release notes. I added a PR #1595 to indicate this was a breaking change. |
Which problem is this PR solving?
Health checks, metrics, and other housekeeping data should not be exposed on the ports that also serve public APIs
/metrics
from the query port to internal (health-check) #1332Short description of the changes
ports/ports.go
for easier referencehealth-check-http-port
is deprecated and replaced byadmin-http-port
DefaultHTTPPort = 14271
is deprecated and repurposed as the agent's admin port