*: add additional prometheus metrics, remove unusable high entropy metrics

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2023-02-19 17:08:40 +01:00
parent 069e9c015b
commit 0874574e5c
6 changed files with 43 additions and 22 deletions

View File

@ -59,7 +59,7 @@ func (ws *WebServer) configureProxy() {
}
}
Requests.With(prometheus.Labels{
"dest": "py",
"dest": "core",
}).Observe(float64(time.Since(before)))
r.Body = http.MaxBytesReader(rw, r.Body, 32*1024*1024)
rp.ServeHTTP(rw, r)