-
InfluxDB 1.8.10 정리WEB 2023. 7. 18. 09:39

유튜브 검색 중 조금 시간이 지난 내용이긴 했지만 좋은 웨비나가 있어서 보게 되었고 아래는 실습하면서 정리한 내용이다
InfluxDB 특징
시간
nsec의 Uinx Time 스타일 사용
Ex) 1689639813000000000 -> 2023년 7월 18일 화요일 오전 9:23:33 GMT+09:00
가시성을 위해 influx -precision rfc3339를 하면 UTC 시간으로 표시
UTC 시간대에서는 시각 뒤에 Z를 붙인다.
Ex) 1981-02-22T09:00Z : UTC 시간대에서의 1981년 2월 22일 오전 9시
구조
-Database : Database
-Table : Measurement
-Rows : Point
-Indexed columns : Tags(String type only) 조회가 많은 인덱스
-Unindexed columns : Fields
Line protocol
[Measurement],[Tagset]한칸띄움[Fieldset]한칸띄움[timestamp]
위치,간격,콤마 위치 중요
Ex)temperature,tag_key=TEMP01 value=24.0
Load Data 확인
show tag keys on "DB명" from "measurement명"
show field keys on "DB명" from "measurement명"
백업
influxd backup -portable -database DB명 백업경로

테스트
measurement, database 삭제

복구
influxd restore -portable -db DB명 백업경로

'WEB' 카테고리의 다른 글
vue3에서 props update emit (1) 2023.10.06 Quasar 외곽선 아이콘 사용하는 방법 (0) 2023.08.25 InfluxDB 1.8.1 윈도우에서 node.js 사용 (0) 2023.07.17 InfluxDB 1.8.1 윈도우 설치 (0) 2023.07.17 Node.js 연동 ajax 기본 (0) 2022.09.29