Skip to content

Commit

Permalink
Merge pull request #102 from tyler-8/metrics_cfg_fix
Browse files Browse the repository at this point in the history
Remove kwarg for newer versions of prometheus client
  • Loading branch information
lae authored Jun 22, 2020
2 parents 4698b9e + 5ea12be commit 09df22a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/configuration.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ if "prometheus_multiproc_dir" in os.environ:
import prometheus_client
import uwsgi
prometheus_client.values.ValueClass = prometheus_client.values.MultiProcessValue(
_pidFunc=uwsgi.worker_id)
uwsgi.worker_id
)
except ImportError:
pass # not running in uwsgi
{% endif %}
Expand Down

0 comments on commit 09df22a

Please sign in to comment.