Repository navigation
Replace providers with environment agents in the user guide #24
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
Merged
jenniferubah
merged 2 commits into
dcm-project:main
from
jenniferubah:replace-provider-with-agent
Oct 15, 2026
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| --- | ||
| title: Agents | ||
| type: docs | ||
| weight: 2 | ||
| --- | ||
|
|
||
| Environment agents are lightweight processes that run in a target environment | ||
| and act as the intermediary between DCM and the service providers deployed | ||
| there. Each agent registers with the control plane, reports health via | ||
| heartbeats, and routes resource operation requests to the appropriate service | ||
| provider. | ||
|
|
||
| Agents typically **self-register** when they start. The CLI exposes | ||
| **read-only** list and get operations so you can inspect registered agents and | ||
| their health. Manual registration is also available from the | ||
| [DCM UI](../ui/#agents) when automatic registration is not used. | ||
|
|
||
| ## Listing Agents | ||
|
|
||
| Use `dcm agent list` to display all registered environment agents: | ||
|
|
||
| ```bash | ||
| dcm agent list | ||
| ``` | ||
|
|
||
| Example output: | ||
|
|
||
| ``` | ||
| ID NAME ENVIRONMENT HEALTH CREATED | ||
| agent-123 kubevirt-east production ready 2026-03-09T10:00:00Z | ||
| agent-456 kubevirt-west staging ready 2026-03-10T14:45:00Z | ||
| ``` | ||
|
|
||
| ### Filtering by Health Status | ||
|
|
||
| Use the `--health-status` flag to show only agents with a specific health status | ||
| (`ready`, `congested`, or `unavailable`): | ||
|
|
||
| ```bash | ||
| dcm agent list --health-status ready | ||
| ``` | ||
|
|
||
| ### Pagination | ||
|
|
||
| For environments with many agents, use pagination flags to control the output: | ||
|
|
||
| - `--page-size` — Maximum number of agents to return per page. | ||
| - `--page-token` — Token for retrieving the next page of results (returned in | ||
| the previous response). | ||
|
|
||
| ```bash | ||
| dcm agent list --page-size 10 | ||
| ``` | ||
|
|
||
| ## Getting Agent Details | ||
|
|
||
| Use `dcm agent get` to retrieve detailed information about a single agent: | ||
|
|
||
| ```bash | ||
| dcm agent get agent-123 | ||
| ``` | ||
|
|
||
| To view the full details as JSON: | ||
|
|
||
| ```bash | ||
| dcm agent get agent-123 -o json | ||
| ``` | ||
|
|
||
| Example JSON output: | ||
|
|
||
| ```json | ||
| { | ||
| "agent_id": "agent-123", | ||
| "name": "kubevirt-east", | ||
| "environment": "production", | ||
| "service_types": ["vm", "container"], | ||
| "cost": "medium", | ||
| "topic_name": "dcm.agent.kubevirt-east", | ||
| "health_status": "ready", | ||
| "last_heartbeat": "2026-03-09T10:05:00Z", | ||
| "create_time": "2026-03-09T10:00:00Z", | ||
| "update_time": "2026-03-09T10:05:00Z" | ||
| } | ||
| ``` | ||
|
|
||
| ## Agent Health | ||
|
|
||
| Each agent reports a **health status** based on its last heartbeat: | ||
|
|
||
| - **`ready`** — The agent is reachable and operating normally. | ||
| - **`congested`** — The agent is reachable but its message consumer lag is | ||
| elevated. | ||
| - **`unavailable`** — The agent has not sent a recent heartbeat or is otherwise | ||
| not available for placement. | ||
|
|
||
| These fields are updated automatically as agents send periodic heartbeats to | ||
| DCM. |
This file was deleted.
Oops, something went wrong.
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: superfluous "a", and should be "removed"