Skip to content

Update run-with-prometheus to support local dev#4052

Open
mjudeikis wants to merge 1 commit intokcp-dev:mainfrom
mjudeikis:prom.script
Open

Update run-with-prometheus to support local dev#4052
mjudeikis wants to merge 1 commit intokcp-dev:mainfrom
mjudeikis:prom.script

Conversation

@mjudeikis
Copy link
Copy Markdown
Contributor

Summary

So one can easily run prometheus when developing metrics or anything metrics related

What Type of PR Is This?

/kind cleanup

Related Issue(s)

Fixes #

Release Notes

make run-with-prometheus work for local dev

@kcp-ci-bot kcp-ci-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Apr 21, 2026
@kcp-ci-bot
Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kcp-ci-bot kcp-ci-bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Apr 21, 2026
@kcp-ci-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign sttts for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mjudeikis
Copy link
Copy Markdown
Contributor Author

/test all

@kcp-ci-bot kcp-ci-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 21, 2026
@mjudeikis
Copy link
Copy Markdown
Contributor Author

/test all

@mjudeikis mjudeikis marked this pull request as ready for review April 21, 2026 06:28
@kcp-ci-bot kcp-ci-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 21, 2026
@mjudeikis mjudeikis changed the title Update run-with-prmetheus to support local dev Update run-with-prometheus to support local dev Apr 21, 2026
Comment thread hack/run-with-prometheus.sh Outdated
if [ ! -x "${PROMETHEUS}" ]; then
echo "prometheus binary not found at ${PROMETHEUS}" >&2
exit 1
fi
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is this necessary? What didn't work about old approach? make prometheus should never succeed if it fails to download Prometheus.

Comment thread Makefile Outdated

.PHONY: prometheus
prometheus: $(PROMETHEUS)
@echo $(PROMETHEUS)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

uget already prints the binary and only the binary path if UGET_PRINT_PATH is set. There's no need to echo something here. In fact, this breaks uget and forces you to have the tail -n1 in the prometheus script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has signed the DCO. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants