retrace: Add /metrics endpoint

Update httpd config to reflect the upstream addition of the /metrics
endpoint for Prometheus stats.
This commit is contained in:
Matěj Grabovský 2021-09-06 09:53:25 +02:00 committed by kevin
parent 22e1e090d4
commit b00a8bc10b

View file

@ -7,6 +7,7 @@ WSGIScriptAliasMatch ^/manager(/.*)?$ /usr/share/retrace-server/manager.wsgi
WSGIScriptAliasMatch ^/ftp(/.*)?$ /usr/share/retrace-server/ftp.wsgi
WSGIScriptAliasMatch ^/settings$ /usr/share/retrace-server/settings.wsgi
WSGIScriptAliasMatch ^/create$ /usr/share/retrace-server/create.wsgi
WSGIScriptAliasMatch ^/metrics$ /usr/share/retrace-server/metrics.wsgi
WSGIScriptAliasMatch ^/stats$ /usr/share/retrace-server/stats.wsgi
WSGIScriptAliasMatch ^/checkpackage$ /usr/share/retrace-server/checkpackage.wsgi
WSGIScriptAliasMatch ^/[0-9]+/?$ /usr/share/retrace-server/status.wsgi
@ -31,7 +32,7 @@ WSGIScriptAliasMatch ^/$ /usr/share/retrace-server/index.wsgi
</IfModule>
</Directory>
<LocationMatch "^/(manager(/.*)?|ftp|settings|create|stats|checkpackage|[0-9]+(/(log|backtrace|delete|exploitable))?)?$">
<LocationMatch "^/(manager(/.*)?|ftp|settings|create|metrics|stats|checkpackage|[0-9]+(/(log|backtrace|delete|exploitable))?)?$">
WSGIProcessGroup retrace
WSGIApplicationGroup %{GLOBAL}
Options -Indexes -FollowSymLinks