To measure and monitor the health and performance of the microservices in your application, you can create SLO policies through the Tanzu Service Mesh Console UI.

There are two ways to configure an SLO policy: monitored SLO and actionable SLO. You can configure multiple monitored SLOs; however, you can configure only one actionable SLO policy per service.

Prerequisites

Procedure

  1. In the navigation pane on the left, select Policies > SLOs.
  2. On the SLO Policies page, click Add New.
  3. In the next window, select Monitored SLO or Actionable SLO and click OK.
  4. If you have selected Monitored SLO, follow these instructions:
    1. In the window that appears, provide an SLO name that is not already in use.

      Ensure that there are no special characters in the SLO name. Optionally, add a description.

    2. Select the SLIs that the SLO is based on.

      You can select one or more p50 Latency, p90 Latency, p99 Latency, and Error Rate SLIs.

    3. For each of the SLIs selected, type their respective thresholds.

      If these thresholds are met or exceeded, they will deplete the error budget or, if it already depleted, the exceptions will count as violations of the SLO.

    4. In the Service Level Objective section, specify the percent of time that the SLIs will be under their threshold values. Click Next.
      Important:

      Set the time percentage to slightly less than 100%. The performance tab will display Unknown status if the time threshold is set to 100% since no service can reach 100% uptime.

    5. In the next window, select the services that the new SLO applies to. Under Service(s), select one service from the drop-down menu. To add more services, click +Add Services and select another service from the drop-down menu.

      You can also apply the SLO to service groups on top of the individual services selected in the previous step. You can apply SLOs to any combination of services and service groups.

    6. Click Next.
    7. Review the SLO configuration and click Save.

    For an illustration of monitored SLOs, see Use Case 1A: GNS-Scoped Monitored SLO.

  5. If you have selected Actionable SLO, follow these steps.
    1. In the window that appears, provide an SLO name that is not already in use.

      Ensure that there are no special characters in the SLO name. Optionally, add a description.

    2. Specify the name of the GNS Scope.
    3. Select a Target Service.
    4. (Optional) Specify a label for the SLO policy.
    5. Select the SLIs that the SLO is based on.

      You can select one or more p50 Latency, p90 Latency, p99 Latency, and Error Rate SLIs.

    6. For each of the SLIs selected, type their respective thresholds.

      If these thresholds are met or exceeded, they will deplete the error budget or, if it already depleted, the exceptions would count as violations to the SLO.

    7. In the Service Level Objective section, specify the percent of time that the SLIs will be under their threshold values. Click Next.
    8. (Optional) In the next window, to enable service autoscaling, select Service Autoscaling.

      Enabling this action allows the services to be autoscaled based on SLI conditions and violations. However, note that you must configure an autoscaling policy for each of the service versions.

    9. Review the SLO configuration and click Save.

    For an illustration of monitored SLOs, see Use Case 1B: GNS-Scoped Actionable SLO.

    The new SLO appears on the Service SLOs page.

  6. To edit an existing SLO configuration, perform these steps.
    1. Click the vertical three dots to the right of an SLO.
    2. On the menu, click Edit Configuration.
    3. To advance through and edit the configuration pages, click Next.
    4. To update the configuration, on the final page, click Save.
  7. To find a specific SLO policy, use the highlighted filters in the SLOs page.


    To see the SLOs in action:

    1. In the left navigation menu, click Inventory.

    2. Click Services.

    3. Click one of the Service Names where an SLO has been defined.

    4. Select the Performance tab.

    For more information on how to view the performance of a single service , see See the Performance of a Single Service As Measured by SLOs. To see the performance of multiple services, refer to View and Track SLOs for Multiple Services.