We have decided to use higher-spec managed notebooks in our company and would like to set up cost alerts to manage our charges.
We attempted to perform a cost analysis by assigning labels, but we were unable to find a way to label the managed instances.
Here's what we tried:
virtual_machine_config.label
and virtual_machine_config.data_disk.initialize_params.label
don't reflect in the filters of cost alerts.
It is possible that the Managed Notebook doesn't support labels in its specifications.Our goal is to understand the cost of a specific Managed Notebook. Please let us know if there's any way to meet this requirement, even if it involves a workaround.
You are correct, 3 issues:
we currently do not expose Label option at creation time in UI.
The following labels do not apply to Billing.
virtual_machine_config.label
virtual_machine_config.data_disk.initialize_params.label
The good news is that you can assign labels at Runtime level. This should work using API via create and update(patch) methods.
{
"name": string,
"state": enum (State),
"healthState": enum (HealthState),
"accessConfig": {
object (RuntimeAccessConfig)
},
"softwareConfig": {
object (RuntimeSoftwareConfig)
},
"metrics": {
object (RuntimeMetrics)
},
"createTime": string,
"updateTime": string,
"labels": {
string: string,
...
},