From 53297853a6a8d10b926d2664e5c3b168aabf8769 Mon Sep 17 00:00:00 2001 From: Leo Balduf Date: Tue, 6 Jun 2017 19:54:02 +0200 Subject: [PATCH] dist/prometheus: add rules for the storage --- dist/prometheus/chihaya.rules | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dist/prometheus/chihaya.rules b/dist/prometheus/chihaya.rules index 36f7bac..15dbb67 100644 --- a/dist/prometheus/chihaya.rules +++ b/dist/prometheus/chihaya.rules @@ -10,6 +10,15 @@ # They usually at least have the protocol, job, instance, and address_family fields. # Look at the chihaya:announce:rate1m rule for an example. +################################# +# Storage + +# Total peers +chihaya:storage:peers:total = chihaya_storage_leechers_count + chihaya_storage_seeders_count + +# Storage GC duration +chihaya:storage:gc:duration:rate1m = drop_common_labels(rate(chihaya_storage_gc_duration_milliseconds_sum[1m]) / rate(chihaya_storage_gc_duration_milliseconds_count[1m])) + ################################# # Request/error rates