Proxmox VE exporter for the Prometheus monitoring system.
Project description
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) address Address to which the exporter will bind optional arguments: -h, --help show this help message and exit
Use :: for the address argument in order to bind to both IPv6 and IPv4 sockets on dual stacked machines.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file prometheus-pve-exporter-1.1.1.tar.gz
.
File metadata
- Download URL: prometheus-pve-exporter-1.1.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eebd808b61073c6081deba572aca3441b97ea0b266e4869a556a95bfdee397f6 |
|
MD5 | 6c15b162dd2ff7035fef963c581c3787 |
|
BLAKE2b-256 | 87452870728bb59d93828f7440d36a62dafdbce585ffebbd3161404b984e0567 |
File details
Details for the file prometheus_pve_exporter-1.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: prometheus_pve_exporter-1.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ad8c98869536df679fc0b56e411f0a82fad48efa4dd394538fce10d6dadce82 |
|
MD5 | a8405e1b7c5ce243c2b29dc82e642d7f |
|
BLAKE2b-256 | f9a581f08b8f866e55a44524639266f67a423d8e4e7fc4e439708753d0c65b13 |