informatica:linux:influxdb
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
informatica:linux:influxdb [2022/06/08 22:22] – created jose | informatica:linux:influxdb [2022/06/09 09:04] (current) – jose | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | docker run -p 8186:8086 -v $PWD:/ | + | docker run --name mi-influx |
| | ||
Desde la GUI creamos usuario admin, organizacion, | Desde la GUI creamos usuario admin, organizacion, | ||
Line 7: | Line 7: | ||
https:// | https:// | ||
+ | |||
+ | Definimos un par de variables. OJO con las comillas simples y las dobles. Las simples no interpretan las variables que tenga dentro: | ||
+ | HOST=localhost: | ||
+ | TOKEN=byqU_stHPeYKuuwFFRgI62zUQGY4i5_SBGxQjmq_pWqwqZOXx8cCg4av5EaAEqFqykF3N | ||
< | < | ||
- | curl -i -XPOST | + | curl -i -XPOST |
- | --header | + | --header |
- | --data-raw | + | --data-raw |
</ | </ | ||
Para consultar: | Para consultar: | ||
+ | < | ||
+ | curl --request POST \ | ||
+ | http:// | ||
+ | --header " | ||
+ | --header ' | ||
+ | --header ' | ||
+ | --data ' | ||
+ | |> range(start: | ||
+ | |> filter(fn: (r) => r._measurement == " | ||
+ | |> aggregateWindow(every: | ||
+ | </ |
informatica/linux/influxdb.1654726951.txt.gz · Last modified: 2022/06/08 22:22 by jose