Sunday, December 11, 2022

How To Install InfluxDB and Telegraf on Oracle Linux Server 9

 InfluxDB is an open-source time series database (TSDB) developed by the company InfluxData.
Telegraf is a server-based agent for collecting and sending all metrics and events from databases, systems, and IoT sensors.
__________________________________________________________________________________________________________________________________
Server - Os:  Oracle Linux Server 9.0   64Bit      | IP -192.168.1.50        |Hostname - server.testbox.com
__________________________________________________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y

cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
[influxdb]
name = influxdb Repository - RHEL \$releasever
baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
EOF

sudo dnf install influxdb2
sudo systemctl start influxdb ; sudo systemctl enable influxdb ; sudo systemctl status influxdb
sudo firewall-cmd --add-port=8086/tcp --permanent ; sudo firewall-cmd --reload ; sudo firewall-cmd --list-ports
sudo dnf install influxdb2-cli -y
which influx ; influx version

sudo influx completion bash > /etc/bash_completion.d/influx.sh
sudo chmod +x /etc/bash_completion.d/influx.sh
sudo influx TAB
sudo influx setup
sudo influx user list
sudo influx auth list

export INFLUX_TOKEN=OK15O5laLtEr88RFtLE9xtVAN7cNCieQFT_YJ2FYEC5T-fYcZkGyp1A7e_vjhIXUKZDBktaPdH0GUmlVQDzsDQ==
sudo influx v1 shell $INFLUX_TOKEN
show DATABASES
http://192.168.5.100:8086)
alice
__________________________________________________________________________________________________________________________________