Definition
Information
Section titled “Information”This table holds utilization metrics for Explorer Insights. The internal.user_metrics table records, in minutes, how long each user ran queries. A record is written whenever users run queries via Explorer Insights.
The user_metrics table summarizes daily user activity. For example:
- Total query wall time per day. Queries can run concurrently, so total wall time may exceed the Insights client ETL duration.
- When those queries occurred (by date)
This gives self-service visibility into query activity for capacity planning and fair-usage monitoring.
The source usage view that feeds internal.user_metrics refreshes daily at midnight. This means usage metrics are only updated after the nightly refresh, so we recommend checking this view from the following morning onwards for the latest activity.
This table should be used when you need to:
- See how long queries run each day.
- Provide evidence for fair-usage monitoring or contractual reporting
- Identify heavy or long-running usage patterns that may affect performance
- Support capacity planning (e.g., sizing hardware, scheduling ETL windows, identifying peak usage)
Scenarios
Section titled “Scenarios”| Scenario Encountered | Info in the logging tables |
|---|---|
| You need to demonstrate how actively the client is being used | Query internal.user_metrics to see total query duration and frequency over the chosen period |
| You suspect a particular profile or set of queries is running for a long time and impacting performance | Order internal.user_metrics by total_minutes to find which dates generate the highest total query minutes |
| You need to monitor adherence to a fair-usage agreement | Use the utilisation view over the last month/quarter to summarise query time as supporting evidence |
Examples
Section titled “Examples”Query minutes by user and date
Section titled “Query minutes by user and date”SELECT "user", started_date, total_minutesFROM internal.user_metricsORDER BY started_date DESC, total_minutes DESC;Query minutes by account
Section titled “Query minutes by account”SELECT account_name, SUM(total_minutes) AS total_minutesFROM internal.user_metricsGROUP BY account_nameORDER BY total_minutes DESC;