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 pprof and create admin endpoint #1375

Merged
merged 3 commits into from
Apr 6, 2019

Conversation

konradgaluszka
Copy link
Contributor

@konradgaluszka konradgaluszka commented Feb 23, 2019

Resolves #1315

Refactored healthcheck package to have admin endpoint with both healthcheck and pprof endpoints

@yurishkuro
Copy link
Member

looks good overall. Please get the build green (make fmt, etc.)

pkg/adminendpoint/adminendpoint.go Outdated Show resolved Hide resolved
pkg/adminendpoint/adminendpoint_test.go Outdated Show resolved Hide resolved
@konradgaluszka konradgaluszka force-pushed the add-pprof-endpoint branch 2 times, most recently from b5b655f to f8c52be Compare February 26, 2019 13:23
@yurishkuro
Copy link
Member

Hm, I thought we had some bot that would add lint failures as comments on the appropriate lines.

The build is failing with:

Lint Failures
/home/travis/gopath/src/github.com/jaegertracing/jaeger/pkg/adminendpoint/adminendpoint.go:31:1: comment on exported type AdminEndpoint should be of the form "AdminEndpoint ..." (with optional leading article)
/home/travis/gopath/src/github.com/jaegertracing/jaeger/pkg/adminendpoint/healthcheck/healthcheck.go:100:1: comment on exported method HealthCheck.GetHandlerFunc should be of the form "GetHandlerFunc ..."

@konradgaluszka
Copy link
Contributor Author

There are still some build errors, I will check it..

@codecov
Copy link

codecov bot commented Mar 1, 2019

Codecov Report

Merging #1375 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1375   +/-   ##
=======================================
  Coverage   99.82%   99.82%           
=======================================
  Files         173      173           
  Lines        8179     8179           
=======================================
  Hits         8165     8165           
  Misses          7        7           
  Partials        7        7

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dbb6ea7...47a3b83. Read the comment docs.

@ghost ghost assigned yurishkuro Mar 1, 2019
@konradgaluszka konradgaluszka force-pushed the add-pprof-endpoint branch 3 times, most recently from 75de2d2 to 8695651 Compare March 1, 2019 23:10
@yurishkuro
Copy link
Member

restarted crossdock integration test 3 times, it keeps failing, might be something to do with this PR.

@yurishkuro
Copy link
Member

e.g. the renaming of the health port CLI flag

@konradgaluszka
Copy link
Contributor Author

The build is not stable for some reason. I've triggered it 3 times and got 3 different results. Crossdock was failing on my local machine 50% of the time even without my changes.

@pavolloffay
Copy link
Member

@konradgaluszka did you manage to get stable builds? I have restarted travis and it seems to be fine.

@yurishkuro could this be merged?

@konradgaluszka
Copy link
Contributor Author

konradgaluszka commented Mar 6, 2019

@konradgaluszka did you manage to get stable builds? I have restarted travis and it seems to be fine.

I am afraid build is still unstable. I was running the build locally on master branch (before my change) and still got failures in crossdock:


✗ [endtoend] test_driver→ (services=go) ⇒ Fail: could not retrieve traces from query service
✓ [endtoend] test_driver→ (services=java) ⇒ Pass
✓ [endtoend] test_driver→ (services=node) ⇒ Pass
✓ [endtoend] test_driver→ (services=python) ⇒ Pass
✓ [endtoend] test_driver→ (services=zipkin-brave-json) ⇒ Pass
✓ [endtoend] test_driver→ (services=zipkin-brave-json-v2) ⇒ Pass
✓ [endtoend] test_driver→ (services=zipkin-brave-thrift) ⇒ Pass

Do you have consistent runs for ./scripts/travis/build-crossdock.sh?

@objectiser
Copy link
Contributor

This test seems to be unstable, not related to this PR:

--- FAIL: TestSaramaConsumerWrapper_start_Messages (0.01s)
    consumer_test.go:161: PASS:	Process(*consumer.saramaMessageWrapper)
    metricstest.go:49: 
        	Error Trace:	metricstest.go:49
        	            				metricstest.go:37
        	            				consumer_test.go:167
        	Error:      	Not equal: 
        	            	expected: int(0)
        	            	actual  : int64(1)
        	Test:       	TestSaramaConsumerWrapper_start_Messages
        	Messages:   	expected metric name: sarama-consumer.partitions-held, tags: map[]

Copy link
Contributor

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

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

LGTM, just need to either document the breaking change or provide a backwards compatible option.

cmd/flags/flags.go Outdated Show resolved Hide resolved
@konradgaluszka
Copy link
Contributor Author

LGTM, just need to either document the breaking change or provide a backwards compatible option.

I couldn't use aliasing in viper, because it does not work with reading from config:
spf13/viper#560

@jpkrohling
Copy link
Contributor

@konradgaluszka, looks like this last commit failed the DCO. Would you please amend it?

Signed-off-by: Konrad Galuszka <konrad.galuszka.ctr@sabre.com>

Add pprof endpoints (jaegertracing#1315)
@yurishkuro yurishkuro merged commit 64f8bce into jaegertracing:master Apr 6, 2019
@yurishkuro
Copy link
Member

Thanks!

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.

6 participants