pomerium/internal/telemetry/metrics
Kenneth Jenkins a246466a87
metrics: explicitly set Accept header (#4774)
If a request is made to the Pomerium metrics endpoint with an Accept
header requesting the Prometheus protobuf exposition format, some
metrics will be missing from the response.

These missing metrics are obtained by replaying the incoming request to 
an OpenCensus metrics exporter. This exporter honors the request for the
protobuf format, however Pomerium expects this response to be in the 
text format.

We can avoid this mismatch by explicitly requesting the text format from
the OpenCensus exporter, regardless of the incoming request's Accept
header.

(Note: the Pomerium metrics endpoint always responds with text format 
metrics, even if the protobuf format is requested.)
2023-11-30 16:14:24 -08:00
..
autocert.go autocert: add metrics for renewal count, total and next expiration (#2019) 2021-03-25 08:03:04 -06:00
const.go Fix IdP client metrics (#2810) 2021-12-08 13:22:53 -05:00
doc.go *: remove import path comments (#545) 2020-03-16 10:13:47 -07:00
grpc.go log context (#2107) 2021-04-22 10:58:13 -04:00
grpc_test.go config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
helpers_test.go use build_info as liveness gauge metric (#1940) 2021-02-24 10:57:31 -05:00
http.go config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
http_test.go config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
info.go eliminate global events manager (#3422) 2022-06-14 15:05:16 -04:00
info_test.go config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
processes.go fix(deps): update module github.com/prometheus/procfs to v0.6.0 (#1969) 2021-03-16 22:03:01 -04:00
processes_test.go config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
providers.go metrics: explicitly set Accept header (#4774) 2023-11-30 16:14:24 -08:00
providers_test.go metrics: explicitly set Accept header (#4774) 2023-11-30 16:14:24 -08:00
registry.go core/redis: remove redis (#4768) 2023-11-28 13:14:36 -07:00
storage.go log context (#2107) 2021-04-22 10:58:13 -04:00
storage_test.go dev: update linter (#1728) 2020-12-30 09:02:57 -08:00