Comments (2)
Prometheus PVE Exporter uses https://github.com/proxmoxer/proxmoxer under the hood. It looks like there are two ways to specify a port in the HTTPS Backend:
class Backend(object):
def __init__(self, host, user=None, password=None, otp=None, port=None,
verify_ssl=True, mode='json', timeout=5, auth_token=None,
csrf_token=None, token_name=None, token_value=None, service='PVE'):
if ':' in host:
host, host_port = host.split(':')
port = host_port if host_port.isdigit() else port
Either specify port
alongside user
and password
in pve.yml
or supply host:port
as the target
param in prometheus
scraper config.
Example for pve.yml:
default:
user: prometheus@pve
password: sEcr3T!
port: 443
Example for prometheus config:
scrape_configs:
- job_name: 'pve'
static_configs:
- targets:
- 192.168.1.2:443 # Proxmox VE node listening on HTTPS port.
- 192.168.1.3:443 # Proxmox VE node listening on HTTPS port.
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.
from prometheus-pve-exporter.
Nice! Thanks.
I used the method via pve.yml as that does not change the instance name in grafana.
from prometheus-pve-exporter.
Related Issues (20)
- Switch pypi upload to trusted publisher workflow HOT 1
- Use one endpoint /metrics to expose all metrics (without /pve) for PushProx tool. HOT 1
- Remove positional arguments and replace them with flags
- Package publishing pipeline failed HOT 1
- Package publishing pipeline failed again HOT 1
- Add template information HOT 2
- Proxmox node metrics viewable via exporter target ip endpoint but not via prometheus HOT 4
- Prometheus config error HOT 5
- Best way to run promethes-pve-exporter as a service
- gettting metrics from ALL guest instead of the selected instance HOT 7
- Dependabot doesn't pick up new base image version HOT 1
- Alpine Linux 3.19.0 rejects pip install into system directorys
- ARM builds for docker fail (no prebuilt wheels available for cffi and pyyaml for alpine/arm64)
- Node=1&Cluster=0 Returns no data HOT 2
- Set urllib3.disable_warnings() when verify_ssl: false HOT 2
- Renewal Information: Docker-Sponsored Open Source Program prompve HOT 2
- Technical limitations to running this exporter remotely from the proxmox nodes HOT 2
- DEVOPS: Add userInfo events to user-engagement db
- how to use token credentials for two separte PVE nodes HOT 1
- PVE Behind Reverse Proxy HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus-pve-exporter.