Skip to content

Commit d43e370

Browse files
committed
resource_metadata
1 parent 5469513 commit d43e370

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

docs/templates/resource-metadata.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,28 @@ icons:
103103
- Database `/icon/database.svg`
104104

105105
We also have other icons related to the IDEs. You can see all the icons
106-
[here](https://github.com/coder/coder/tree/main/site/static/icon).
106+
[here](./icons.md).
107+
108+
## Agent Metadata
109+
110+
In cases where you want to present automatically updating, dynamic values. You
111+
can use the `metadata` block in the `coder_agent` resource. For example:
112+
113+
```hcl
114+
resource "coder_agent" "dev" {
115+
os = "linux"
116+
arch = "amd64"
117+
dir = "/workspace"
118+
metadata {
119+
name = "Process Count"
120+
script = "ps aux | wc -l"
121+
interval = 1
122+
timeout = 3
123+
}
124+
}
125+
```
126+
127+
Read more [here](./agent-metadata.md).
107128

108129
## Up next
109130

0 commit comments

Comments
 (0)