sozu-proxy / sozu

Sōzu HTTP reverse proxy, configurable at runtime, fast and safe, built in Rust. It is awesome!
https://www.sozu.io/
GNU Affero General Public License v3.0
3.12k stars 194 forks source link

Fix fetching of cluster metrics #1010

Closed Keksoj closed 1 year ago

Keksoj commented 1 year ago

cluster metrics are disabled by default, which is cumbersome. This PR introduces a configurable enable_cluster_metrics that is true by default.

On top of that, since introduction of Kawa, Sōzu would not register 4xx and 5xx HTTP statuses in worker and cluster metrics. For instance, Sōzu would respond with a default 404 but would NOT register this event in metrics. This is fixed here.