Influx 2.X 설치
Influx 2.X로 바뀌면서 Bucket 추가, flux(이전에 influxql) 사용
Influx 공식 사이트를 가이드에 따라 설치 (https://portal.influxdata.com/downloads/)
# influxdata-archive_compat.key GPG fingerprint:
# 9D53 9D90 D332 8DC7 D6C8 D3B9 D8FF 8E1F 7DF8 B07E
wget -q https://repos.influxdata.com/influxdata-archive_compat.key
echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null
echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list
sudo apt-get update && sudo apt-get install influxdb2
사용 방법 공식 Document 참고(https://docs.influxdata.com/influxdb/v2.6/get-started/setup/)
// 명령어를 이용하여 서비스 실행
// localhost:8089으로 접속하면 InfluxDB에서 제공해주는 UI 사용 가능
influxd
Grafana 설치
dpkg를 이용한 공식 사이트 설치 가이드 (https://grafana.com/grafana/download?edition=oss&platform=linux)
sudo apt-get install -y adduser libfontconfig1
wget https://dl.grafana.com/oss/release/grafana_9.4.3_amd64.deb
sudo dpkg -i grafana_9.4.3_amd64.deb
apt를 이용한 공식 사이트 설치 가이드 (https://grafana.com/docs/grafana/latest/setup-grafana/installation/debian/)
sudo apt-get install -y apt-transport-https
sudo apt-get install -y software-properties-common wget
sudo wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key
//Add this repository for stable releases
echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
sudo apt-get update
# Install the latest OSS release:
sudo apt-get install grafana
접속 방법 (https://grafana.com/docs/grafana/latest/getting-started/build-first-dashboard/)
localhost:3000/
'DB' 카테고리의 다른 글
MongoDB + Compass 설치 (Docker Container + M2 Silicon) (0) | 2023.07.12 |
---|---|
InfluxDB 설치, 사용법 및 개념(Docker Container) (1) | 2023.04.10 |
SQLite 설치 및 사용법 (0) | 2023.03.15 |