How to Install InfluxDB on Elementary OS Latest

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.

Prerequisites

Before we begin, ensure that you have the following:

Steps to Install InfluxDB

  1. Update the local package index:

    sudo apt-get update
    
  2. Install the necessary packages to support InfluxDB:

    sudo apt-get install apt-transport-https
    
  3. Add the InfluxDB repository key:

    curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
    
  4. 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
    
  5. Run apt-get update again to update the newly added repository:

    sudo apt-get update
    
  6. Install InfluxDB:

    sudo apt-get install influxdb
    
  7. Start the InfluxDB service:

    sudo systemctl start influxdb
    
  8. Verify that InfluxDB is running:

    sudo systemctl status influxdb
    

    The output should show that the service is active (running).

  9. 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.

  10. Restart the InfluxDB service for the changes to take effect:

    sudo systemctl restart influxdb
    

Conclusion

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!