# Agent Metadata (alpha)
Agent metadata is in an alpha state and may break or disappear at any time. With Agent Metadata, template admins can expose operational metrics from their workspaces to their users. It is the dynamic complement of [Resource Metadata](./resource-metadata.md). See the [Terraform reference](https://registry.terraform.io/providers/coder/coder/latest/docs/resources/agent#metadata). ## Examples All of these examples use [heredoc strings](https://developer.hashicorp.com/terraform/language/expressions/strings#heredoc-strings) for the script declaration. With heredoc strings, you can script without messy escape codes, just as if you were working in your terminal. Here's a standard set of metadata snippets for Linux agents: ```hcl resource "coder_agent" "main" { os = "linux" ... metadata { display_name = "CPU Usage" key = "cpu" # calculates CPU usage by summing the "us", "sy" and "id" columns of # vmstat. script = <