This command sets or removes values for metrics labels for a tenant.
Usage
tenant set-metric-labels --id ID
[--labels LABELS ]|[--drop]
Required Parameters
| Specifies the tenant ID. |
Options
| Specifies which labels to set values for explicitly for the tenant and sets their values.
Specify For example, |
| Removes all metric label values from the tenant. |
Example
This example associates the (existing) labels purpose and region with the tenant whose ID is 2 and sets values for those labels for that tenant to internal and us-west.
vcli: admin> tenant set-metric-labels --id 2 --labels purpose=internal,region=us-west
Successfully set metric labels for tenant 2
This example removes all label values set on the tenant that has ID 3:
vcli: admin> tenant set-metric-labels --drop --id 3
Successfully set metric labels for tenant 3