Metadata
This feature is alpha. Names, fields, and behavior can change or be removed at any time without notice.
Stash entries that have a label show as metadata in the Massdriver UI. Use metadata for values that everyone on the team needs to see, such as a schema version or the result of a deployment step. Everyone with stash:view on the entity sees its metadata. Metadata needs no setup. Add a label when you write the stash entry:
mass alpha stash set billing-dev-app.schema.version "42" --label "Schema version"
Where metadata shows​
| Place | Entries |
|---|---|
| The Signals tab of an instance | The instance's widgets, the results of its latest deployment, its scorecards, and its labeled entries. With no labeled entries, the tab says No signals. |
| A deployment's details | A Results section with the deployment's results, and a Deployment metadata section with the labeled entries that its steps wrote |
| The Metadata card on the project overview | Labeled entries on the project |
What it looks like​
| Entry | Looks like | Meaning |
|---|---|---|
| A TEXT entry | The label, the key, and the value. | |
| A JSON entry | One tile for each top-level field. A nested object shows as JSON text in its tile. | |
| An entry with flags | Pills show when the entry expires, when it is immutable, and when it is sensitive. A sensitive value is masked unless you have stash:export on the stash. | |
| Unlabeled entries | Entries without a label do not show as rows. The Signals tab counts them and gives the command that lists them. |
The project card shows the label, the value, and the expiry pill for each entry.
Keys that start with md/ do not show as rows in any of these places, and the Signals tab does not count them as unlabeled entries. Widgets read them instead.
Widgets on the Signals tab​
The instance Signals tab shows the instance's automatic widgets above the entries. Each widget shows as a stat with a label and a value.
| Stat | Key | Value |
|---|---|---|
| Health | md/v1/health | A colored dot and the state |
| Traffic | md/v1/traffic | A colored dot and the traffic label for the lines that leave the instance, such as 240 rps · 180 ms. It says "stale" when the data is more than 10 minutes old. |
| Usage | md/v1/usage | The usage bar and the numbers, such as 37 / 100 |
The label of a stat is the stash entry's label. A usage stat without an entry label uses the label field of its value. Otherwise the stat uses the default label: Health, Traffic, or Usage.
Each stat has a tooltip, for example Connection pool: 37 of 100 (37%) and Updated 2m ago.
The tab shows only the widgets that have a valid value. When the instance has none, the widgets do not show. When you hide automatic widgets with the Widgets button in the canvas toolbar, the widgets on the Signals tab are hidden too.
Deployment results on the Signals tab​
Below the widgets, a card shows the results of the instance's latest deployment that has results, and the instance's drift and release. The Widgets button hides this card too. See Where results show.
Scorecards on the Signals tab​
Below the deployment results, a Scorecards card shows the instance's scorecards, a warning when its configuration changes are not deployed, and its delivery, reliability, and currency. The Widgets button hides this card too. See Instance scorecards.
Live updates​
The Signals tab and the Metadata card on the project overview update when a stash value changes. You do not need to reload the page.
The Deployment metadata section also updates when you open the deployment's details from the History tab on the canvas. When you open the details from the web app's dashboard or a repository page, the section loads once and does not update.