Metadata-Version: 2.1
Name: newrelic-introspector
Version: 0.0.5
Summary: New Relic Python Process Introspector
Home-page: https://github.com/newrelic/newrelic-introspector-python
Author: New Relic
Author-email: open-source@newrelic.com
Maintainer: New Relic
Maintainer-email: open-source@newrelic.com
License: Apache-2.0
Project-URL: Source, https://github.com/newrelic/newrelic-introspector-python
Description: [![Community Project header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Project.png)](https://opensource.newrelic.com/oss-category/#community-project)
        
        # newrelic-introspector-python
        
        This is a CLI tool for discovering instrumentable Python applications on a system,
        retrieving contextual information about them, and automating the install of the New Relic python agent.
        
        ## Getting Started
        
        ```
        > python3 src/lsi.py --list
        [12345]
        
        > python3 src/lsi.js --introspect --pid 12345
        {"pid": 12345, "uid": 1000, "gid": 1000, "ppid": 1, "is_python": true, "contains_python": true, "python_executable": "/usr/bin/python3", "cmd": "/usr/bin/python3 /home/ec2-user/app/main.py"}
        
        > python3 src/lsi.py --install --pid 12345
        
        > python3 src/lsi.py --instrument --pid 12345 --licenseKey $NEW_RELIC_LICENSE_KEY --appName "My Python Application"
        ...
        
        ```
        
        ## Instrumenting processes
        
        The `instrument` command automates several installation steps:
        
        1. Verifies that the [newrelic package](https://pypi.org/project/newrelic/) has been successfully installed.
        2. Generates a newrelic.ini configuration file. If one already exists, an option will be provided to keep or overwrite it. 
        3. Restarts the process using the [newrelic-admin script](https://docs.newrelic.com/docs/agents/python-agent/installation/python-agent-admin-script-advanced-usage/#run-program). 
        
        Instrumentation will survive further restarts, but may be lost if the application is redeployed or any other actions are taken that revert the changes above.
        
        ## Support
        
        New Relic hosts and moderates an online forum where customers can interact with New Relic employees as well as other customers to get help and share best practices. Like all official New Relic open source projects, there's a related Community topic in the New Relic Explorers Hub. You can find this project's topic/threads here:
        
        <https://discuss.newrelic.com/tags/pythonagent>
        
        ## Contribute
        
        We encourage your contributions to improve newrelic-introspector-python! Keep in mind that when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project.
        
        If you have any questions, or to execute our corporate CLA (which is required if your contribution is on behalf of a company), drop us an email at opensource@newrelic.com.
        
        ## License
        
        newrelic-introspector-python is licensed under the [Apache 2.0](http://apache.org/licenses/LICENSE-2.0.txt) License.
        
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Topic :: System :: Monitoring
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7
Description-Content-Type: text/markdown
