mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-10 23:57:34 +02:00
HTTP metrics improvements
- Switch to ochttp plugin - Add HTTP request metrics - Relabel for consistency
This commit is contained in:
parent
8e4a54c6ca
commit
e635c9bb3b
8 changed files with 139 additions and 129 deletions
|
@ -200,7 +200,7 @@ func (p *Proxy) UpdatePolicies(opts *config.Options) error {
|
|||
// https://github.com/golang/go/issues/26013#issuecomment-399481302
|
||||
transport := *(http.DefaultTransport.(*http.Transport))
|
||||
c := tripper.NewChain()
|
||||
c = c.Append(metrics.HTTPMetricsRoundTripper("proxy"))
|
||||
c = c.Append(metrics.HTTPMetricsRoundTripper("proxy", policy.Destination.Host))
|
||||
if policy.TLSSkipVerify {
|
||||
transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue