Best Practices for Data Correlation¶
Preface¶
The OpenTelemetry protocol, defined by the CNCF (Cloud Native Computing Foundation), represents the latest generation of observability standards. This protocol defines the three pillars of observability: Metrics, Trace, and Log. The correlation analysis between these three has become a key focus for major vendors.
Guance, as a leading observability product in China, how does it break through technical barriers and overcome challenges?
Data Correlation¶
Metrics¶
Typically represented by a "value," which can be a number, string, float, boolean, etc.
Metric Correlation¶
Prerequisites
-
The view must include a by condition (click any view to see)
-
The correlation target must have this condition (tag)
Logs¶
Click the view, View Related Logs, to jump to the log module.
Containers¶
View Related Containers to jump to the container module, quickly querying all containers on the host (Node).
Processes¶
View Related Processes to jump to the process module, quickly querying all processes on the host (requires enabling Processes Collection).
Traces¶
View Related Traces to jump to the trace module, quickly querying all traces on the host.
Logs¶
Records generated during system/application operation, used for troubleshooting and data analysis.
Log Correlation¶
Prerequisites
-
Typically uses the hostname as the correlation condition (can be customized)
-
The correlation target must have this condition (tag)
Metrics¶
Click any log entry, select Metric View, to view the system performance of the host where the log was recorded (dashed line represents the log timestamp).
Containers¶
Click any log entry, select the host, View Related Containers, to jump to the container module.
Processes¶
View Related Processes to jump to the process module, quickly querying all processes on the host (requires enabling Processes Collection).
Traces¶
(Host Correlation) View Related Traces to jump to the trace module, quickly querying all traces on the host.
Traces¶
With the expansion of internet architecture and the widespread use of distributed systems, inter-application calls have become extremely complex. Trace tracing can effectively and quickly locate issues.
Trace Correlation¶
Prerequisites
-
Typically uses the hostname/trace_id as the correlation condition (can be customized)
-
The correlation target must have this condition (tag)
Metrics¶
Click any trace entry, select Host - Metric View, to view the system performance of the host where the trace was recorded (dashed line represents the trace timestamp).
Logs¶
Click any trace entry, select Log - traceid, to view the log records generated by the trace (requires configuring log output trace_id).
Customization¶
Guance product, in addition to the default data correlation functionality, also supports more flexible user-defined view correlations.
Custom Correlation¶
Management - Built-in Views - User Views - Create View, supports five fields, corresponding to different data:
-
service (trace service)
-
app_id (application)
-
source (log source)
-
project (project)
-
label (tag)












