diff --git a/django_prometheus/exports.py b/django_prometheus/exports.py index 91c8dfe7..8630400d 100644 --- a/django_prometheus/exports.py +++ b/django_prometheus/exports.py @@ -117,7 +117,7 @@ def ExportToDjangoView(request): You can use django_prometheus.urls to map /metrics to this view. """ if "prometheus_multiproc_dir" in os.environ: - registry = prometheus_client.CollectorRegistry() + registry = prometheus_client.REGISTRY multiprocess.MultiProcessCollector(registry) else: registry = prometheus_client.REGISTRY