InfluxDB is a time-series database built specifically to handle high write and query loads for metrics and events data. In this tutorial, we will show you how to install InfluxDB on Elementary OS Latest.
Before we begin, ensure that you have the following:
Update the local package index:
sudo apt-get update
Install the necessary packages to support InfluxDB:
sudo apt-get install apt-transport-https
Add the InfluxDB repository key:
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
Add the InfluxDB repository to your sources list:
echo "deb https://repos.influxdata.com/debian buster stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
Run apt-get update
again to update the newly added repository:
sudo apt-get update
Install InfluxDB:
sudo apt-get install influxdb
Start the InfluxDB service:
sudo systemctl start influxdb
Verify that InfluxDB is running:
sudo systemctl status influxdb
The output should show that the service is active (running)
.
By default, InfluxDB listens on localhost
port 8086
. If you want to access InfluxDB from remote clients, you need to edit the configuration file to allow traffic on the port:
sudo nano /etc/influxdb/influxdb.conf
Find the [http]
section and uncomment the bind-address
and auth-enabled
lines:
[http]
# Determines whether HTTP endpoint is enabled.
enabled = true
# The bind address used by the HTTP service.
# bind-address = ":8086"
bind-address = "0.0.0.0:8086"
# Determines whether user authentication is enabled over HTTP/HTTPS.
auth-enabled = true
Save and close the file.
Restart the InfluxDB service for the changes to take effect:
sudo systemctl restart influxdb
InfluxDB is now installed and running on your Elementary OS Latest system. You can begin using it by sending data using its API or by using one of the many client libraries that are available.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!