Skip to content
Snippets Groups Projects
Verified Commit 0739adbe authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

aurweb: enable prometheus metrics

parent 58d2705a
No related branches found
No related tags found
No related merge requests found
Pipeline #16060 passed
...@@ -4,6 +4,7 @@ aurweb_asgi_bind: '127.0.0.1:8000' ...@@ -4,6 +4,7 @@ aurweb_asgi_bind: '127.0.0.1:8000'
aurweb_domain: 'aur.archlinux.org' aurweb_domain: 'aur.archlinux.org'
aurweb_repository: 'https://gitlab.archlinux.org/archlinux/aurweb.git' aurweb_repository: 'https://gitlab.archlinux.org/archlinux/aurweb.git'
aurweb_dir: '/srv/http/aurweb' aurweb_dir: '/srv/http/aurweb'
aurweb_prom_dir: 'aurweb-prom'
aurweb_conf_dir: '/etc/aurweb' aurweb_conf_dir: '/etc/aurweb'
aurweb_git_dir: "{{ aurweb_dir }}/aur.git" aurweb_git_dir: "{{ aurweb_dir }}/aur.git"
aurweb_git_hook: '/usr/local/bin/aurweb-git-update' aurweb_git_hook: '/usr/local/bin/aurweb-git-update'
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
Description=aurweb asgi server Description=aurweb asgi server
[Service] [Service]
RuntimeDirectory={{ aurweb_prom_dir }}
Environment=PROMETHEUS_MULTIPROC_DIR=/run/{{ aurweb_prom_dir }}
User={{ aurweb_user }} User={{ aurweb_user }}
WorkingDirectory={{ aurweb_dir }} WorkingDirectory={{ aurweb_dir }}
ExecStart=/usr/bin/poetry run gunicorn \ ExecStart=/usr/bin/poetry run gunicorn \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment