We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97d5748 commit b4a9baeCopy full SHA for b4a9bae
django_prometheus/exports.py
@@ -115,8 +115,10 @@ def ExportToDjangoView(request):
115
116
You can use django_prometheus.urls to map /metrics to this view.
117
"""
118
- if ("PROMETHEUS_MULTIPROC_DIR" in os.environ
119
- or "prometheus_multiproc_dir" in os.environ):
+ if (
+ "PROMETHEUS_MULTIPROC_DIR" in os.environ
120
+ or "prometheus_multiproc_dir" in os.environ
121
+ ):
122
registry = prometheus_client.CollectorRegistry()
123
multiprocess.MultiProcessCollector(registry)
124
else:
0 commit comments