Skip to content

Commit 2b2e840

Browse files
committed
Fixed UWSGIFlushStorage
1 parent 75a0934 commit 2b2e840

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyprometheus/contrib/uwsgi_features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ class UWSGIFlushStorage(LocalMemoryStorage):
562562
"""
563563
SHAREDAREA_ID = int(os.environ.get("PROMETHEUS_UWSGI_SHAREDAREA", 0))
564564

565-
def __init__(self, sharedarea_id=UWSGIStorage.SHAREDAREA_ID):
566-
self._uwsgi_storage = UWSGIStorage(sharedarea_id)
565+
def __init__(self, sharedarea_id=UWSGIStorage.SHAREDAREA_ID, namespace="", stats=False, labels={}):
566+
self._uwsgi_storage = UWSGIStorage(sharedarea_id, namespace=namespace, stats=stats, labels=labels)
567567
self._flush = 0
568568
self._get_items = 0
569569
self._clear = 0

0 commit comments

Comments
 (0)