Skip to content

Create a Metrics Service


Overview

CloudAEye provides centralized metrics service. It is a managed service that makes metrics collection, storing and analysis of the time-series data easier for distributed cloud application. It is built on top of fully open-source technology, Prometheus, the most adopted open source platform for time series metrics data. It automatically scales as ingested data from application grows and provides access to metrics data and query capability.

This topic describes how user may create this service.

Create

From left navigation menu, select Services > Metrics. You will see list of metrics services that are already created. The table will be empty if there are no metrics services being created.

To create a new metrics service, click on CREATE on the top right corner. A new form will appear under Metrics > Create.

Provide the following informaiton:

  • Name: Name of the metrics service. This is usually an alpha-numeric string. For example, orders-app-metrics.
  • Groups: Pick the Service Group this service should be part of. Learn more about Service Groups here.
  • Labels: Optional Key/Value information that may be added to this metrics service. This enables you to categorize the resources in flexible ways. Use the + symbol to add additional labels.

Click SUBMIT to create the metrics service.

User may create a metrics service using caeops metrics create command.

caeops metrics create --name demo-metrics-service

The output from the command may look like the following:

{
  "serviceName": "demo-metrics-service",
  "serviceRegion": "us-east-2",
  "serviceEndpoint": "https://aps-workspaces.us-east-2.amazonaws.com/workspaces/ws-646b018b-0427-4cd0-a5b4-7717f1f7d010",
  "serviceType": "metrics-service",
  "groupName": "",
  "labels": {},
  "createdAt": 1629905532465,
  "updatedAt": 1629905532465
}

List All Metrics Service(s)

From left navigation menu, select Services > Metrics. You will see list of metrics services that are already created. The table will be empty if there are no metrics services being created.

The create command will initiate setting up server-side infrastructure of an elastic Prometheus environment. After the metrics service creation is complete in few (3-4) minutes, user may run caeops metrics list command to see a list of all metrics services.

caeops metrics list

This will retun a list of all metrics service.

[
  {
    "serviceName": "demo-metrics-service",
    "serviceRegion": "us-east-2",
    "serviceEndpoint": "https://aps-workspaces.us-east-2.amazonaws.com/workspaces/ws-81425125-1049-438c-9d4e-372ba3128f3f",
    "serviceType": "metrics-service",
    "groupName": "",
    "labels": {},
    "createdAt": 1629726914026,
    "updatedAt": 1629726914026
  },
  {
    "serviceName": "hrapp-metrics-service",
    "serviceRegion": "us-east-2",
    "serviceEndpoint": "https://aps-workspaces.us-east-2.amazonaws.com/workspaces/ws-646b018b-0427-4cd0-a5b4-7717f1f7d010",
    "serviceType": "metrics-service",
    "groupName": "",
    "labels": {},
    "createdAt": 1629905532465,
    "updatedAt": 1629905532465
  }
]

Next Steps

User may setup metrics streaming from application environment to CloudAEye SaaS for centralized metrics service.