---
title: "New Auditing Module with Query Metrics"
canonical: "https://onesaitplatform.refined.site/space/DOCT/3660316673/New%20Auditing%20Module%20with%20Query%20Metrics"
format: markdown
---
> ℹ️ Available since Platform version 4.2.0

A new auditing module has been created in the Platform that is in **charge of receiving all the auditing events from the rest of the modules and processing them asynchronously**, freeing the Semantic Broker from this task and therefore increasing its performance.

In addition, this new module incorporates a system of metrics for queries in order to have a better control over the queries that are executed in the system.

The metrics will be stored in a meta-entity called **QueryMetrics** and will collect information about: entity name, datasource, start/end and total execution time, query and query type, and finally, query status, which in case of error will also store the cause of the error in the query.

![image](media://1dfcbfc7-4bb7-40ab-b01e-a81728511007)

By storing this information in a system entity, dashboards can be created and decisions can be made based on certain events (errors in queries, very long times,...).

![image](media://1aa0b297-8a76-469d-9ae5-8590b2cbbc5a)

![image](media://92fdd7a9-1a87-489d-a4aa-4bc04512df5f)