1
mirror of https://github.com/rclone/rclone synced 2024-12-19 09:05:56 +01:00
rclone/fs/rc
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
..
jobs Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
js Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
rcflags docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
rcserver fshttp: add prometheus metrics for HTTP status code 2021-11-17 18:38:12 +03:00
webgui Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
cache_test.go rc: allow fs= params to be a JSON blob 2021-03-30 17:07:27 +01:00
cache.go rc: allow fs= params to be a JSON blob 2021-03-30 17:07:27 +01:00
config_test.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
config.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
internal_test.go rc: fix core/command giving 500 internal error - fixes #4914 2021-01-10 16:34:46 +00:00
internal.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
params_test.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
params.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
rc_test.go fs/rc: add more infrastructure to help writing rc functions 2018-11-02 17:32:20 +00:00
rc.go rcd: Add Prometheus metrics support - fixes #3858 2020-03-01 09:58:34 +00:00
registry.go config: fixed issues with flags/options set by environment vars. 2021-07-05 16:38:20 +01:00