InfluxDB 명령어

2021. 12. 26. 18:04Docker

https://docs.influxdata.com/influxdb/v2.1/

 

InfluxDB OSS 2.1 Documentation

 

docs.influxdata.com

접속

docker exec -it 컨테이너 bash

데이터 삭제

influx delete --token 토큰 --org 조직 --bucket 버킷 --start '1970-01-01T00:00:00Z' --stop '2022-01-01T00:00:00Z'

서로 다른 measurement의 field와 tag 동시 조회하기

from(bucket: "nbminer")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "mining_pool_pub" or r["_measurement"] == "mining")
  |> filter(fn: (r) => r["_field"] == "recent_credits_24hours" or r["_field"] == "hashrate")
  |> filter(fn: (r) => r["_field"] == "total" or r["currency"] == "ETH")
  |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
  |> yield(name: "mean")

'Docker' 카테고리의 다른 글

Docker 에러  (0) 2022.01.02
Docker 명령어  (0) 2022.01.02
Linux Docker 설치  (0) 2021.12.31
gitlab 설치  (0) 2021.12.26
Windows Docker 설치  (0) 2021.12.26