Skip to content

caeops > metrics

create

Description


This command helps you create a Metrics Service. Run caeops metrics create --help for more help.

Synopsis


  create
--name [value]
[--labels [value]]
[--group-name [value]]

Options


--name (string)

Name of Metrics Service

--labels (list)

List of all the labels that you want to attach

--group-name (string)

Name of group in which you want to add the Metrics Service

Examples


To create a Metrics Service.

The following metrics create example creates a Metrics Service.

caeops metrics create --name=name --labels=[{owner=example},{env=dev}] --group-name=example-group

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
Back to top