Comments (7)
Yes, makes sense. This seems to be surprisingly difficult to implement in a platform independent way though. Result of a quick research:
- https://bugs.python.org/issue20215
- https://bugs.python.org/issue24209
- https://gist.github.com/akorobov/7903307
- https://code.activestate.com/recipes/578504-server-supporting-ipv4-and-ipv6/
- certbot/certbot#4773
from prometheus-pve-exporter.
Maybe you can take a look at the pihole exporter https://github.com/dr1s/pihole_exporter.py
It's also using python3 and listens on IPv6. Though I don't know how platform independent this implementation is
from prometheus-pve-exporter.
Oh, thanks. It looks like that they use flask. Might be justified to pull in that dependency instead of trying to work around the limitations of the built-in http server.
from prometheus-pve-exporter.
Can you take a look at PR #7 and test whether that works in your setup?
The cli has a new argument (address
). You can specify any IPv4 or IPv6 address there (use ::
on a dual-stack machine, then it should listen on all interfaces, IPv4 as well as IPv6).
from prometheus-pve-exporter.
It works. I created a new python3 virtual environment, installed the branch and ran it with the following command: /opt/pve-exporter/bin/pve_exporter /etc/prometheus/pve.yml 9221 ::
It's listening on tcp6 ::9221 and reachable via IPv4 and every IPv6 address.
Thank you very much for your response and help. Your exporter was one of the few without IPv6 :)
from prometheus-pve-exporter.
Your exporter was one of the few without IPv6 :)
Thats probably because most of the other exporters switched to go (which has no problem with IPv6 out of the box). But AFAIK there are no Python bindings for the Proxmox API in go.
from prometheus-pve-exporter.
Released 1.1.0 with IPv6 support
from prometheus-pve-exporter.
Related Issues (20)
- 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
- compose file? HOT 2
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.