1
mirror of https://github.com/rclone/rclone synced 2024-12-24 15:43:45 +01:00
rclone/fs/fshttp
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
..
dialer.go fs/http: declutter code #5596 2021-10-21 14:18:23 +03:00
http_test.go lib/structs: factor reflection based structure manipulation into a library 2020-06-10 12:28:48 +01:00
http.go fshttp: add prometheus metrics for HTTP status code 2021-11-17 18:38:12 +03:00
prometheus.go fshttp: add prometheus metrics for HTTP status code 2021-11-17 18:38:12 +03:00