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

feat: add HTML response handling for job and target endpoints #3652

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

CharlieTLe
Copy link

Description:
Adds support for HTML output in the target allocator.

Link to tracking Issue(s):

Testing:
End to end testing with chainsaw allows for inspecting the Target Allocator's HTML output.

To start the test, run

make prepare-e2e && ./bin/chainsaw test tests/e2e-targetallocator/targetallocator-prometheuscr/ --cleanup-delay 300s

Once the chainsaw tests starts, port-forward to the TA pod.

ns=$(k get deploy -A -l app.kubernetes.io/component=opentelemetry-targetallocator -o json | jq -r '.items[0].metadata.namespace') && k port-forward -n $ns deploy/prometheus-cr-targetallocator 8080:8080

Once port-forwarded, go to http://localhost:8080.

Documentation:

cmd/otel-allocator/server/server.go Fixed Show fixed Hide fixed
cmd/otel-allocator/server/server.go Fixed Show fixed Hide fixed
cmd/otel-allocator/server/server.go Fixed Show fixed Hide fixed
cmd/otel-allocator/server/server.go Fixed Show fixed Hide fixed
@CharlieTLe CharlieTLe force-pushed the otel-targetallocator-html branch from c9c6e2a to d6cb377 Compare January 23, 2025 02:45
@CharlieTLe CharlieTLe force-pushed the otel-targetallocator-html branch from d6cb377 to 4fc7fa4 Compare January 23, 2025 04:01
@CharlieTLe CharlieTLe force-pushed the otel-targetallocator-html branch from 4fc7fa4 to 76cf475 Compare January 24, 2025 02:08
@CharlieTLe CharlieTLe marked this pull request as ready for review January 24, 2025 05:07
@CharlieTLe CharlieTLe requested a review from a team as a code owner January 24, 2025 05:07
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.

UI for Jobs and Scrape Configs in Target Allocator Server
1 participant