informatica:linux:grafana
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:linux:grafana [2019/03/13 15:39] – jose | informatica:linux:grafana [2023/09/13 15:01] (current) – jose | ||
|---|---|---|---|
| Line 41: | Line 41: | ||
| - 3000:3000 | - 3000:3000 | ||
| restart: always | restart: always | ||
| + | </ | ||
| + | |||
| + | Desde el directorio que tenemos el fichero docker-compose.yml lanzamos el comando: | ||
| + | docker-compose up -d | ||
| + | Esto nos levanta un docker con la BBDD de influxdb y otro con grafana: | ||
| + | < | ||
| + | IMAGE | ||
| + | grafana/ | ||
| + | influxdb | ||
| </ | </ | ||
| Creamos una base de datos: | Creamos una base de datos: | ||
| curl -i -XPOST http:// | curl -i -XPOST http:// | ||
| + | Insertamos un dato: | ||
| + | curl -i -XPOST ' | ||
| + | Consultamos el dato | ||
| + | curl -G ' | ||
| | | ||
| Metemos datos:\\ | Metemos datos:\\ | ||
| curl -i -XPOST ' | curl -i -XPOST ' | ||
| + | El fichero data.txt tiene este formato, el último número es el timestamp con 9 ceros mas. | ||
| data.txt | data.txt | ||
| < | < | ||
| Line 69: | Line 82: | ||
| {{: | {{: | ||
| + | {{: | ||
| + | |||
| + | ===== Crear Dashboard Gráfica ===== | ||
| + | Vamos al icono de + y create Dashboard y Add query | ||
| + | |||
| + | ===== Dashboard público ===== | ||
| + | / | ||
| + | |||
| + | < | ||
| + | #################################### | ||
| + | [auth.anonymous] | ||
| + | # enable anonymous access | ||
| + | enabled = true | ||
| + | |||
| + | # specify organization name that should be used for unauthenticated users | ||
| + | org_name = Main Org. | ||
| + | |||
| + | # specify role for unauthenticated users | ||
| + | org_role = Viewer | ||
| + | | ||
| + | # mask the Grafana version number for unauthenticated users | ||
| + | ; | ||
| + | </ | ||
informatica/linux/grafana.1552491554.txt.gz · Last modified: by jose
