oauth2-proxy/pkg/apis
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
..
ip Move RealClientIP code to IP packages 2020-05-23 15:17:41 +01:00
middleware Ensure errors in tests are logged to the GinkgoWriter 2021-02-10 19:50:04 +00:00
options Add Prometheus metrics endpoint 2021-02-15 13:45:26 +00:00
sessions Remove v5 JSON session support 2020-11-08 08:52:55 -08:00