Data retention policy
You can configure data retention for each service. By default only traces, spans, and db query statements that satisfies the default values will be saved and shown in APM dashboard. If you have configured anything for a service, then everything gets saved as per the configured values.
note
The number of days we store data collected is by default 7 days for traces and 90 days for metrics.
By default all error traces and error spans are saved. The default values are:
- default traces over 300 ms latency
- default db query statements over 80 ms latency
- default maximum number of spans in a trace that are saved is 200
- Click the icon on the left pane. The following screen appears.
- Click Application tab.
- Select APM from the Select capability drop-down list.
- Select an application from the Select application drop-down list.
- Select Data retention policy.
You can either configure the trace retention or configure the DB query. For more information see the following tasks.
Trace retention configuration
- Click Trace Retention Configuration
- Enable Retain all error traces to retain all error traces. When retain all error traces is enabled, all the error traces irrespective of the values you set in the following fields are displayed in the APM dashboard.
- Enter the minimum trace latency value in milliseconds.
- Enter the maximum spans per trace.
- Click Save.
- Go to APM > Trace to see the traces according to the threshold values you have set.
DB Query Configuration
- Click DB Query Configuration.
- Enter minimum db query latency in milliseconds.
- Click Save.
- Go to APM > Dashboard > Database > Query to see all the database queries according to the threshold value you have set.