informatica:linux:influxdb
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| informatica:linux:influxdb [2022/06/09 08:33] – jose | informatica:linux:influxdb [2022/06/09 09:04] (current) – jose | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| - | Por ejemplo ponemos | + | Definimos un par de variables. OJO con las comillas simples y las dobles. Las simples no interpretan las variables que tenga dentro: |
| HOST=localhost: | 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.1654763636.txt.gz · Last modified: by jose
