middleware/proxy: absorb httpproxy (#481)
* middleware/proxy: absorb httpproxy Move the httproxy into proxy. This adds and Exchanger interface which is used to exchange the messages with the upstream. The https_google upstream will re-resolve itself and update the upstream hosts used every 300s. * Remove and add TODO
This commit is contained in:
parent
77f957d443
commit
123a76c91e
21 changed files with 466 additions and 827 deletions
|
@ -16,11 +16,11 @@ var (
|
|||
Name: "request_duration_milliseconds",
|
||||
Buckets: append(prometheus.DefBuckets, []float64{50, 100, 200, 500, 1000, 2000, 3000, 4000, 5000, 10000}...),
|
||||
Help: "Histogram of the time (in milliseconds) each request took.",
|
||||
}, []string{"zone"})
|
||||
}, []string{"proto", "from"})
|
||||
)
|
||||
|
||||
// OnStartup sets up the metrics on startup. This is done for all proxy protocols.
|
||||
func OnStartup() error {
|
||||
// OnStartupMetrics sets up the metrics on startup. This is done for all proxy protocols.
|
||||
func OnStartupMetrics() error {
|
||||
metricsOnce.Do(func() {
|
||||
prometheus.MustRegister(RequestDuration)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue