Note
This command is introduced in VAST Cluster 5.4.3.
This command creates a metrics label.
Usage
tenantmetriclabel create --key KEY
[--default-value VALUE]
[--description DESCRIPTION]Required Parameters
Options
Sets a default value for the label. The default value appears in prometheus metrics output for metrics associated with any tenant that does not have the label set with a specific value. Specify Default: blank. For example, | |
| Adds a description for the label. Specify For example, |
Example
This example creates a label for labeling customers. Since it sets the default value to "favoritecustomer" this customer value will appear in metrics for all tenants that you do not explicitly set the label on.
vcli: admin> tenantmetriclabel create --key customer --default-value favoritecustomer --description 'label customers'
Created metric label: customer
+---------------+---------------------+
| Id | 1 |
| Key | customer |
| Default-value | favoritecustomer |
| Description | label customers |
| Created-at | 2026-04-13 14:09:48 |
+---------------+---------------------+