pomerium/internal/telemetry/metrics
Joe Kralicky 927f24e1ff
Envoy resource monitoring & overload manager configuration (#5106)
* Initial envoy cgroup resource monitor implementation

* Add cgroupv1 support; add metrics instrumentation

* Slight refactor for more efficient memory limit detection

Instead of reading memory.max/limit_in_bytes on every tick, we
read it once, then again only when it is modified.

To support this change, logic for computing the saturation was moved out
of the cgroup driver and into the resource monitor, and the driver
interface now has separate methods for reading memory usage and limit.

* Code cleanup/lint fixes

* Add platform build tags

* Add unit tests

* Fix lint issues

* Add runtime flag to allow disabling resource monitor

* Clamp saturation values to the range [0.0, 1.0]

* Switch to x/sys/unix; handle inotify IN_IGNORED events
2024-05-28 16:57:09 -04:00
..
autocert.go autocert: add metrics for renewal count, total and next expiration (#2019) 2021-03-25 08:03:04 -06:00
const.go Envoy resource monitoring & overload manager configuration (#5106) 2024-05-28 16:57:09 -04:00
doc.go *: remove import path comments (#545) 2020-03-16 10:13:47 -07:00
envoy.go Envoy resource monitoring & overload manager configuration (#5106) 2024-05-28 16:57:09 -04:00
grpc.go core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -06:00
grpc_test.go config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
helpers_test.go core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -06:00
http.go config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
http_test.go core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -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 core/lint: upgrade golangci-lint, replace interface{} with any (#5099) 2024-05-02 14:33:52 -06: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