Skip to content
subuilds.dev

← logbuild #6 passedd351290

Monitoring Proxmox VE with Grafana Stack on LXC

Build professional Proxmox monitoring with Grafana, Prometheus & Telegram alerts. A step-by-step LXC setup with configs that are ready for production.

· 20 min read

Set up monitoring before your Proxmox host fails at 2am.

This guide runs Grafana + Prometheus + AlertManager in one LXC container, with Telegram alerts. An LXC container is a light container that shares the kernel of the host. The host gets no agents. Everything goes through the Proxmox API.

Why Bother Monitoring Proxmox?#

Metrics are numbers that describe a system, like CPU or disk usage. Without metrics, you cannot see a problem until something breaks.

Failures you will not see in time:

  • Disk failure or ZFS degraded state
  • Root filesystem full
  • RAM or swap fully used
  • A VM that uses all the CPU
  • Backups that fail without any message
  • Node down after an update
  • A hacked container that mines crypto

Your storage won’t email you. Your node won’t text you. You find out when it breaks.

In Simple Words#

The problem
Your Proxmox host can have a full disk, no free RAM, or a failed backup, and you do not know it. You find out when something breaks.
The root cause
Proxmox does not tell you when something goes wrong. Without metrics and alerts, nobody watches the host.
The solution
Run Grafana, Prometheus and AlertManager in one LXC container. They read metrics from the Proxmox API with a read-only token. Grafana shows dashboards, and AlertManager sends alerts to Telegram.
Think of it like this
It is like a smoke detector in your house. You cannot watch every room all day and all night. The detector watches for you, and it makes a noise while the fire is still small.

Design the monitoring system#

  1. The Proxmox host runs no agent. The full monitoring stack is in one LXC container at 192.168.100.40.
  2. Every 15 seconds, pve-exporter asks the Proxmox API on port 8006 for metrics. It uses a read-only token.
  3. Prometheus scrapes the exporter. It stores 15 days of history.
  4. Grafana reads from Prometheus and draws the dashboards.
  5. A metric crosses a limit, for example CPU over 85%. Prometheus sends an alert to AlertManager.
  6. AlertManager sends the message to Telegram. Slack is optional.
6 / 6

How This Setup Works#

LXC keeps the setup light. A container adds no extra kernel overhead.

Proxmox side: A read-only API token on port 8006. No agents and no kernel modules.

Monitoring LXC (192.168.100.40):

  • pve-exporter - Asks the Proxmox API every 15s for node, VM, ZFS, and backup metrics
  • Prometheus - Scrapes (collects) the metrics, stores 15 days of history, and checks the alert rules
  • Grafana - Dashboards with ready-made templates
  • AlertManager - Sends notifications to the right place by severity:
    • Critical (node down, disk failure) to Slack
    • Operational (high load, backup failed) to Telegram

What’s Good (and What’s Not)#

Pros:

  • Three services in one LXC
  • ~2GB RAM total
  • Read-only API token, so it is safe by design
  • No license costs
  • Great ready-made dashboards

Cons:

  • Single point of failure (reduce the risk with HA)
  • 15 days of history (you can extend it)
  • No built-in long-term storage (needs Thanos or VictoriaMetrics)
  • Open to your network (use a reverse proxy if needed)

This is fine for homelabs and small production setups. For 50+ nodes, you need a bigger setup.

Prerequisites#

This guide is based on my local setup:

  • Proxmox VE 9.1.1
  • Debian 13 LXC template in Proxmox
  • Basic Linux knowledge
  • Telegram account
  • Slack workspace (optional)

Step 1: Create LXC Container#

Create an unprivileged (safer) Debian 13 LXC for the Grafana stack.

Specifications:

  • VMID: 140
  • Hostname: grafana-stack
  • Template: Debian 13 standard
  • CPU: 4 cores
  • RAM: 8GB
  • Disk: 50GB (local-zfs)
  • Network: Static IP 192.168.100.40/24
bash
# On Proxmox host
pct create 140 local:vztmpl/debian-13-standard_13.1-2_amd64.tar.zst \
  --hostname grafana-stack \      # Container name
  --cores 4 \
  --memory 8192 \
  --swap 2048 \
  --rootfs local-zfs:50 \
  --net0 name=eth0,bridge=vmbr0,ip=192.168.100.40/24,gw=192.168.100.1 \
  --nameserver 8.8.8.8 \
  --unprivileged 1 \              # Safer unprivileged container
  --features nesting=0 \          # Nesting OFF - no docker will be installed in this container - container in a container
  --sshkeys /root/.ssh/your-key \ # injects your workstation keys
  --start 1                       # Start container after created

Result in Proxmox UI:

grafana-lxc on proxmox

Step 2: Configure LXC Network#

LXC containers don’t use cloud-init. Configure the network by hand.

bash
# Access container console via Proxmox UI or:
pct enter 140

# Configure network
cat > /etc/network/interfaces << 'EOF'
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address 192.168.100.40
    netmask 255.255.255.0
    gateway 192.168.100.1
    dns-nameservers 8.8.8.8 8.8.4.4
EOF

# Restart networking
systemctl restart networking

# Verify
ip addr show eth0
ping -c 3 8.8.8.8

Step 3: Install Grafana Stack#

Download grafana-stack-setup.sh or run:

bash
# Update system
apt update && apt upgrade -y

# Install dependencies
apt install -y apt-transport-https wget curl gnupg2 ca-certificates \
  python3 python3-pip unzip

# Download installation script
wget https://gist.githubusercontent.com/sule9985/fabf9e4ebcd9bd93019bd0a5ada5d827/raw/8c7c3f8bf5aa28bba4585142ec876a001b18f63a/grafana-stack-setup.sh
chmod +x grafana-stack-setup.sh

# Run installation
./grafana-stack-setup.sh

The script installs:

  • Grafana 12.3.0 - Shows the data in dashboards
  • Prometheus 3.7.3 - Collects and stores metrics
  • Loki 3.6.0 - Collects logs
  • AlertManager 0.29.0 - Sends alerts to the right place
  • Proxmox PVE Exporter 3.5.5 - Collects Proxmox metrics

It takes ~5-10 minutes. Expected output:

bash
=============================================
VERIFYING INSTALLATION
=============================================


[STEP] Checking service status...

  ✓ grafana-server: running
  ✓ prometheus: running
  ✓ loki: running
  ✓ alertmanager: running
  ! prometheus-pve-exporter: not configured

[STEP] Checking network connectivity...

  ✓ Port 3000 (Grafana): listening
  ✓ Port 9090 (Prometheus): listening
  ✓ Port 3100 (Loki): listening
  ✓ Port 9093 (AlertManager): listening

[SUCCESS] All services verified successfully!

[SUCCESS] Installation completed successfully in 53 seconds!

Step 4: Create Proxmox Monitoring User#

Create a read-only API user on Proxmox for the PVE Exporter.

bash
# SSH to Proxmox host
ssh [email protected]

# Create monitoring user
pveum user add grafana-user@pve --comment "Grafana monitoring user"

# Assign read-only permissions
pveum acl modify / --user grafana-user@pve --role PVEAuditor

# Create API token
pveum user token add grafana-user@pve grafana-token --privsep 0

# Save the token output!
# Example: 8a7b6c5d-1234-5678-90ab-cdef12345678

Save the full token value. It’s only shown once.

Step 5: Configure PVE Exporter#

SSH into the LXC and configure the exporter:

bash
# On grafana-stack LXC
ssh -i PATH_TO_YOUR_KEY [email protected]

# Edit PVE exporter configuration
nano /etc/prometheus-pve-exporter/pve.yml

Pay attention to the token format:

yaml
default:
  user: grafana-user@pve
  # IMPORTANT: Create a read-only user on Proxmox for monitoring
  # On Proxmox host:
  # Then add the token here:
  token_name: 'grafana-token'
  token_value: 'TOKEN_VALUE' # ⚠️ This only shows ONCE when you create it. If you lost it, make a new one.
  # OR use password:
  # password: "CHANGE_ME"
  verify_ssl: false # Self-signed cert? Set this to false or you'll get TLS errors

# Target Proxmox hosts
pve1:
  user: grafana-user@pve
  token_name: 'grafana-token'
  token_value: 'TOKEN_VALUE'
  verify_ssl: false
  target: https://192.168.100.4:8006 # Your Proxmox host IP + port 8006 (HTTPS, not HTTP!)

Lost the token? Create a new one in Proxmox.

Start the service:

bash
# Start service
systemctl start prometheus-pve-exporter

# Verify it's actually running (not just "enabled")
root@grafana-stack:~# systemctl status prometheus-pve-exporter.service
● prometheus-pve-exporter.service - Prometheus Proxmox VE Exporter
     Loaded: loaded (/etc/systemd/system/prometheus-pve-exporter.service; enabled; preset: enabled)
     Active: active (running) since Sun 2025-11-23 11:22:06 +07; 4 days ago
 Invocation: 1c35a29336b346e8b553b74a4d8fc533
       Docs: https://github.com/prometheus-pve/prometheus-pve-exporter
   Main PID: 10509 (pve_exporter)
      Tasks: 4 (limit: 75893)
     Memory: 44.4M (peak: 45.2M)
        CPU: 27min 52.526s
     CGroup: /system.slice/prometheus-pve-exporter.service
             ├─10509 /usr/bin/python3 /usr/local/bin/pve_exporter --config.file=/etc/prometheus-pve-exporter/pve.yml --web.listen-address=0.0.0.0:9221
             └─10550 /usr/bin/python3 /usr/local/bin/pve_exporter --config.file=/etc/prometheus-pve-exporter/pve.yml --web.listen-address=0.0.0.0:9221

Look for “active (running)”. If it says “failed”, check verify_ssl and the Proxmox IP.

Step 6: Configure Prometheus Scraping#

Tell Prometheus where to scrape. To scrape means to fetch metrics from a target again and again:

bash
# Edit Prometheus config
nano /etc/prometheus/prometheus.yml

Add to scrape_configs:

yaml
scrape_configs:
  # ──────────────────────────────────────────────────────────────
  # Proxmox VE monitoring via pve-exporter (runs inside the LXC)
  # ──────────────────────────────────────────────────────────────
  - job_name: 'proxmox' # Friendly name shown in Prometheus/Grafana
    metrics_path: '/pve' # Endpoint where pve-exporter serves Proxmox metrics
    params:
      target:
        ['192.168.100.4:8006'] # Your Proxmox node (or cluster) + GUI port
        # Supports multiple nodes: ['node1:8006','node2:8006']
    static_configs:
      - targets: ['localhost:9221'] # Where pve-exporter is listening inside this LXC
        labels:
          service: 'proxmox-pve' # Custom label – helps filtering in Grafana
          instance: 'pve-host' # Logical name for your cluster/node

Prometheus scrapes localhost:9221/pve (the exporter). The exporter passes the request on to your Proxmox API at 192.168.100.4:8006. Prometheus never talks to Proxmox directly.

Reload:

bash
# Restart Prometheus
systemctl restart prometheus

Open http://192.168.100.40:9090/targets. The proxmox target should show UP in green:

prometheus targets

If it shows DOWN, check the exporter service and the firewall. Nothing else works until this target is UP.

Test a query: Prometheus UI > Graph > enter pve_cpu_usage_limit > Execute:

prometheus query pve cpu usage limit

Do you see numbers? Then the pipeline works.

Progress so far:

  • Proxmox host (v9.1.1) - Read-only user grafana-user@pve with API token
  • Monitoring LXC (192.168.100.40) running:
    • Grafana (v12.3.0)
    • Prometheus (v3.7.3) + PVE Exporter (v3.5.5)
    • AlertManager (v0.29.0)
    • Loki (v3.6.0)

Zero agents on the Proxmox host. Everything uses the API.

Step 7: Import Grafana Dashboard#

  1. Open http://192.168.100.40:3000
  2. Login with admin/admin (change this at once)
  3. Dashboards > New > Import
  4. Dashboard ID: 10347
  5. Click Load
  6. Select Prometheus as datasource
  7. Click Import

Result:

grafana dashboard pve host

Step 8: Set Up Alerting#

Dashboards show what happened. Alerts tell you when it happens.

