caeops > metrics
add-labels¶
Description¶
This command helps you add labels to a Metrics Service.
Run caeops metrics add-labels --help
for more help.
Synopsis¶
add-labels
--name [value]
--labels [value]
Options¶
--name (string)
Name of Metrics Service
--labels (list)
List of all the labels that you want to attach
Examples¶
To add labels to a Metrics Service.
The following metrics add-labels
example adds labels to a Metrics Service.
caeops metrics add-labels --name=name --labels=[{owner=example},{env=dev}]
Output¶
Metrics Service Details -> (Structure)
- serviceName -> (string)
Name of the Metrics Service - serviceRegion -> (string)
Region of Metrics Service - serviceEndpoint -> (string)
Endpoint of the Prometheus Instance - serviceType -> (string)
Type of the resource,metrics-service
for Metrics Service - groupName -> (string)
Name of the service group to which the Metrics Service is added -
labels -> Structure
-
key -> (string) Name of the label
-
value -> (string) Value of the label
-
-
createdAt -> (long)
Creation timestamp - updatedAt -> (long)
Last modified timestamp