1
0
mirror of https://github.com/rclone/rclone.git synced 2025-01-24 12:56:36 +02:00
Michał Matczuk 38dc3e93ee fshttp: add prometheus metrics for HTTP status code
This patch adds rclone_http_status_code counter vector labeled by

* host,
* method,
* code.

It allows to see HTTP errors, backoffs etc.

The Metrics struct is designed for extensibility.
Adding new metrics is a matter of adding them to Metrics struct and including them in the response handling.

This feature has been discussed in the forum [1].

[1] https://forum.rclone.org/t/prometheus-metrics/14484
2021-11-17 18:38:12 +03:00
..
2020-10-14 15:21:31 +01:00
2021-10-20 22:56:19 +02:00
2018-08-21 10:58:59 +01:00
2021-06-14 14:42:49 +03:00
2021-06-14 14:42:49 +03:00
2021-06-14 14:42:49 +03:00
2021-11-01 16:54:17 +00:00