Please paste the permalink to the page in question below:
Please share your agent version and other relevant versions below:
requirements.txt: newrelic==184.108.40.206 runtime.txt: python-3.4.3
Please share your question/describe your issue below. Include any screenshots that may help us understand your question:
We deployed an application on Heroku using the official Python buildpack. After having used New Relic for our
web dyno for a while already, we now wanted to use it for our two background workers, too. I edited the Procfile as follows:
web: PYTHONPATH=. newrelic-admin run-program gunicorn --max-requests 50 --max-requests-jitter 5 --log-file=- api:app worker_high: PYTHONPATH=. NEW_RELIC_APP_NAME="Worker High" newrelic-admin run-python worker.py high worker_low: PYTHONPATH=. NEW_RELIC_APP_NAME="Worker Low" newrelic-admin run-python worker.py low
worker_* would simply run the
python command directly.
The APM Web UI only reports the web dyno with the
app_name defined in the
newrelic.ini, and even after several restarts / deploys the data for the two workers is not showing up as expected. The idea is to have the data reported separately.
- Are there any other steps required to declare new applications in New Relic?
- Can these background workers not be tracked using New Relic?
- We can use the same NewRelic license key for the workers, too? Or is that some sort of limitation and it silently fails?
Thanks a lot, thankful for any input!
Have a good day, Leo