What are the steps to create a DX Dashboard to filter APM Traces by TraceID
Below is an example how to create a DX dashboards to filter Traces by TraceId
1) Create a new Dashboard, then select Add an empty panel
2) Open Dashboard settings
a) Select "General" Tab
Enter the dashboard Name and folder
b) Select "Variables" tab
- Click " Create a New Variable" button
We will use this variable to filter by Application Name
General:
Name = ApplicationName
Type = Query
Label = ApplicationName
Query Options:
Data Source = AIOps_Metadata
Refresh = On Time Range Change
Primary Index = ao_apm_tt_2
Query = {"find":"terms","field":"summary.appName.kwd"}
Selection Options:
Multi-value = enabled
Include All options = enabled
Custom all value = *
Click Update button
Click " New" button, to create a new Variable to filter by TraceId
General:
Name = TraceId
Type = Text box
Label = TraceId
Text Options
Default value = *
Click Update button
3) Go back to the Edit Panel
For the query
Select AIOps_Metadata
Primary Index = ao_apm_tt_2
Query = summary.traceId:${TraceId:raw} AND summary.appName.kwd:${ApplicationName}
Metrics = Logs
Group by = Date Histogram
For the Panel: select Table
Click "Save"
4) Validation:
Select a TraceId from the list and validate the filter