Merge pull request #333 from mrd0ll4r/prom-rules
dist/prometheus: add rules for the storage
This commit is contained in:
commit
6663c09391
1 changed files with 9 additions and 0 deletions
9
dist/prometheus/chihaya.rules
vendored
9
dist/prometheus/chihaya.rules
vendored
|
@ -10,6 +10,15 @@
|
||||||
# They usually at least have the protocol, job, instance, and address_family fields.
|
# They usually at least have the protocol, job, instance, and address_family fields.
|
||||||
# Look at the chihaya:announce:rate1m rule for an example.
|
# 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
|
# Request/error rates
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue