Giter VIP home page Giter VIP logo

Comments (7)

znerol avatar znerol commented on June 18, 2024

Yes, makes sense. This seems to be surprisingly difficult to implement in a platform independent way though. Result of a quick research:

from prometheus-pve-exporter.

Madic- avatar Madic- commented on June 18, 2024

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.

znerol avatar znerol commented on June 18, 2024

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.

znerol avatar znerol commented on June 18, 2024

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.

Madic- avatar Madic- commented on June 18, 2024

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.

znerol avatar znerol commented on June 18, 2024

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.

znerol avatar znerol commented on June 18, 2024

Released 1.1.0 with IPv6 support

from prometheus-pve-exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.