feat(prometheus): Phase 2 - Chrome & Chrome-Go metrics endpoints#1083
Merged
GrammaTonic merged 4 commits intodevelopfrom Dec 28, 2025
Merged
feat(prometheus): Phase 2 - Chrome & Chrome-Go metrics endpoints#1083GrammaTonic merged 4 commits intodevelopfrom
GrammaTonic merged 4 commits intodevelopfrom
Conversation
…nners (TASK-013 to TASK-019) Co-authored-by: GrammaTonic <8269379+GrammaTonic@users.noreply.github.com>
GrammaTonic
approved these changes
Dec 28, 2025
Co-authored-by: GrammaTonic <8269379+GrammaTonic@users.noreply.github.com>
GrammaTonic
approved these changes
Dec 28, 2025
Co-authored-by: GrammaTonic <8269379+GrammaTonic@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Pick up issue for resolution
feat(prometheus): Phase 2 - Chrome & Chrome-Go metrics endpoints
Dec 28, 2025
GrammaTonic
approved these changes
Dec 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Pull Request Description
🔀 Merge Strategy
This repository uses SQUASH MERGE as the standard merge strategy.
Why Squash Merge?
mainbranch - easier to understand project evolutionHow to Create a PR (Recommended):
How to Merge (Recommended):
main, you MUST back-syncdevelop(see Post-Merge Back-Sync section below).Branch Sync Requirements:
mainbranch:git pull origin maindevelopbranch:git pull origin developQuick sync commands:
Post-Merge Back-Sync (CRITICAL after squash merging to main):
Why is this needed?
When you squash merge a PR from
developtomain, the individual commits fromdevelopare condensed into a single commit onmain. This causesdevelopto appear "ahead" ofmainin git history, even though the code is identical. The back-sync merge resolves this divergence and prevents:developWhen to perform back-sync:
develop→main) with squash mergemainwith squash mergedevelop(develop will be promoted later)How to perform back-sync:
Alternative (using GitHub CLI):
Verification:
Troubleshooting:
Summary
Extends Prometheus metrics endpoint from Phase 1 standard runner to Chrome and Chrome-Go variants. Enables concurrent monitoring of all three runner types on distinct host ports without conflicts.
Type of Change
Related Issues
🔄 Changes Made
Files Modified
Core Implementation (5 files, 100 lines):
docker/entrypoint-chrome.sh- Metrics lifecycle (startup, background processes, cleanup)docker/Dockerfile.chrome- Metrics scripts copy, EXPOSE 9091docker/Dockerfile.chrome-go- Metrics scripts copy, EXPOSE 9091docker/docker-compose.chrome.yml- Port 9092:9091, env vars, job log volumedocker/docker-compose.chrome-go.yml- Port 9093:9091, env vars, job log volumeTesting & Documentation (3 files, 781 lines):
tests/integration/test-phase2-metrics.sh- Automated validationtests/integration/PHASE2_TESTING_GUIDE.md- Deployment walkthroughdocs/features/PHASE2_IMPLEMENTATION_SUMMARY.md- Release notesKey Changes
1. Shared Entrypoint Integration
entrypoint-chrome.sh2. Port Mapping Strategy
3. Metrics Reuse
metrics-server.shandmetrics-collector.shfrom Phase 1standard,chrome,chrome-go4. Persistent Job Logs
🧪 Testing
Testing Performed
Test Coverage
Manual Testing Steps
Per
tests/integration/PHASE2_TESTING_GUIDE.md:docker build -f docker/Dockerfile.chrome ...docker-compose -f docker/docker-compose.chrome.yml up -d./tests/integration/test-phase2-metrics.shcurl http://localhost:9092/metrics | grep runner_type📸 Screenshots/Demos
N/A - Backend metrics endpoints
🔒 Security Considerations
📚 Documentation
docs/updated (PHASE2_IMPLEMENTATION_SUMMARY.md)🚀 Deployment Notes
Build Requirements:
Prometheus Scrape Config:
✅ Checklist
🤖 AI Review Request
/cc @copilot
Note for Reviewers:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.