install_guide

Install InfluxDB

Installation of InfluxDB on Ubuntu22.04|20.04|18.04 is done from Influxdata repository. Once the repo is added, the package can then be installed using an apt package manager. Add the InfluxData repository to the file /etc/apt/sources.list.d/influxdb.list:

# Update packages
sudo apt update && sudo apt upgrade -y

# Install dependencies
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils ncdu git jq chrony liblz4-tool -y

Add repo to Ubuntu

# for Ubuntu 22.04/20.04:
echo "deb https://repos.influxdata.com/ubuntu focal stable" | sudo tee /etc/apt/sources.list.d/influxdb.list

# for Ubuntu 18.04:
echo "deb https://repos.influxdata.com/ubuntu bionic stable" | sudo tee /etc/apt/sources.list.d/influxdb.list

Import GPG key

sudo curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -

Update apt index and install InfluxDB

sudo apt-get update
sudo apt-get install influxdb

Start and enable the service to start on boot up

Check service status:

Configure the InfluxDB Server

Configure a new admin user with root privileges for InfluxDB server.

Enabling authentication by modifying the main InfluxDB configuration file

Locate the line # auth-enabled = false under the [http] section. Change the value of auth-enabled from false to true and remove the leading # symbol from the line to uncomment the setting. Restart the influxdb service.

Creating an InfluxDB Database

Log in to the InfluxDB server with the admin username and password

Create the database

Check our database

By default, influxdb service is listening on all interfaces on port 8086.

Install Telegraf

Installation of telegraf on Ubuntu is done from Influxdata repository. Once the repo is added, the package can then be installed using an apt package manager. Add the InfluxData repository to the file /etc/apt/sources.list.d/influxdata.list

Import apt key

Update apt-get index and install telegraf

Start and enable the service to start on boot up

Check service status

Configuring Telegraf

Download config telegraf.conf

Open telegraf.conf

and replace

Once all changes have been made, you can restart the telegraf service

Enable Prometheus in your validator node. Configure config.toml and edit three options:

  • prometheus = true

  • prometheus_listen_addr = “127.0.0.1:26660”

  • namespace = “tendermint”

u11

Restart service of your validator

Install Grafana

Update your Apt repositories and install Grafana

Start Grafana service

Last updated