oauth2-proxy/pkg/apis/options
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
..
util Ensure errors in tests are logged to the GinkgoWriter 2021-02-10 19:50:04 +00:00
alpha_options.go Add convert-config-to-alpha flag to convert existing configuration to alpha structure 2020-12-01 08:56:51 +00:00
app.go Allow users to choose detailed error messages on error pages 2021-02-12 21:12:28 +00:00
common.go Generate reference page in configuration 2021-01-18 09:57:44 +00:00
common_test.go Introduce Duration so that marshalling works for duration strings 2020-11-19 10:35:29 +00:00
cookie.go Rename CookieOptions to Cookie 2020-07-05 09:18:21 +01:00
doc.go Generate reference page in configuration 2021-01-18 09:57:44 +00:00
header.go Add AlphaOptions struct and ensure that all children have valid JSON tags 2020-11-19 10:35:31 +00:00
legacy_options.go Introduce alpha configuration loading 2020-12-01 08:56:49 +00:00
legacy_options_test.go SecretSource.Value should be plain text in memory 2020-12-01 08:56:46 +00:00
load.go Introduce alpha configuration loading 2020-12-01 08:56:49 +00:00
load_test.go Introduce alpha configuration loading 2020-12-01 08:56:49 +00:00
logging.go Fix import path for v7 (#800) 2020-09-29 17:44:42 +01:00
options.go Add Prometheus metrics endpoint 2021-02-15 13:45:26 +00:00
options_suite_test.go Ensure errors in tests are logged to the GinkgoWriter 2021-02-10 19:50:04 +00:00
sessions.go Support Password & SentinelPassword in Redis session store 2020-08-11 12:22:05 -07:00
upstreams.go Add DefaultUpstreamFlushInterval to replace magic time.Second value 2020-11-19 10:39:21 +00:00