Skip to content
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 default healthcheck port in the documentation #80

Merged
merged 2 commits into from
Jul 28, 2018

Conversation

ledor473
Copy link
Member

No description provided.

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

@black-adder could you verify for accuracy?

@@ -88,6 +88,7 @@ Port | Protocol | Function
14267 | TChannel | used by **jaeger-agent** to send spans in jaeger.thrift format
14268 | HTTP | can accept spans directly from clients in jaeger.thrift format
9411 | HTTP | can accept Zipkin spans in JSON or Thrift (disabled by default)
14269 | HTTP | Health check at **/**
Copy link
Member

Choose a reason for hiding this comment

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

isn't healthcheck at /health endpoint?

@yurishkuro
Copy link
Member

is there an issue / other PR this one can be linked to, for references / background?

@ledor473
Copy link
Member Author

@ledor473
Copy link
Member Author

As for the /health or /, I tried to test it against the collector but both the proper path and any random path returns HTTP 204. I think it's a bit confusing, but that could be treated as a different issue:

# curl -v localhost:14269/random
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 14269 (#0)
> GET /random HTTP/1.1
> Host: localhost:14269
> User-Agent: curl/7.52.1
> Accept: */*
> 
< HTTP/1.1 204 No Content
< Date: Wed, 23 May 2018 14:05:29 GMT
< 
* Curl_http_done: called premature == 0
* Connection #0 to host localhost left intact
# curl -v localhost:14269/
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 14269 (#0)
> GET / HTTP/1.1
> Host: localhost:14269
> User-Agent: curl/7.52.1
> Accept: */*
> 
< HTTP/1.1 204 No Content
< Date: Wed, 23 May 2018 14:04:01 GMT
< 
* Curl_http_done: called premature == 0
* Connection #0 to host localhost left intact
# curl -v localhost:14269/health
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 14269 (#0)
> GET /health HTTP/1.1
> Host: localhost:14269
> User-Agent: curl/7.52.1
> Accept: */*
> 
< HTTP/1.1 204 No Content
< Date: Wed, 23 May 2018 14:04:08 GMT
< 
* Curl_http_done: called premature == 0
* Connection #0 to host localhost left intact

@yurishkuro
Copy link
Member

@jpkrohling is this some sort of convention that we're serving health check at / instead of /health?

https://github.com/jaegertracing/jaeger/blob/7796f75dae1441c3a8a53abfaaf9ec3cb45b9705/pkg/healthcheck/handler.go#L121

@jpkrohling
Copy link
Contributor

Not really. The key part, though, is that it's on a dedicated port so that an admin can block this port from being exposed over the public internet. The handler will respond to any request on that port.

@jpkrohling
Copy link
Contributor

By the way: I think we'll (or should) end up consolidating the ports as part of jaegertracing/jaeger#773, so, we might end up with just two ports (private network, public internet).

@ghost ghost assigned yurishkuro Jul 28, 2018
@ghost ghost added the review label Jul 28, 2018
@yurishkuro yurishkuro merged commit 402831f into jaegertracing:master Jul 28, 2018
@ghost ghost removed the review label Jul 28, 2018
@yurishkuro
Copy link
Member

Thanks, @ledor473

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