Detailed prometheus metrics


Prometheus metrics share status codes per group, e.g. 2xx, 3xx, 1xx, 4xx and 5xx. Is there any way to get detailed status codes? e.g. 200, 404, 503, etc.

Other than extracting metrics from logs, is there any other way to achieve this using prometheus?

Unfortunately, the Prometheus exporter cannot export metrics for all status code because the info is not stored per-status in HAProxy. The only way is indeed to extract it from the logs.

I did that using mtail. Thank you very much!