# Dashboard

## **Creación de un Nuevo Dashboard**

* En el menú lateral izquierdo, haz clic en "Dashboard"
* Selecciona " + Create Dashboard"

<figure><img src="/files/lcsdsbPCo6hxw2TD3pxP" alt=""><figcaption></figcaption></figure>

* Se abrirá un dashboard vacío al que podrás añadir paneles.

<figure><img src="/files/Dp9p8KhjdOVPTD5we1dl" alt=""><figcaption></figcaption></figure>

## Añadir visualizaciones

* Haz clic en “+ Add visualization”.
* Si tienes seleccionar la fuente con la que generarás el panel
* En la pestaña “Query”, escribe la consulta adecuada según tu fuente de datos
  * por ejemplo, Flux para InfluxDB 2.x
* Selecciona el tipo de visualización (gráfico, tabla, gauge, etc.).
* Personaliza el panel: título, unidades, colores, leyendas, etc.
* Guarda el panel
  * Haz clic en "back to dashboard"
* Crea todos los paneles necesarios
* Guarda el dashboard

## Configuraciones de los Dashboards

<figure><img src="/files/0QKmPxWsSKuO8pP5r4R7" alt=""><figcaption></figcaption></figure>

#### Opciones dentro de las configuraciones

<table><thead><tr><th width="226">Sección</th><th>¿Para qué sirve?</th></tr></thead><tbody><tr><td>General</td><td>Cambiar el nombre, descripción, etiquetas y ajustes básicos del dashboard.</td></tr><tr><td>Annotations</td><td>Añadir marcas o eventos sobre las gráficas para señalar momentos importantes.</td></tr><tr><td>Variables</td><td>Crear parámetros dinámicos para filtrar y personalizar los datos en los paneles.</td></tr><tr><td>Links</td><td>Agregar enlaces rápidos a otros dashboards, paneles o páginas web externas.</td></tr><tr><td>JSON Model</td><td>Ver y editar el dashboard en formato JSON para cambios avanzados o copia de configuración.</td></tr></tbody></table>

### Tipos de variables <a href="#tipos-de-variables-ms-comunes" id="tipos-de-variables-ms-comunes"></a>

| Tipo de variable | ¿Para qué sirve?                                                          |
| ---------------- | ------------------------------------------------------------------------- |
| Query            | Rellena la lista de opciones a partir de una consulta a la base de datos. |
| Custom           | Lista de opciones que defines manualmente (separadas por comas).          |
| Text box         | Permite al usuario escribir libremente un valor.                          |
| Constant         | Valor fijo, oculto, útil para configuraciones internas.                   |
| Data source      | Permite elegir entre diferentes fuentes de datos del dashboard.           |
| Interval         | Selecciona intervalos de tiempo (por ejemplo, 1m, 5m, 1h).                |
| Ad hoc filters   | Filtros dinámicos para ciertas fuentes (Prometheus, InfluxDB, etc.).      |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://darioaplicano.gitbook.io/influxdb2.x/sesion-3/guion-de-la-sesion/documentacion/integracion-de-influxdb-con-apis-y-herramientas-externas/herramientas-de-visualizacion/grafana/dashboard.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