Step 8a: Create Notification Channels#

  1. Open Telegram, search @BotFather
  2. Send /newbot
  3. Pick a name and username
  4. Save the Bot Token
  5. Start a chat with your bot (send /start)
  6. Get your Chat ID: https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates
    • Find "chat":{"id":123456789} in the response

You need both values for the AlertManager config.

Slack Webhook (Optional)#

  1. Go to https://api.slack.com/apps
  2. Create New App from scratch
  3. Enable Incoming Webhooks
  4. Add New Webhook to Workspace
  5. Pick your channel (e.g., #infrastructure-alerts)
  6. Copy the Webhook URL

Step 8b: Configure Prometheus Alert Rules#

How Alerting Works (The Quick Version)#

Two components, two jobs:

Prometheus Alert Rules = What fires alerts

  • Checks metrics every 30s against thresholds (limits)
  • Adds labels like severity: critical or notification_channel: telegram
  • Sends matching alerts to AlertManager

AlertManager = Where alerts go

  • Sends alerts by label to Telegram, Slack, email, etc
  • Groups similar alerts to avoid spam
  • Removes duplicates and silences repeats

Our setup:

  • Telegram gets all alerts
  • Slack is optional, for teams
  • Two levels: warning (80-85%) and critical (90-95%)
  • A critical alert hides the warning for the same metric
  1. Prometheus reads the metrics from the PVE exporter.
  2. Every 30 seconds to 1 minute, Prometheus checks the alert rules. CPU is at 60%, so no rule matches. It keeps watching.
  3. CPU goes over 85%. The rule matches and the alert fires. Prometheus sends it to AlertManager.
  4. AlertManager waits 10 to 30 seconds (group_wait). It puts alerts of the same kind into one group and drops copies.
  5. AlertManager reads the labels of the alert and picks where it goes.
  6. If a critical alert fires, AlertManager hides the warning alert for the same metric. This rule is called inhibition.
  7. The message goes to Telegram. Slack is optional. If the problem stays, the message repeats every 1 to 2 hours.
7 / 7

Create the alert rules:

bash
# Create alert rules file
nano /etc/prometheus/rules/proxmox.yml

Full config for CPU, memory, disk, and storage:

yaml
groups:
  # ============================================================================
  # Group 1: Host Alerts (Critical Infrastructure)
  # ============================================================================
  - name: proxmox_host_alerts
    interval: 30s
    rules:
      # Proxmox Host Down
      - alert: ProxmoxHostDown
        expr: pve_up{id="node/pve"} == 0
        for: 1m
        labels:
          severity: critical
          component: proxmox
          alert_group: host_alerts
          notification_channel: telegram
        annotations:
          summary: '🔴 Proxmox host is down'
          description: "Proxmox host 'pve' is unreachable or down for more than 1 minute."

      # High CPU Usage
      - alert: ProxmoxHighCPU
        expr: pve_cpu_usage_ratio{id="node/pve"} > 0.85
        for: 5m
        labels:
          severity: warning
          component: proxmox
          alert_group: host_alerts
          notification_channel: telegram
        annotations:
          summary: '⚠️ High CPU usage on Proxmox host'
          description: 'CPU usage is {{ $value | humanizePercentage }} on Proxmox host (threshold: 85%).'

      # Critical CPU Usage
      - alert: ProxmoxCriticalCPU
        expr: pve_cpu_usage_ratio{id="node/pve"} > 0.95
        for: 2m
        labels:
          severity: critical
          component: proxmox
          alert_group: host_alerts
          notification_channel: telegram
        annotations:
          summary: '🔴 CRITICAL CPU usage on Proxmox host'
          description: 'CPU usage is {{ $value | humanizePercentage }} on Proxmox host (threshold: 95%).'

      # High Memory Usage
      - alert: ProxmoxHighMemory
        expr: (pve_memory_usage_bytes{id="node/pve"} / pve_memory_size_bytes{id="node/pve"}) > 0.85
        for: 5m
        labels:
          severity: warning
          component: proxmox
          alert_group: host_alerts
          notification_channel: telegram
        annotations:
          summary: '⚠️ High memory usage on Proxmox host'
          description: 'Memory usage is {{ $value | humanizePercentage }} on Proxmox host (threshold: 85%).'

      # Critical Memory Usage
      - alert: ProxmoxCriticalMemory
        expr: (pve_memory_usage_bytes{id="node/pve"} / pve_memory_size_bytes{id="node/pve"}) > 0.95
        for: 2m
        labels:
          severity: critical
          component: proxmox
          alert_group: host_alerts
          notification_channel: telegram
        annotations:
          summary: '🔴 CRITICAL memory usage on Proxmox host'
          description: 'Memory usage is {{ $value | humanizePercentage }} on Proxmox host (threshold: 95%).'

      # High Disk Usage
      - alert: ProxmoxHighDiskUsage
        expr: (pve_disk_usage_bytes{id="node/pve"} / pve_disk_size_bytes{id="node/pve"}) > 0.80
        for: 10m
        labels:
          severity: warning
          component: proxmox
          alert_group: host_alerts
          notification_channel: telegram
        annotations:
          summary: '⚠️ High disk usage on Proxmox host'
          description: 'Disk usage is {{ $value | humanizePercentage }} on Proxmox host (threshold: 80%).'

      # Critical Disk Usage
      - alert: ProxmoxCriticalDiskUsage
        expr: (pve_disk_usage_bytes{id="node/pve"} / pve_disk_size_bytes{id="node/pve"}) > 0.90
        for: 5m
        labels:
          severity: critical
          component: proxmox
          alert_group: host_alerts
          notification_channel: telegram
        annotations:
          summary: '🔴 CRITICAL disk usage on Proxmox host'
          description: 'Disk usage is {{ $value | humanizePercentage }} on Proxmox host (threshold: 90%).'

  # Group 2: Storage Alerts (Telegram - Operational Alerts)
  - name: proxmox_storage_alerts
    interval: 1m
    rules:
      # Storage Pool High Usage
      - alert: ProxmoxStorageHighUsage
        expr: (pve_disk_usage_bytes{id=~"storage/.*"} / pve_disk_size_bytes{id=~"storage/.*"}) > 0.80
        for: 10m
        labels:
          severity: warning
          component: proxmox
          alert_group: storage_alerts
          notification_channel: telegram
        annotations:
          summary: '⚠️ High usage on storage {{ $labels.storage }}'
          description: "Storage '{{ $labels.storage }}' usage is {{ $value | humanizePercentage }} (threshold: 80%)."

      # Storage Pool Critical Usage
      - alert: ProxmoxStorageCriticalUsage
        expr: (pve_disk_usage_bytes{id=~"storage/.*"} / pve_disk_size_bytes{id=~"storage/.*"}) > 0.90
        for: 5m
        labels:
          severity: critical
          component: proxmox
          alert_group: storage_alerts
          notification_channel: telegram
        annotations:
          summary: '🔴 CRITICAL usage on storage {{ $labels.storage }}'
          description: "Storage '{{ $labels.storage }}' usage is {{ $value | humanizePercentage }} (threshold: 90%)."

Step 8c: Configure AlertManager Routing#

bash
nano /etc/alertmanager/alertmanager.yml
yaml
global:
  resolve_timeout: 5m

# Routing tree - directs alerts to receivers based on labels
route:
  # Default grouping and timing
  group_by: ['alertname', 'severity', 'alert_group']
  group_wait: 10s # Wait before sending first notification
  group_interval: 10s # Wait before sending notifications for new alerts in group
  repeat_interval: 12h # Resend notification every 12 hours if still firing

  # Default receiver for unmatched alerts
  receiver: 'telegram-default'

  # Child routes - matched in order, first match wins
  routes:
    # Route 1: Slack for host_alerts (critical infrastructure)
    - match:
        notification_channel: slack
      receiver: 'slack-channel'
      group_wait: 10s
      group_interval: 10s
      repeat_interval: 1h # Repeat every hour for critical infrastructure
      continue: false # Stop matching after this route

    # Route 2: Telegram for telegram channel alerts (storage)
    - match:
        notification_channel: telegram
      receiver: 'telegram-operational'
      group_wait: 30s
      group_interval: 30s
      repeat_interval: 2h # Repeat every 2 hours for operational alerts
      continue: false

# Notification receivers
receivers:
  # Slack receiver for critical infrastructure (host alerts)
  - name: 'slack-channel'
    slack_configs:
      - api_url: 'SLACK_WEBHOOK'
        channel: '#alerts-test'
        username: 'Prometheus AlertManager'
        icon_emoji: ':warning:'
        title: '{{ .GroupLabels.alertname }} - {{ .GroupLabels.severity | toUpper }}'
        text: |
          {{ range .Alerts }}
          *Alert:* {{ .Labels.alertname }}
          *Severity:* {{ .Labels.severity }}
          *Component:* {{ .Labels.component }}
          *Summary:* {{ .Annotations.summary }}
          *Description:* {{ .Annotations.description }}
          {{ end }}
        send_resolved: true
        # Optional: Mention users for critical alerts
        # color: '{{ if eq .Status "firing" }}danger{{ else }}good{{ end }}'

  # Telegram receiver for operational alerts (storage)
  - name: 'telegram-operational'
    telegram_configs:
      - bot_token: 'BOT_TOKEN'
        chat_id: CHAT_ID_NUMBERS
        parse_mode: 'HTML'
        message: |
          {{ range .Alerts }}
          <b>{{ .Labels.severity | toUpper }}: {{ .Labels.alertname }}</b>

          {{ .Annotations.summary }}

          <b>Details:</b>
          {{ .Annotations.description }}

          <b>Component:</b> {{ .Labels.component }}
          <b>Group:</b> {{ .Labels.alert_group }}
          <b>Status:</b> {{ .Status }}
          {{ end }}
        send_resolved: true

  # Default Telegram receiver (fallback)
  - name: 'telegram-default'
    telegram_configs:
      - bot_token: 'BOT_TOKEN'
        chat_id: CHAT_ID_NUMBERS
        parse_mode: 'HTML'
        message: |
          {{ range .Alerts }}
          <b>{{ .Labels.severity | toUpper }}: {{ .Labels.alertname }}</b>

          {{ .Annotations.summary }}
          {{ .Annotations.description }}

          <b>Component:</b> {{ .Labels.component }}
          {{ end }}
        send_resolved: true

# Inhibition rules - suppress alerts based on other alerts
inhibit_rules:
  # If critical alert is firing, suppress warning alerts for same component
  - source_match:
      severity: 'critical'
    target_match:
      severity: 'warning'
    equal: ['component', 'alertname']

Validate before you reload. One typo breaks everything:

bash
# Validate configs (do this FIRST!)
promtool check rules /etc/prometheus/rules/proxmox.yml
amtool check-config /etc/alertmanager/alertmanager.yml

# If validation passed, reload
curl -X POST http://localhost:9090/-/reload
systemctl restart alertmanager

Verify at http://192.168.100.40:9090/alerts. All rules should be listed:

prometheus alert

Step 9: Test Alerts#

Don’t skip this. Check that the routing works before you need it.

bash
# Test Slack alert (if you set it up)
curl -X POST http://localhost:9093/api/v2/alerts \
  -H "Content-Type: application/json" \
  -d '[{
    "labels": {
      "alertname": "TestSlack",
      "notification_channel": "slack",
      "severity": "warning"
    },
    "annotations": {
      "summary": "Test Slack Alert",
      "description": "This is a test alert sent manually to verify Slack routing"
    }
  }]'

