feat: Add orchestration server — REST/WebSocket gateway and C++ agent gRPC client#32
Merged
Conversation
…ithub actions ci, modified pre-commit script to check server code formatting
…nd interval pinging
…move PrintCurrentAffinity to utils, move UUID saving and loading to Client, remove UUID creation from the agent
…sting connected agents
…ints; default CMake preset is now Debug build type
FW-Nagorko
reviewed
Jun 10, 2026
FW-Nagorko
requested changes
Jun 10, 2026
FW-Nagorko
left a comment
Collaborator
There was a problem hiding this comment.
Major issue regarding the missing BatchAck call to buffer, other than that the agent side looks good.
FW-Nagorko
reviewed
Jun 12, 2026
FW-Nagorko
reviewed
Jun 12, 2026
…s AckSnapshot on the buffer to release already sent metrics
…sn't mark overriden functions as virtual functions when called from constructor
FW-Nagorko
approved these changes
Jun 12, 2026
FW-Nagorko
left a comment
Collaborator
There was a problem hiding this comment.
All critical bugs seem resolved, the agent - server communication works properly in a test environment.
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.
Closes #7
This pull request implements the communication layer between the dashboard
and C++ agents. A Go server acts as a gateway — exposing REST and WebSocket
endpoints to the dashboard, while communicating with agents over gRPC.
The C++ agent gains a gRPC client stub to connect to the server and stream
metrics in response to received messages.
gRPC agent gateway (Go server)
GET /api/agentsREST endpoint that lists all connected agents and their statusPOST /api/agents/{id}/streamREST endpoint that dispatches a streaming task to a specific agent over a gRPC stream./ws?agent_id={id}WebSocket endpoint that forwards incoming metric frames from the agent to the connected dashboard clients. WebSocket connections are per-agent — the dashboard subscribes to a specific agent's stream.gRPC client (C++ agent)
These changes introduce a complete request/response + streaming pipeline between the dashboard and agents, laying the foundation for real-time metric observability.