Git Product home page Git Product logo

Comments (4)

keitwb avatar keitwb commented on August 13, 2024

Hi @rklabs,

  1. The pip binary isn't there but the pip module is there. You can run PYTHONHOME=/ python -m pip in the Docker image OR PYTHONHOME=/usr/lib/signalfx-agent python -m pip if running it straight from the deb/rpm package installation. The main limitation of doing pip installs is that any installs that require C-extension compilation probably won't work, but that is mitigated by the prevalence of wheels.
    If you have dependencies that require extension compilation or you want to use a specific version of Python, you can install Python separately on your host and use the pythonBinary config option to the python-monitor (if you are installing the agent on a host and not running the container image). There is no such config for the collectd/python monitor because Python is linked directly in the collectd binary but you should really consider using the python-monitor monitor to extend the agent anyway since it is much more natural to our datapoint format.

  2. We can definitely publish that as a package to Pypi if it makes things easier for you. I'm assuming the main reason you want it there is for development/IDE support? Or is it something else?

Let me know any other feedback/issues on the Python stuff -- this is still pretty new so it has a lot of room for maturation.

from signalfx-agent.

rklabs avatar rklabs commented on August 13, 2024

Thanks for the quick reply!

  1. Thanks for the tip! I was looking for pip executable in bin directory of signalfx-agent installation. But this works as well and currently, we don't really need C-extension for python.

  2. Thanks for quickly creating the pr to install signalfx modules required for python monitor. We are currently migrating a bunch of custom metric collection scripts and we wanted to create a virtual environment with dependencies including from signalfx and use the python interpreter installed in a virtual environment rather than use the one packaged along with signalfx-agent. We want to maintain a clear boundary for the custom scripts and not mess with the python dist provided by signalfx-agent.

Yeah! sure thing, we have just started using signalfx and it's been a fun ride and if there is anything I will reach out to you.

from signalfx-agent.

keitwb avatar keitwb commented on August 13, 2024

Ok, I released it on Pypi: https://pypi.org/project/sfxpython/. Let me know if you have any more issues/questions.

from signalfx-agent.

rklabs avatar rklabs commented on August 13, 2024

🎊 Thank you!

from signalfx-agent.

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.