# Test Telegram alert
curl -X POST http://localhost:9093/api/v2/alerts \
  -H "Content-Type: application/json" \
  -d '[
  {
    "labels": {
      "alertname": "TestTelegram",
      "notification_channel": "telegram",
      "severity": "warning"
    },
    "annotations": {
      "summary": "Test Telegram Alert",
      "description": "This is a test"
    }
  }
]'

You should see messages within 10-30 seconds:

slack receives alerts

telegram receives alerts

Troubleshooting Common Issues#

PVE Exporter Won’t Start / Shows “Not Configured”#

Check in order:

  1. Config file missing

    bash
    cat /etc/prometheus-pve-exporter/pve.yml
    # If you get "No such file", well... there's your problem
  2. Wrong API token format

    • Use: token_name: "grafana-token" and token_value: "8a7b6c5d-1234-5678..."
    • Not the full PVEAPIToken=user@pve!token=value string
  3. Can’t reach Proxmox

    bash
    curl -k https://192.168.100.4:8006/api2/json/nodes \
      -H "Authorization: PVEAPIToken=grafana-user@pve!grafana-token=YOUR_TOKEN"
    # Should return JSON. Timeout = network/firewall issue
  4. Check logs

    bash
    journalctl -u prometheus-pve-exporter -f

Prometheus Target Shows “Context Deadline Exceeded”#

