oauth2-proxy/pkg
Sean Jones a7c8a233ba
Add Prometheus metrics endpoint
Add the Prometheus http.Handler to serve metrics at MetricsPath ("/metrics"
by default). This allows Prometheus to scrape metrics from OAuth2 Proxy.

Add a new middleware NewRequestMetrics and attach it to the preAuth
chain. This will collect metrics on all requests made to OAuth2 Proxy

Collapse some calls to Prinf() and os.Exit(1) to Fatalf as they are
equivalent. main() has a strict 50 lines limit so brevity in these
calls appreciated
2021-02-15 13:45:26 +00:00
..
apis Add Prometheus metrics endpoint 2021-02-15 13:45:26 +00:00
app/pagewriter Move all pagewriter related code to dedicated pagewriter package 2021-02-14 10:21:13 +00:00
authentication/basic Ensure errors in tests are logged to the GinkgoWriter 2021-02-10 19:50:04 +00:00
cookies Refactor organization of scope aware request utils 2021-01-16 13:55:48 -08:00
encryption Stop accepting legacy SHA1 signed cookies 2020-09-24 10:31:34 -07:00
header Ensure errors in tests are logged to the GinkgoWriter 2021-02-10 19:50:04 +00:00
ip Fix import path for v7 (#800) 2020-09-29 17:44:42 +01:00
logger Refactor organization of scope aware request utils 2021-01-16 13:55:48 -08:00
middleware Add Prometheus metrics endpoint 2021-02-15 13:45:26 +00:00
requests Ensure errors in tests are logged to the GinkgoWriter 2021-02-10 19:50:04 +00:00
sessions Ensure errors in tests are logged to the GinkgoWriter 2021-02-10 19:50:04 +00:00
upstream Use ErrorPage to render proxy error page 2021-02-12 21:12:27 +00:00
util Refactor organization of scope aware request utils 2021-01-16 13:55:48 -08:00
validation Ensure errors in tests are logged to the GinkgoWriter 2021-02-10 19:50:04 +00:00