Comments (4)
Hi @rklabs,
-
The
pip
binary isn't there but the pip module is there. You can runPYTHONHOME=/ python -m pip
in the Docker image ORPYTHONHOME=/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 thepythonBinary
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 thecollectd/python
monitor because Python is linked directly in the collectd binary but you should really consider using thepython-monitor
monitor to extend the agent anyway since it is much more natural to our datapoint format. -
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.
Thanks for the quick reply!
-
Thanks for the tip! I was looking for
pip
executable inbin
directory ofsignalfx-agent
installation. But this works as well and currently, we don't really need C-extension for python. -
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.
Ok, I released it on Pypi: https://pypi.org/project/sfxpython/. Let me know if you have any more issues/questions.
from signalfx-agent.
🎊 Thank you!
from signalfx-agent.
Related Issues (20)
- how to get the sfx metric details and its complete description. HOT 3
- SignalFx agent installation on proxy based server HOT 3
- package doesn't include libnss_resolve HOT 2
- From where we can download the signalfx agent latest rpm file to install.
- Signalfx agent is unable to pick the proxy configurations
- how to run a powershell script from exec plugin HOT 2
- Deprecation notice doesn't make sense to me HOT 2
- Issue regarding metric sf.org.num.mutingactive HOT 1
- Error: " Unable to collect username for process " from SignalFx agent HOT 1
- Signalfx agent making IMDSv1 request HOT 1
- StatsD parser doesn't handle tag values that contain colons
- API to get the list of CI reporting to console from any cloud native like EC2 instances HOT 1
- logLevel is not working in signalfx helm chart HOT 1
- Agent Occasionally Drops HTTP POST Connections HOT 1
- Helm chart version 1.9.4 does not work with App version 5.21.0 (error retrieving resource lock during leaderelection) HOT 2
- What is the upcoming release schedule? HOT 2
- Monitor never create with discoveryRule HOT 2
- metrics monitor `container_cpu_utilization` is seconds not percentages HOT 2
- Bump issue in k8s deployment files HOT 1
- check_links action should ignore SQL link 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 signalfx-agent.