Prometheus can’t finish the scrape in time. The cause is usually the network or SSL.

  1. Firewall blocking port 8006

    bash
    # From inside LXC
    curl -k https://192.168.100.4:8006
    # Timeout = firewall
  2. SSL issues - Set verify_ssl: false in pve.yml for self-signed certs

  3. Slow scraping - Increase timeout:

    yaml
    scrape_configs:
      - job_name: 'proxmox'
        scrape_timeout: 30s # Bump from default 10s

Grafana Shows “No Data” on Dashboard#

  1. Check Prometheus connection

    • Grafana > Configuration > Data Sources > Prometheus > Test
    • Should say “Data source is working”
  2. Check metrics

    • Open http://192.168.100.40:9090, query pve_up
    • Should return 1
  3. Time range - Set to “Last 15 minutes” if you just started collecting

Alerts Configured But Nothing Happens#

  1. Check alert state at http://192.168.100.40:9090/alerts

    • Green = inactive
    • Yellow = pending (waiting for “for” duration)
    • Red = firing
  2. Check AlertManager

    bash
    curl http://localhost:9093/api/v2/alerts
  3. Check logs

    bash
    journalctl -u alertmanager -f
  4. Run manual test from Step 9. If that fails, your Telegram token or Slack webhook is wrong.

