Difference between revisions of "Influx"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "``` apt install influx influx -host myhost SHOW DATABASES USE foo SHOW MEASUREMENTS quit ```")
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
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.10
 +
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
 
apt install influx
Line 7: Line 31:
 
quit
 
quit
 
```
 
```
 +
 +
 +
Alpine v1
 +
``
 +
apk add influxdb
 +
``

Latest revision as of 01:57, 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.10
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