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

prometheus.operator.* add debug endpoint to view generated scrape configs. #5311

Merged
merged 6 commits into from
Oct 3, 2023

Conversation

captncraig
Copy link
Contributor

This just makes the operator components a little easier to debug when we have concerns about relabel rules or things like that.

  • Adds a handler for $COMPONENT/scrapeConfig/$NS/$NAME that will serve the generated scrape config in yaml form.
  • Add link to that url from UI debug info for each monitor crd.

The handler itself is pretty gross since there is not much routing or anything, I didn't want to pull in too many libraries or anything. But this is not how I'd want to do this if we scaled the concept to more complex endpoints.

@captncraig captncraig requested a review from a team as a code owner September 26, 2023 20:13
Copy link
Contributor

@spartan0x117 spartan0x117 left a comment

Choose a reason for hiding this comment

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

LGTM!

@captncraig captncraig enabled auto-merge (squash) October 3, 2023 15:14
@captncraig captncraig merged commit 3684eea into main Oct 3, 2023
@captncraig captncraig deleted the cmp_operator_obs branch October 3, 2023 19:49
tpaschalis pushed a commit to tpaschalis/agent that referenced this pull request Oct 4, 2023
…onfigs. (grafana#5311)

* add endpoint to debug generated scrape configs

* changelog
tpaschalis pushed a commit to tpaschalis/agent that referenced this pull request Oct 4, 2023
…onfigs. (grafana#5311)

* add endpoint to debug generated scrape configs

* changelog
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Feb 22, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants