Use Cloud Observability’s correlation feature to investigate performance changes and find possible causes.
This page describes the correlation feature and how to use it on metrics and spans.
The correlation feature works with metrics and spans only. To investigate issues using logs, use the logs tab, notebooks, and the trace view.
Cloud Observability’s correlation feature identifies attributes or operations that may have contributed to performance changes (deviations). Use the correlation feature with other Cloud Observability features – such as notebooks and the Trace view – to identify possible deviation causes.
You can access the correlation feature on charts in notebooks, dashboards, and alerts. The feature works on metrics and spans:
For both data types, the correlation feature calculates how much those attributes or operations correlate with the deviation, suggesting possible causes.
Do the following to get the most value from the correlation feature:
Instrument services for distributed tracing.
The correlation feature uses attributes to relate deviations with spans in trace data.
service.name
attribute.Filter charts to one service.
The correlation feature works best when it focuses on one service and its dependencies. For dashboard charts, use the global filter. For other charts, edit and save your query.
Follow these steps to use the correlation feature on metric data in a dashboard:
In the panel, move the blue window to the relevant deviation and select View correlations. Cloud Observability displays results in the panel.
The chart shows the baseline (purple) and deviation (blue) windows used to compare performance. You can move and expand the windows – Cloud Observability automatically updates the results.
The table lists the service’s Key Operations, sorted by greatest change. The columns show:
In the example below, the queried service is warehouse, the Key Operation is update-catalog, and the attribute with the most change is customer:ProWool. The customer:ProWool attribute appears on the iOS service.
Point to iOS to view the following:
You can also select the Add to notebook icon to add a p99-latency chart to a notebook.
Select an attribute to view three service level indicator (SLI) charts. The charts compare the baseline to the deviation for p99 latency, operation rate, and error percentage rate.
The charts have several options:
To investigate further, select the panel’s expand icon for the full correlation view.
The full view has more details, including several spark lines for Key Operations.
You’re all set with the basics for using the correlation feature on metric data. When using the correlation feature in practice, you may need to investigate several Key Operations to find root causes.
Next, learn more about using the correlation feature on span data and the full correlation view.
Follow these steps to use the correlation feature on span data in a dashboard:
In the panel, move the blue window to the relevant deviation and select View correlations. Cloud Observability displays results in the panel.
The chart shows the baseline (purple) and deviation (blue) windows used to compare performance. You can move and expand the windows – Cloud Observability automatically updates the results.
Select the filters to focus your investigation.
View changes in
Choose one of the following to compare in the baseline and deviation:
on
Select to view either correlated attributes or correlated operations.
located
Select the drop-down to view correlations for one of the following:
The table below shows the attributes with the greatest change. Change, in this example, is how often the attribute appears on traces in the baseline window versus the deviation window. The results only include spans upstream of the queried service.
The attribute with the greatest change is customer:ProWool from the iOS service. Point to iOS to view the following:
You can also select the Add to notebook icon to add a p99-latency chart to a notebook.
Once you choose filters, the table shows the attributes or operations from traces with performance differences in the deviation window. Cloud Observability sorts the results by greatest change, and the columns show:
Select an attribute or operation to view three service level indicator (SLI) charts. The charts compare the baseline to the deviation for p99 latency, operation rate, and error percentage rate.
The charts have several options:
To investigate further, select the panel’s expand icon for the full correlation view.
The full view has more details, including values for the baseline and deviation Error, Latency, or Rate. It also shows where the attribute or operation appears in the trace.
You’re all set with the basics for using the correlation feature on span data. Next, learn more about the full correlation view.
Use the full correlation view to get more investigation insights. To access the full view, select the expand icon in the correlation panel.
For both metrics and spans, the top of the full view displays several charts and these options:
Visit the tabs below to learn about the full view for metric or span data:
The full correlation view for metrics shows the following for each Key Operation:
Performance changes
View spark lines for the average latency, operation rate, and error rate. Cloud Observability displays spark lines for the baseline (purple) and the deviation (blue) and sorts them by greatest change. The latency spark line shows the percentile with the largest change (either p99, p95, or p50).
Expand the spark lines to view larger chart versions. The latency chart shows all three latency percentiles (p99, p95, and p50).
Attributes with the most change
View a table with the following:
Select an attribute to view the same SLI charts and options as the correlation panel.
The full correlation view for spans shows several filters for focusing your investigation. The filters match the panel’s filters.
The table displays more details about the attribute or operation, including:
Select an attribute or operation to view the same SLI charts and options as the correlation panel.
Updated Sep 12, 2023