> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-fbfa8bee.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Contém consultas usadas pela página `/dashboard`, acessível por meio da interface HTTP. Útil para monitoramento e solução de problemas.

# system.dashboards

<div id="description">
  ## Descrição
</div>

Contém consultas usadas pela página `/dashboard`, acessível por meio da [interface HTTP](/pt-BR/concepts/features/interfaces/http).
Esta tabela pode ser útil para monitoramento e troubleshooting. A tabela contém uma linha para cada gráfico em um dashboard.

<Note>
  A página `/dashboard` pode renderizar consultas não apenas de `system.dashboards`, mas de qualquer tabela com o mesmo schema.
  Isso pode ser útil para criar dashboards personalizados.
</Note>

<div id="columns">
  ## Colunas
</div>

* `dashboard` ([String](/pt-BR/reference/data-types/index)) — O nome do dashboard.
* `title` ([String](/pt-BR/reference/data-types/index)) — O título do gráfico.
* `query` ([String](/pt-BR/reference/data-types/index)) — A consulta para obter os dados a serem exibidos.

<div id="example">
  ## Exemplo
</div>

```sql theme={null}
SELECT *
FROM system.dashboards
WHERE title ILIKE '%CPU%'
```

```text theme={null}
Linha 1:
──────
dashboard: overview
title:     CPU Usage (cores)
query:     SELECT toStartOfInterval(event_time, INTERVAL {rounding:UInt32} SECOND)::INT AS t, avg(ProfileEvent_OSCPUVirtualTimeMicroseconds) / 1000000
FROM system.metric_log
WHERE event_date >= toDate(now() - {seconds:UInt32}) AND event_time >= now() - {seconds:UInt32}
GROUP BY t
ORDER BY t WITH FILL STEP {rounding:UInt32}

Linha 2:
──────
dashboard: overview
title:     CPU Wait
query:     SELECT toStartOfInterval(event_time, INTERVAL {rounding:UInt32} SECOND)::INT AS t, avg(ProfileEvent_OSCPUWaitMicroseconds) / 1000000
FROM system.metric_log
WHERE event_date >= toDate(now() - {seconds:UInt32}) AND event_time >= now() - {seconds:UInt32}
GROUP BY t
ORDER BY t WITH FILL STEP {rounding:UInt32}

Linha 3:
──────
dashboard: overview
title:     OS CPU Usage (Userspace)
query:     SELECT toStartOfInterval(event_time, INTERVAL {rounding:UInt32} SECOND)::INT AS t, avg(value)
FROM system.asynchronous_metric_log
WHERE event_date >= toDate(now() - {seconds:UInt32}) AND event_time >= now() - {seconds:UInt32} AND metric = 'OSUserTimeNormalized'
GROUP BY t
ORDER BY t WITH FILL STEP {rounding:UInt32}

Linha 4:
──────
dashboard: overview
title:     OS CPU Usage (Kernel)
query:     SELECT toStartOfInterval(event_time, INTERVAL {rounding:UInt32} SECOND)::INT AS t, avg(value)
FROM system.asynchronous_metric_log
WHERE event_date >= toDate(now() - {seconds:UInt32}) AND event_time >= now() - {seconds:UInt32} AND metric = 'OSSystemTimeNormalized'
GROUP BY t
ORDER BY t WITH FILL STEP {rounding:UInt32}
```
