rclone/fs/rc/rcserver
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
..
testdata http: improved directory listing with new template from Caddy project 2020-05-08 16:15:21 +01:00
rcserver_test.go config: delay load config file (#5258) 2021-04-26 23:37:49 +02:00
rcserver.go fshttp: add prometheus metrics for HTTP status code 2021-11-17 18:38:12 +03:00