Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/docs/user-guide/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Learn how to manage DCM resources using the CLI or the web UI.
output formats, and shell completion.
- **[Authentication](../getting-started/authentication/)** — Log in, use bearer
tokens, and work with auth-enabled control planes.
- **[Providers](providers/)** — View registered service providers and their
health status.
- **[Agents](agents/)** — View registered environment agents and their health
status.
- **[Service Types](service-types/)** — Browse available service type
definitions.
- **[Catalog Items](catalog-items/)** — Create and manage reusable resource
Expand Down
97 changes: 97 additions & 0 deletions content/docs/user-guide/agents.md
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.
100 changes: 0 additions & 100 deletions content/docs/user-guide/providers.md

This file was deleted.

9 changes: 4 additions & 5 deletions content/docs/user-guide/service-provider-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ weight: 7

Service provider resources are the actual infrastructure resources — such as
virtual machines, containers, or other services — created on
[providers](../providers/) when
[catalog item instances](../catalog-item-instances/) are provisioned. For
example, when you deploy a catalog item instance for a VM on a KubeVirt
provider, the control plane creates a KubeVirt VirtualMachine resource. That
underlying resource is the SP resource.
[agents](../agents/) when [catalog item instances](../catalog-item-instances/)
are provisioned. For example, when you deploy a catalog item instance for a VM
on a KubeVirt provider, the control plane creates a KubeVirt VirtualMachine
resource. That underlying resource is the SP resource.

SP resources are managed entirely by the control plane and are **read-only** in
the CLI. Each SP resource is linked to a specific catalog item instance and the
Expand Down
4 changes: 2 additions & 2 deletions content/docs/user-guide/service-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ Service types sit at the foundation of the DCM resource model:

- **Catalog items** reference a service type and must conform to its schema. See
[Catalog Items](../catalog-items/).
- **Providers** register with a specific service type, indicating what kinds of
resources they can host. See [Providers](../providers/).
- **Agents** register with one or more service types, indicating what kinds of
resources they can host. See [Agents](../agents/).
- **Catalog item instances** are ultimately deployed according to the schema
defined by the service type. See
[Catalog Item Instances](../catalog-item-instances/).
41 changes: 21 additions & 20 deletions content/docs/user-guide/ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,35 +61,36 @@ All tabs share the following interaction patterns:
- **Empty state** — When no data is available, the table shows an empty state
with a prompt to create the first resource where applicable.

## Providers
## Agents

The Providers tab lists all infrastructure providers registered with DCM.
Providers are created automatically when service provider instances connect and
register their available infrastructure.
The Agents tab lists all infrastructure environment agents registered with DCM.
Agents become available when they automatically register successfully with DCM
on startup

![Providers tab showing a table of registered providers with columns for display name, name, endpoint, service type, operations, status, and actions](/images/ui/providers-tab.png)
![Agents tab showing a table of registered agents with columns for name, environment, service types, cost, topic, health, and last hearbeat](/images/ui/agents-tab.png)

### Columns

| Column | Description |
| ------------ | ------------------------------------------------------------------------------------- |
| Display name | Human-readable label, with the provider ID shown as a caption below. |
| Name | Unique internal name of the provider. |
| Endpoint | The provider's API endpoint URL, with a copy button. |
| Service type | The service type the provider supports (e.g., `vm`). |
| Operations | Operations the provider exposes, shown as chips. Overflow is shown as a "+N" tooltip. |
| Status | Current health status of the provider. |
| Actions | Edit and delete buttons. |
| Column | Description |
| -------------- | ---------------------------------------------------------------------- |
| Name | Unique internal name of the agent. |
| Environment | Displays the environment label for the agent (e.g., `dev`). |
| Service types | The list of service type the agent supports (e.g., `vm`, `container`). |
| Cost | Shows the cost level of the agent (e.g., `low`) |
| Topic | Topic name associated with the agent. |
| Health | Current health status of the agent. |
| Last heartbeat | Shows the last time a live check was recieved. |

### Actions

- **Register provider** — Opens a dialog to register a new provider (display
name, name, endpoint, service type, operations).
- **Edit** — Opens the edit dialog pre-filled with the current values.
- **Delete** — Opens a confirmation dialog before removing the provider.
- **Copy endpoint** — Copies the provider's API endpoint URL to the clipboard.
- **Register agent** — Opens a dialog to register a new agent ( name,
environment, service types, cost, topic, health and last heartbeat). By
default, the agent automatically self registers with DCM when deployed. The
register agent button can be used as a manual alternative to automatic self
registration. For example, a the self registration code is remove before

Copy link
Copy Markdown

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"

deploying the agent.

For CLI equivalent operations, see [Providers](../providers/).
For CLI equivalent operations, see [Agents](../agents/).

## Policies

Expand Down
Binary file added static/images/ui/agents-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/images/ui/providers-tab.png
Binary file not shown.
Loading