# (Solo Docker) Configuración previa

### Configuración de Grafana y InfluxDB en la misma red <a href="#id-1-asegrate-de-que-ambos-contenedores-estn-en-la-mi" id="id-1-asegrate-de-que-ambos-contenedores-estn-en-la-mi"></a>

Para conectar Grafana con InfluxDB usando Docker Desktop en Windows, debes asegurarte de que **ambos contenedores estén en la misma red de Docker** y usar el nombre del contenedor de InfluxDB como host en la configuración de Grafana.

1. Crear la red que una ambas herramientas:

{% code title="bash" overflow="wrap" %}

```bash
docker network create monitoring
```

{% endcode %}

2. Crear la conexión de InfluxDB a en la red

{% code title="bash" overflow="wrap" %}

```bash
docker network connect monitoring influxdb2
```

{% endcode %}

3. Crear la conexión de Grafana en la red

{% code title="bash" overflow="wrap" %}

```bash
docker network connect monitoring grafana
```

{% endcode %}


---

# 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/solo-docker-configuracion-previa.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.