Permission Denied / 403 Errors from Proxmox API#

  1. Wrong permissions

    bash
    # On Proxmox host
    pveum user permission list grafana-user@pve
    # Should show "PVEAuditor" role on path "/"
  2. Token no longer valid (this happens after Proxmox updates)

    bash
    pveum user token remove grafana-user@pve grafana-token
    pveum user token add grafana-user@pve grafana-token --privsep 0
    # Update pve.yml with the new value
  3. Token expired - Check Proxmox UI (Datacenter > Permissions > API Tokens) for the expiry date

Monitoring Metrics#

The most important metrics:

Host Metrics:

  • pve_cpu_usage_ratio - CPU usage (0-1)
  • pve_memory_usage_bytes / pve_memory_size_bytes - Memory usage
  • pve_disk_usage_bytes / pve_disk_size_bytes - Disk usage
  • pve_up{id="node/pve"} - Host availability

Storage Metrics:

  • pve_disk_usage_bytes{id=~"storage/.*"} - Storage pool usage
  • pve_storage_info - Storage pool info

Alert Rules Summary#

Alert Threshold Duration Channel Severity
Host Alerts (Telegram - Critical Infrastructure)
ProxmoxHostDown == 0 1 min Telegram Critical
ProxmoxHighCPU >85% 5 min Telegram Warning
ProxmoxCriticalCPU >95% 2 min Telegram Critical
ProxmoxHighMemory >85% 5 min Telegram Warning
ProxmoxCriticalMemory >95% 2 min Telegram Critical
ProxmoxHighDiskUsage >80% 10 min Telegram Warning
ProxmoxCriticalDiskUsage >90% 5 min Telegram Critical
Storage Alerts (Telegram - Operational)
ProxmoxStorageHighUsage >80% 10 min Telegram Warning
ProxmoxStorageCriticalUsage >90% 5 min Telegram Critical

Summary#

You now have:

  • Grafana dashboards with live Proxmox metrics
  • Telegram alerts that arrive before things break
  • Full monitoring with zero agents on the host

All in a single 8GB LXC.

Next steps:

  1. Adjust the alert thresholds to your workload
  2. Add storage pools by copying alert rules
  3. Set up a reverse proxy with SSL for access to Grafana from outside
  4. Add VM/LXC monitoring with separate exporters (separate guide)

Run the test alerts (Step 9) again from time to time, to make sure everything still works.

Resources#