PaaS/Data

influxDB influx cli 설치하기

armyost 2023. 6. 26. 00:32
728x90

influx cli를 설치해야 계정생성 부터 할수 있는게 많다... 

아직 influx는 관리자콘솔 기능이 많이 부재하다. 어쩔수 없이 깔아야 한다.

 

 

https://docs.influxdata.com/influxdb/v2.7/tools/influx-cli/?t=Linux 

 

Install and use the influx CLI | InfluxDB OSS 2.7 Documentation

Thank you for your feedback! Let us know what we can do better:

docs.influxdata.com

 

 

  1. Download the influx CLI package.Download from your browserDownload from the command line
  2. # amd64
    wget https://dl.influxdata.com/influxdb/releases/influxdb2-client-2.7.3-linux-amd64.tar.gz
    
    # arm
    wget https://dl.influxdata.com/influxdb/releases/influxdb2-client-2.7.3-linux-arm64.tar.gz
    
     
  3. influx CLI v2.7.3 (amd64) influx CLI v2.7.3 (arm)
  4. Download the influx CLI package from your browser or from the command line.
  5. Unpackage the downloaded package.
    # amd64
    tar xvzf path/to/influxdb2-client-2.7.3-linux-amd64.tar.gz
    
    # arm
    tar xvzf path/to/influxdb2-client-2.7.3-linux-arm64.tar.gz
    
     
  6. Note: The following commands are examples. Adjust the filenames, paths, and utilities if necessary.
  7. (Optional) Place the unpackaged influx executable in your system $PATH.If you do not move the influx binary into your $PATH, prefix the executable ./ to run it in place.
  8. # amd64
    sudo cp influxdb2-client-2.7.3-linux-amd64/influx /usr/local/bin/
    
    # arm
    sudo cp influxdb2-client-2.7.3-linux-arm64/influx /usr/local/bin/
    
     

Set up the influx CLI

Provide required authentication credentials

To avoid having to pass your InfluxDB host, API token, and organization with each command, store them in an influx CLI configuration (config). influx commands that require these credentials automatically retrieve these credentials from the active config.

Use the influx config create command to create an influx CLI config and set it as active:

influx config create --config-name <config-name> \
  --host-url http://localhost:8086 \
  --org <your-org> \
  --token <your-auth-token> \
  --active
 

 

 

설치후 사용하는 커맨드 라인은 다음을 참고바람

 

https://docs.influxdata.com/influxdb/v2.7/reference/cli/influx/

 

influx - InfluxDB command line interface | InfluxDB OSS 2.7 Documentation

Thank you for your feedback! Let us know what we can do better:

docs.influxdata.com

 

 

'PaaS > Data' 카테고리의 다른 글

Kibana 설치 및 ElasticSearch 연동  (0) 2023.08.06
ElasticSearch 클러스터 설치하기 3개의 Master, 2개의 Data Node  (0) 2023.08.06
Elastic Search API 쿼리 샘플  (0) 2023.01.13
InfluxDB 설치하기  (0) 2022.10.22
Data Mesh란?  (0) 2022.08.16