Grafana & InfluxDB Installation Guide#


1. Install Grafana#

Documentation: Grafana Debian Installation
Video Reference: Grafana Setup Guide

Install Prerequisites#

apt-get install -y apt-transport-https software-properties-common wget

Import GPG Key#

mkdir -p /etc/apt/keyrings/
wget -q -O - [https://apt.grafana.com/gpg.key](https://apt.grafana.com/gpg.key) | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null

Add Stable Repository#

echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] [https://apt.grafana.com](https://apt.grafana.com) stable main" | tee -a /etc/apt/sources.list.d/grafana.list

Install Grafana OSS#

apt-get update
apt-get install grafana -y

Enable and Start Service#

systemctl daemon-reload
systemctl enable grafana-server
systemctl start grafana-server
systemctl status grafana-server

2. Install InfluxDB#

Documentation: InfluxDB Installation

Setup InfluxData Repository#

wget -q [https://repos.influxdata.com/influxdata-archive_compat.key](https://repos.influxdata.com/influxdata-archive_compat.key)
echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null
echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] [https://repos.influxdata.com/debian](https://repos.influxdata.com/debian) stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list

Install InfluxDB Service#

apt-get update
sudo apt-get install influxdb

Start and Verify InfluxDB#

service influxdb start
systemctl start influxdb
systemctl status influxdb.service

Alternative: Download .deb Package#

wget [https://download.influxdata.com/influxdb/releases/influxdb2_2.7.6-1_amd64.deb](https://download.influxdata.com/influxdb/releases/influxdb2_2.7.6-1_amd64.deb)

3. Configuration#

InfluxDB Initial Setup#

  • User/Password: [Set during setup]
  • Bucket: HP1ProxmoxCluster
  • Organisation: marcoue
  • Action: Save and rename API key.

Proxmox Integration#

  1. Go to Proxmox > Datacenter > Metric Server.
  2. Click Add > InfluxDB.
  3. Enter server details and API token.

Connect to Grafana#

  1. Go to Grafana > Connections > Data Source.
  2. Add InfluxDB and use the bucket/token created above.