-
Notifications
You must be signed in to change notification settings - Fork 208
Description
We currently have (on Sozu 1.0.5) two "kind" of metrics on http status codes:
http.301.redirection,http.400.errors,http.401.errorsand alikehttp.status.1xx,http.status.2xxand alike
The first category is only incremented for automatic responses generated by Sozu. The second is incremented for every response, generated or forwarded from a backend. This explains why the former uses explicit error numbers and the latter, aggregated ones.
The naming is not really explicit, so may we change it? Maybe http.generated.301 and http.total.1xx?
Additionally, independently of their origin, some of those metrics are stored:
- per backend, like
http.502.errorsandhttp.status.2xx - per cluster, like
http.503.errorsandhttp.status.5xx - per worker, like
http.400.errorsandhttp.status.3xx
We can't store all of them with "backend precision", as some errors are generated prior to this knowledge (400 are typically generated before the cluster is known). Should we aggregate the "more precise" status codes on clusters and workers? To have quick access to how many 2xx responses were served for example (currently we have to look into each backend). Should it be done with more metrics directly? or with an option of the metrics get command? If we choose the former should they be named differently? If the latter, should we specify the exact name of the metric to aggregate, a pattern, or does it aggregate all metrics that can be aggregated?