core: add more prometheus metrics

This commit is contained in:
Jens Langhammer
2020-01-19 21:01:26 +01:00
parent fc4a46bd9c
commit d9ecb7070d
2 changed files with 11 additions and 10 deletions

View File

@ -19,7 +19,7 @@ class MetricsView(View):
if auth_type != "Basic" or given_credentials != expected:
response = HttpResponse(status=401)
response['WWW-Authenticate'] = 'Basic realm="passbook-monitoring"'
response["WWW-Authenticate"] = 'Basic realm="passbook-monitoring"'
return response
return ExportToDjangoView(request)