Merge ~superalpaca/ols-charm-deps:SN1460-add-prometheus-multiproc-dir-config into ols-charm-deps:master
Proposed by
Deep Fowdar
Status: | Merged |
---|---|
Approved by: | Deep Fowdar |
Approved revision: | 4b199e036fe1bb7813b6ed1535122953dc1e3157 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~superalpaca/ols-charm-deps:SN1460-add-prometheus-multiproc-dir-config |
Merge into: | ols-charm-deps:master |
Diff against target: |
65 lines (+35/-0) 3 files modified
layer/ols-wsgi/config.yaml (+10/-0) layer/ols-wsgi/lib/ols/gunicorn.py (+7/-0) layer/ols-wsgi/templates/config.tmpl (+18/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guillermo Gonzalez | Approve | ||
Przemysław Suliga | Approve | ||
Review via email:
|
Commit message
Add prometheus multi-process support.
The PROMETHEUS_
option 'wsgi_prometheu
Part of: SN-1460
Description of the change
Follows on from the approach suggested by Przemek in https:/
Ticket: https:/
I've tested this change with the snapmodels charm, and it seems to work fine.
snapmodels MP: https:/
To post a comment you must log in.
Nice, thanks!
Just skimmed it but it looks good.
Thoughts on a boolean wsgi_prometheus _multiproc setting instead (off by default)?:
- on_starting() run in the arbiter could then simply always [re]create the dir if the setting is on (and add its PID in the name).
- The users of the layer probably don't care about the actual dir.
- It'd basically be an option that "handles proper prometheus client setup for multiproc".
Exposing wsgi_prometheus _multiproc_ dir would need to be explained more, eg. "It will get wiped on restarts".