-
Notifications
You must be signed in to change notification settings - Fork 386
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
🌱 test/e2e,cmd/test: scrape metrics for test servers and e2e tests #2774
Conversation
d05581a
to
8a22557
Compare
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.
Where are the bits in e.g. make
that actually start Prometheus, etc?
@stevekuznetsov re:
this is part 2, as mentioned in the summary 😛 working on that now, wanted to have the code in first. EDIT: I made all the necessary changes in the Makefile in this PR as well. |
d44f05a
to
f16f379
Compare
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 think the make targets as written won't actually stop prometheus when e2e tests fail. Added comments where I think changes are needed.
253b6e0
to
09f40d2
Compare
952eeec
to
c474764
Compare
c474764
to
4106c8f
Compare
848ecb4
to
8c3160d
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sttts The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Do we want tests to fail if there are (unrelated) issues with Prometheus?
|
/retest |
"kcp prometheus scrape target never became healthy" - what does this mean exactly? |
looking |
8c3160d
to
361e9da
Compare
Re-tagging as @sttts was happy with it 😄 |
Summary
This adds support for scraping metrics via Prometheus for e2e tests and local shard testing. If the environment variable
PROMETHEUS_URL
is set, scraping targets are being configured automatically.For e2e tests,
ARTIFACT_DIR
needs to be set additionally.This is the first part of adding scraping support. The second part will add wiring in CI.
Related issue(s)