Comments (6)
right now with version 1.10.4 no fails.
from django-prometheus.
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Unhandled exception in thread started by <function wrapper at 0x7f9229f95410>
Traceback (most recent call last):
File "/ve/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "/ve/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 142, in inner_run
handler = self.get_handler(*args, **options)
File "/ve/local/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/runserver.py", line 27, in get_handler
handler = super(Command, self).get_handler(*args, **options)
File "/ve/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 64, in get_handler
return get_internal_wsgi_application()
File "/ve/local/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 49, in get_internal_wsgi_application
return import_string(app_path)
File "/ve/local/lib/python2.7/site-packages/django/utils/module_loading.py", line 20, in import_string
module = import_module(module_path)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/mysite/mysite/wsgi.py", line 16, in
application = get_wsgi_application()
File "/ve/local/lib/python2.7/site-packages/django/core/wsgi.py", line 14, in get_wsgi_application
return WSGIHandler()
File "/ve/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 153, in init
self.load_middleware()
File "/ve/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 82, in load_middleware
mw_instance = middleware(handler)
TypeError: object() takes no parameters
from django-prometheus.
TypeError: object() takes no parameters
It seems to be a compatibility issue. I am working on it and will make a pull request if I make it.
from django-prometheus.
It was easier than expected: just adding the MiddlewareMixin seems to work.
I made a pull request but as you can see the patch is easy.
#30
from django-prometheus.
But making it to work on old Djangos seems not to be so straighforward. I will look into it but do not know how easy will be.
from django-prometheus.
This should all be fixed thanks to #30 and #38. Thanks for the report and contributions everyone!
from django-prometheus.
Related Issues (20)
- When I install django_prometheus the tests are failing
- Celery Worker Questions HOT 1
- Histogram of requests processing time does not honor PROMETHEUS_LATENCY_BUCKETS
- Supporting Django 4.1 HOT 2
- Cannot see exemplars in the metrics
- It prevents application from resolving DB URL HOT 2
- Custom metric does not work HOT 4
- Wrong Metrics being published
- 'Counter' object has no attribute '_value' HOT 2
- Support for Django 4.2 and Psycopg3 HOT 5
- django_migrations_unapplied_total = 1 but no migrations are unapplied HOT 2
- RedisCache not working
- Exclude metrics by view (or other criteria) HOT 2
- Move to psycopg3 HOT 1
- Custom namespace HOT 1
- RAM keeps going up when scraping metrics
- Unable to monitor a database | django_prometheus.db.backends is not an available backend HOT 2
- PrometheusEndpointServer throws an exception, after which the endpoint is not available and not restart
- django_http_requests_before_middlewares_total,Shouldn't this indicator be a line that keeps rising? HOT 3
- django_http_requests_latency_seconds_by_view_method_bucket wrong calculation
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 django-prometheus.