Elukey has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/334344 )
Change subject: Create a prometheus rule to calculate Memcached get hit ratio
......................................................................
Create a prometheus rule to calculate Memcached get hit ratio
Change-Id: I521b0b1dde74de4b1b4b7f436157b9c09309b837
---
M modules/role/files/prometheus/rules_ops.conf
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/44/334344/1
diff --git a/modules/role/files/prometheus/rules_ops.conf
b/modules/role/files/prometheus/rules_ops.conf
index 1fb2b9f..2eec795 100644
--- a/modules/role/files/prometheus/rules_ops.conf
+++ b/modules/role/files/prometheus/rules_ops.conf
@@ -148,3 +148,4 @@
none:memcached_written_bytes_total:rate5m =
sum(rate(memcached_written_bytes_total[5m]))
instance_slab:memcached_slab_current_items:sum = sum by (instance, slab)
(memcached_slab_current_items)
instance_slab:memcached_slab_current_chunks:sum = sum by (instance, slab)
(memcached_slab_current_chunks)
+none:memcached_get_hit_ratio =
memcached_commands_total{command="get",status="hit"} / ignoring(status)
(memcached_commands_total{command="get",status="hit"} + ignoring(status)
memcached_commands_total{command="get",status="miss"})
--
To view, visit https://gerrit.wikimedia.org/r/334344
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I521b0b1dde74de4b1b4b7f436157b9c09309b837
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Elukey <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits