Share Operational Information via Unit Metadata
A Unit's Overview tab in the web UI has a Dashboard panel that you can customize by adding Annotations to the Unit. Three kinds of Annotations are shown there:
Status-<name>adds a status chip to the Dashboard panel's header, reading<name>: <value>, with theStatus-prefix stripped off. Use it to post information you want teammates to see when they are working with that Unit, such as an ongoing incident or a freeze.URL-<link text>adds a link to the panel's URLs tab, with theURL-prefix stripped off for the link text and the value as the URL. Use it for playbooks, monitoring and logging dashboards, the running application, operational scripts, or whatever else you find useful.Readmeadds a Readme tab beside URLs, which renders the annotation's value as Markdown. Use it for notes on what the Unit is for and how to operate it.
Set them with --annotation on cub unit update:
cub unit update --patch --space prod backend \
--annotation Status-Freeze=until-dec-15 \
--annotation URL-Runbook=https://wiki.example.com/runbooks/backend
To remove one, pass its key with the value -, such as --annotation Status-Freeze=-. A value given with --annotation cannot contain , or =, since the flag splits on both, so a URL with a query string has to be set in the Unit's settings in the web UI, which edit its Annotations too.