Skip to main content

Proxmox VE exporter for the Prometheus monitoring system.

Project description

Build Status Package Version Package Download

This is an exporter that exposes information gathered from Proxmox VE node for use by the Prometheus monitoring system.

Installation

pip install prometheus-pve-exporter

Usage

usage: pve_exporter [-h] [config] [port]

positional arguments:
  config      Path to configuration file (pve.yml)
  port        Port on which the exporter is listening (9221)

optional arguments:
  -h, --help  show this help message and exit

Visit http://localhost:9221/pve?target=1.2.3.4 where 1.2.3.4 is the IP of the Proxmox VE node to get metrics from. Specify the module request parameter, to choose which module to use from the config file.

The target request parameter defaults to localhost. Hence if pve_exporter is deployed directly on the proxmox host, target can be omitted.

See the wiki for more examples and docs.

Authentication

Example pve.yml

default:
    user: prometheus@pve
    password: sEcr3T!
    verify_ssl: false

The configuration is passed directly into proxmoxer.ProxmoxAPI().

Proxmox VE Configuration

For security reasons it is essential to add a user with read-only access (PVEAuditor role) for the purpose of metrics collection.

Prometheus Configuration

The PVE exporter can be deployed either directly on a Proxmox VE node or onto a separate machine.

Example config for PVE exporter running on PVE node:

scrape_configs:
  - job_name: 'pve'
    static_configs:
      - targets:
        - 192.168.1.2:9221  # Proxmox VE node with PVE exporter.
        - 192.168.1.3:9221  # Proxmox VE node with PVE exporter.
    metrics_path: /pve
    params:
      module: [default]

Example config for PVE exporter running on Prometheus host:

scrape_configs:
  - job_name: 'pve'
    static_configs:
      - targets:
        - 192.168.1.2  # Proxmox VE node.
        - 192.168.1.3  # Proxmox VE node.
    metrics_path: /pve
    params:
      module: [default]
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: 127.0.0.1:9221  # PVE exporter.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prometheus-pve-exporter-1.0.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distributions

prometheus_pve_exporter-1.0.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

prometheus_pve_exporter-1.0.0-py2-none-any.whl (9.0 kB view details)

Uploaded Python 2

File details

Details for the file prometheus-pve-exporter-1.0.0.tar.gz.

File metadata

File hashes

Hashes for prometheus-pve-exporter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 08ab05b2f4a6423e71fab09b46bf17fc649bba590bb4afa3e9aaf483e8bdedce
MD5 575611a285a64a60ef3a681325cf82db
BLAKE2b-256 d76b0603d9927f269a70cec6bcf3f36a371e650cf6b575219cdcd772b2f8dafa

See more details on using hashes here.

File details

Details for the file prometheus_pve_exporter-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for prometheus_pve_exporter-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02229d6700429cc55b162d6d5ae6bcd5898569c92328516005ed9ca773f623ce
MD5 aabdb555f7024a26b43c6144cd7411b5
BLAKE2b-256 8c903a08d8c566a63229f9c8c531b24bfe974e7d8cb2805f22652e544db33ac1

See more details on using hashes here.

File details

Details for the file prometheus_pve_exporter-1.0.0-py2-none-any.whl.

File metadata

File hashes

Hashes for prometheus_pve_exporter-1.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 95f09ce3220a64be975a27b5a910b774e0bcbdbc5a059d702b385813c3995016
MD5 1ee4e2ee471cac4277c71b48eee5e947
BLAKE2b-256 e72882f586b5fc00c45ade200428f47ef54eb43b0723b6a47e83858d5dc91901

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page