Skip to content

Commit 09df22a

Browse files
authored
Merge pull request #102 from tyler-8/metrics_cfg_fix
Remove kwarg for newer versions of prometheus client
2 parents 4698b9e + 5ea12be commit 09df22a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/configuration.py.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ if "prometheus_multiproc_dir" in os.environ:
88
import prometheus_client
99
import uwsgi
1010
prometheus_client.values.ValueClass = prometheus_client.values.MultiProcessValue(
11-
_pidFunc=uwsgi.worker_id)
11+
uwsgi.worker_id
12+
)
1213
except ImportError:
1314
pass # not running in uwsgi
1415
{% endif %}

0 commit comments

Comments
 (0)