Sample Data Graph workflow

This feature is part of the Observability Graph. See pricing.

This walkthrough traces realistic incident data provided by the Sample Data plugin, designed so you can follow along and practice the five steps for tracing issues. You’ll navigate from a red workspace to the release that caused it, and discover the services, customers and team it affects.

The sample data gives us an in-progress incident, where release 4.12.0 of the Payments API service has driven its error rate up. You'll see that this has also impacted the Checkout API and Orders Service.

SquaredUp plugins automatically link their objects and relationships in the graph, so you can follow the entire scenario through the map.

Set up Sample Data

Before following this workflow, you'll need to have added the latest version of the Sample Data plugin.

You must also copy the plugin's dashboards to your own workspace for the health states to propagate, as pre-built dashboards don't run their configured monitors.

  1. Add the Sample Data data source to a workspace. It's listed among the suggested data sources when you add a data source.
  2. In the left-hand menu, do the following for the Executive Overview and Service Health dashboards.
    1. Expand Data Sources > Sample Data in the left-hand pane, then select the dashboard to open it.
    2. Click Copy dashboard in the top-right then click Copy to confirm. The dashboard is added to your workspace.

1. Spot the red workspace

Health rolls up in SquaredUp, so when a monitor errors it turns its dashboard red, and that dashboard turns its workspace red.

While a red workspace tells you something is wrong, it doesn't tell you what or why, so this is where the investigation starts.

  1. In SquaredUp, open your organization home.
  2. Under Recent workspaces, find the workspace you added Sample Data to. You'll notice that the workspace tile has a red trim, telling us that something is wrong.
  3. Click the workspace tile to open it. Under the Health section you'll see that the Executive Overview and Service Health are both red.

2. Find the red monitor

Monitors are the checks attached to your tiles, and every rolled-up health signal starts from one. The workspace overview lists the monitors within it and displays their health state, so you can go straight to the source without searching your dashboards one at a time.

  1. On the workspace overview, find the Health panel. It lists every monitor in the workspace.
  2. Click State and select Error to filter by unhealthy monitors.
  3. You'll see Service Health / All Services in the list. This is the error we'll investigate.
    Note

    You'll also notice that Host Health is red too, but that's a separate issue with the Analytics Pipeline host and beyond the scope of this walkthrough.

  4. Click Service Health / All Services. The Service Health dashboard opens and highlights the monitor’s unhealthy tile.

3. Find the problem object

A monitor tells you that something went wrong on a tile, but the objects on that tile tell you where. Each object has its own drilldown page with its details and perspectives, so that's where the investigation goes next.

  1. Select the Payments API block from the All Services tile to open the object drilldown.
    Note

    If a tile doesn’t link to an object, press Ctrl+K (Cmd+K on macOS) to open the graph search, then type the object’s name and select it.


  2. The drilldown page opens on the Service tab, where the Golden Signals and Health History tiles also display errors.

4. Identify the cause

Investigating an object begins with finding what's different in your environment. You need to look for when the object became unhealthy, what happened around that time, and to rule out variables to narrow down the root cause.

From the Payments API's object drilldown, we'll discover why the error rate has jumped by determining when the error occurred and what deployed just before. We'll also check the health state of its host to rule out healthy neighbors and narrow the search.

  1. When did it go wrong? On the Service tab, review the following tiles:
    • Golden Signals:
      Shows the service’s latency, traffic, error rate and error budget. You'll see the error rate and latency are both well above normal.
    • Health History:
      Shows the service’s health over the last 24 hours.
      You'll see the red blocks to the right show when the object began to error.
    • Latency and Error Rate:
      Charts the same signals over time. You'll see that both stay flat until a sharp jump, which is when the problem started. On Error Rate, the jump crosses the 1% alert threshold.
  2. What changed? Look for changes around the time of the error on the Recent Deployments tab, which lists the service’s releases.

    You'll see that the latest release (4.12.0) landed ahead of the jump, and is marked Yes under Caused a failure.
  3. What can be ruled out? Check the graph neighbors on the Hosts tab, which shows the hosts running the service.

    You'll see that both pay-use-01 and pay-use-02 are green, so the problem has to be with the release, not the servers.

Findings

Together, the investigation paints a clear picture. The error rate jumped after release 4.12.0 shipped, but the hosts running Payments API are healthy. Therefore, the release is the likely cause.

5. Determine who’s affected

Once you know the cause of the issue, the next step is to find out who or what is impacted by it. The tickets relating to the issue tell us who has noticed, and the observability map shows the scale of the issue through the Payments API's relationships.

  1. On the Service tab, scroll to Open and Breached Tickets. You'll see that Northpeak Retail, Harbor Financial and Veltra Health have each raised a P1 ticket in the last few hours.
  2. Select the Object Details tab and click Full screen on the Map panel. You'll see everything linked to Payments API appears around it. These related objects are grouped by type, including Payments Release, the pipeline that shipped release 4.12.0.
  3. Ungroup these groups to see what’s linked. Hover over each group, click Ungroup objects, then click Ungroup all:
    • Services: Checkout API calls Payments API, so it could be affected too.
    • Customers: Northpeak Retail, Harbor Financial and Veltra Health use Payments API. They’re the same three customers who raised tickets.
  4. Optionally, tidy the map to create a clearer view. To hide Hosts, US East (Virginia), Payments Release and Billing Service, hover over each one, click Hide, then click Hide this group or Hide this object. Then click Layout and select Horizontal. The customers sit on the left, and their lines lead through Checkout API to Payments API.
  5. To explore further, hover over Checkout API and click Expand. Orders Service appears, because Checkout API calls it. Click Drilldown on either service to confirm its error rate and latency rose at the same time as Payments API’s, by a smaller amount.

Next steps

You've now traced the Payments API issues and know it was caused by a bad release, and that the hosts are fine. You've also discovered the services and customers it affects. The next step is to act on what you've learned.

For this example, that could look like the following:

  • Roll back release 4.12.0.
  • Tell the Payments team that owns the service. On the map, hover over the team and click Drilldown to see everything else they own.
  • Tell support which customers are affected: Northpeak Retail, Harbor Financial and Veltra Health.
  • Share what you found. Click View / Share on a perspective to open its dashboard in full. On a dashboard you can edit, the button reads Edit / Share.

Remember, no matter the shape of your environment, the skills learned from this walkthrough can be easily transferred to tracing your own issues.

Was this article helpful?


Have more questions or facing an issue?