- The definition — the metric’s name, type, and description, managed with
poly metrics. - The value — written during a call from function code with
conv.write_metric(...), covered in observability.
poly metrics add and poly metrics edit take effect for the whole project straight away, with no push step.
Additionally you must exercise caution when adding a new metric,
as it can be deactivated but not easily removed.
What a metric holds
Name and type cannot be changed after creation, so they are worth getting right first time. Everything else can be edited later.
Working with metrics
poly metrics list before adding anything. Metrics can accumulate, and we want to avoid making multiple versions in error.
Omitting the flags on add or edit drops into an interactive prompt instead — useful when you are creating a metric by hand rather than scripting it.
Retiring a metric
There is no delete. To retire a metric, deactivate it:Moving metrics between projects
export and import allow you to import/export a yaml file listing
all metrics in a project.
This can be kept and updated for version control
but is not currently treated as a core resource by ADK.
--dry-run first to see what a file would create before it creates it:
Related pages
- Observability — writing metrics and logs from function code, and inspecting real calls
- Functions — the
conv.write_metricAPI these definitions back

