카이도스의 Tech Blog

PROXMOX - InfluxDB-grafana 설치 및 연동 본문

PROXMOX

PROXMOX - InfluxDB-grafana 설치 및 연동

카이도스 2023. 12. 9. 18:38
728x90
반응형
# 설치
sudo hostnamectl set-hostname influxdb
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 update
sudo apt install -y influxdb2

sudo systemctl start influxdb
sudo systemctl enable influxdb
sudo systemctl status influxdb

# 경로변경
sudo systemctl stop influxdb
sudo systemctl status influxdb
sudo vi /etc/influxdb/config.toml
bolt-path = "/data/influxdb/influxd.bolt"
engine-path = "/data/influxdb/engine"

# 폴더 복사
cp -av /var/lib/influxdb /data/

# 시작
sudo systemctl start influxdb
sudo systemctl status influxdb

# TOKEN
cJFUhxqdnFzxdoqXB8fq....
728x90
반응형
Comments