Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Create and save custom metrics via django command


#1

Hi! I would like to create custom metrics executing something like ‘python manage.py get_custom_metrics’. Is it possible? I’ve tried it but haven’t been successful


#2

Hey @daniela.campos

It’s possible to monitor Django management commands, but it will require some additional configuration from your side. We provide built-in support for this however it’s an optionally enabled feature. Below I am including some additional documentation:

https://docs.newrelic.com/docs/agents/python-agent/supported-features/python-background-tasks#django

Please give it a go and let us know how it went.