SLO
Service Level Objectives (SLOs) let users set performance thresholds on collected service metrics. If a service performs worse than the set threshold (i.e. if memory utilization is 60mb but we have set a SLO for 100mb), then an SLO violation is recorded and displayed in the Service Summary page. The dashboard supports the following SLO types:
  • Aggregate: SLOs applying to the metrics for all proxies averaged together. For instance, an aggregate SLO for latency of greater than 0.05ms will throw a violation if the average latency across all proxies of a service is more than 0.05ms.
  • Route: SLOs specific to each route. For example, setting an SLO for latency greater than 0.05s for the route "/" will trigger a violation if the average latency of requests going to the route "/" is greater than 0.05ms, averaged across all proxies of the service.
To set an SLO, select the down arrow of the SLO type and fill out the SLO information in the boxes provided. Note that there are two types of SLOs for each metric: violations and warnings. Warnings are triggered when a service approaches unsafe levels, although this is user-defined and varies from deployment to deployment.
After the information is filled out, click the check box to enable the SLO and then click the green "Save" icon on the top right. To undo changes, click the circular arrow button to the left of the save button. The SLO should now be visible on the Service Summary page overlaid on the respective metric chart. For example, after setting an SLO of 100mb for a service's memory utilization, you should see how the SLO compares with the service's actual memory utilization on the Memory Utilization chart. To delete an objective, click the red trash can icon next to the SLO name.
Service Level Objectives

API

Route /objectives

Method: GET

Returns a list of all Objectives.
Query parameters:
  • serviceName
  • serviceVersion
Examples:
  • GET /objectives
  • GET /objectives/{id} to get a specific objective with id {id}

Response 200 (application/json)

1
[
2
{
3
"id": 2,
4
"days": "sun, mon, tue, wed, thu, fri, sat",
5
"metricKey": "cpu",
6
"operator": "gte",
7
"serviceName": "Example Service",
8
"serviceVersion": "1.0",
9
"target": "average",
10
"threshold": 1024.35,
11
"timeStart": 2400,
12
"timeEnd": 2400,
13
"title": "CPU Utilization should be below 1024 mb",
14
"unit": "percent",
15
"violationActive": true,
16
"warningActive": true,
17
"warningThreshold": 234.26
18
},
19
...
20
]
Copied!

Method: POST

Create a new Objective.
Examples:
  • POST /objectives -H 'Content-Type: application/json' -d "@request_body.json"
Request (application/json)
1
{
2
"metricKey": "cpu",
3
"operator": "gte",
4
"serviceName": "Example Service",
5
"serviceVersion": "1.0",
6
"target": "average",
7
"threshold": 1024.35,
8
"title": "CPU Utilization should be below 1024 mb",
9
"unit": "percent",
10
"violationActive": true,
11
"warningThreshold": 234.26,
12
"warningActive": true,
13
"timeStart": 2400,
14
"timeEnd": 2400,
15
"days": "sun, mon, tue, wed, thu, fri, sat"
16
}
Copied!
Response 200 (application/json)
1
{
2
"id": 2,
3
"days": "sun, mon, tue, wed, thu, fri, sat",
4
"metricKey": "cpu",
5
"operator": "gte",
6
"serviceName": "Example Service",
7
"serviceVersion": "1.0",
8
"target": "average",
9
"threshold": 1024.35,
10
"timeStart": 2400,
11
"timeEnd": 2400,
12
"title": "CPU Utilization should be below 1024 mb",
13
"unit": "percent",
14
"violationActive": true,
15
"warningActive": true,
16
"warningThreshold": 234.26
17
}
Copied!

Method: PATCH

Patch a specific Objective.
Examples:
  • PATCH /objectives/{id} -H 'Content-Type: application/json' -d "@patch_body.json"
Request (application/json)
1
{
2
"metricKey": "cpu",
3
"operator": "gte",
4
"serviceName": "Example Service",
5
"serviceVersion": "1.0",
6
"target": "average",
7
"threshold": 1024.35,
8
"title": "CPU Utilization should be below 1024 mb",
9
"unit": "percent",
10
"violationActive": true,
11
"warningThreshold": 234.26,
12
"warningActive": true,
13
"timeStart": 2400,
14
"timeEnd": 2400,
15
"days": "sun, sat"
16
}
Copied!
Response 200 (application/json)
1
{
2
"id": 2,
3
"days": "sun, sat",
4
"metricKey": "cpu",
5
"operator": "gte",
6
"serviceName": "Example Service",
7
"serviceVersion": "1.0",
8
"target": "average",
9
"threshold": 1024.35,
10
"timeStart": 2400,
11
"timeEnd": 2400,
12
"title": "CPU Utilization should be below 1024 mb",
13
"unit": "percent",
14
"violationActive": true,
15
"warningActive": true,
16
"warningThreshold": 234.26
17
}
Copied!

Method: DELETE

Delete a specific Objective.
Examples:
  • DELETE /objectives/{id}

Response 200 (application/json; charset=utf-8)

1
"{id}"%
Copied!

Route /businessImpact (Deprecated)

Note: This endpoint is deprecated and will be removed in the 2.0 release.

Method: GET

Note: This endpoint is deprecated and will be removed in the 2.0 release.
Returns a list of all Business Impacts.
Response 200 (application/json)
1
[
2
{
3
"businessImpact": "critical",
4
"serviceName": "Grey Matter Catalog",
5
"serviceVersion": "1.2",
6
"id": 3
7
}
8
]
Copied!

Method: POST

Note: This endpoint is deprecated and will be removed in the 2.0 release.
Create a Business Impact.
Examples:
  • POST /businessImpact -H 'Content-Type: application/json' -d "@request_body.json"
Request (application/json)
1
{
2
"businessImpact": "critical",
3
"serviceName": "Grey Matter Catalog",
4
"serviceVersion": "1.2"
5
}
Copied!
Response 200 (application/json)
1
{
2
"businessImpact": "critical",
3
"serviceName": "Grey Matter Catalog",
4
"serviceVersion": "1.2",
5
"id": 3
6
}
Copied!

Method: PUT, PATCH

Note: This endpoint is deprecated and will be removed in the 2.0 release.
Update an existing business impact with either a PUT or PATCH request.
Examples:
  • PUT /businessImpact -H 'Content-Type: application/json' -d "@put_body.json"
  • PATCH /businessImpact -H 'Content-Type: application/json' -d "@patch_body.json"
Request (application/json)
1
{
2
"businessImpact": "critical",
3
"serviceName": "Grey Matter Catalog",
4
"serviceVersion": "1.3"
5
}
Copied!
Response 200 (application/json)
1
{
2
"businessImpact": "critical",
3
"serviceName": "Grey Matter Catalog",
4
"serviceVersion": "1.2",
5
"id": 3
6
}
Copied!

Method: DELETE

Note: This endpoint is deprecated and will be removed in the 2.0 release.
Delete an existing Business Impact.
Query parameters (required):
  • serviceName
  • serviceVersion
Examples:
  • DELETE /businessImpact?serviceName={service-name}&serviceVersion={service-version}
Response 200 (application/json)
1
"Deleted Grey Matter Catalog v1.2"%
Copied!
Last modified 9mo ago