Difference between revisions of "Influx"

From UVOO Tech Wiki
Jump to navigation Jump to search
Line 9: Line 9:
 
Version 1
 
Version 1
 
```
 
```
 +
ver=1.8.9
 
cd /tmp
 
cd /tmp
curl -LO https://dl.influxdata.com/influxdb/releases/influxdb-1.8.9-static_linux_amd64.tar.gz
+
curl -LO https://dl.influxdata.com/influxdb/releases/influxdb-$ver-static_linux_amd64.tar.gz
tar xf influxdb-1.8.9-static_linux_amd64.tar.gz
+
tar xf influxdb-$ver-static_linux_amd64.tar.gz
sudo cp influxdb-1.8.9-1/influx /usr/local/bin/influx-v1
+
sudo cp influxdb-$ver-1/influx /usr/local/bin/influx-v1
sudo cp influxdb-1.8.9-1/influxd /usr/local/bin/influxd-v1
+
sudo cp influxdb-$ver-1/influxd /usr/local/bin/influxd-v1
sudo cp influxdb-1.8.9-1/influx_inspect /usr/local/bin/influx_inspect-v1
+
sudo cp influxdb-$ver-1/influx_inspect /usr/local/bin/influx_inspect-v1
sudo cp influxdb-1.8.9-1/influx_stress /usr/local/bin/influx_stress-v1
+
sudo cp influxdb-$ver-1/influx_stress /usr/local/bin/influx_stress-v1
  
 
influx_inspect
 
influx_inspect

Revision as of 01:56, 10 June 2022

Add repo to Ubuntu 22.04/20.04:

echo "deb https://repos.influxdata.com/ubuntu focal stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
sudo curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
sudo apt install influxdb2

Version 1

ver=1.8.9
cd /tmp
curl -LO https://dl.influxdata.com/influxdb/releases/influxdb-$ver-static_linux_amd64.tar.gz
tar xf influxdb-$ver-static_linux_amd64.tar.gz
sudo cp influxdb-$ver-1/influx /usr/local/bin/influx-v1
sudo cp influxdb-$ver-1/influxd /usr/local/bin/influxd-v1
sudo cp influxdb-$ver-1/influx_inspect /usr/local/bin/influx_inspect-v1
sudo cp influxdb-$ver-1/influx_stress /usr/local/bin/influx_stress-v1

influx_inspect

influx-v1 -unsafeSsl -ssl -host influxdb-v1.example.com -port 443
apt install influx
influx -host myhost
SHOW DATABASES
USE foo
SHOW MEASUREMENTS
quit

Alpine v1 apk add influxdb