Browse Source

Break down cache expiry reasons in grafana (#10880)

A follow-up to #10829
David Robertson 2 years ago
parent
commit
a10988983a
2 changed files with 3 additions and 2 deletions
  1. 1 0
      changelog.d/10880.misc
  2. 2 2
      contrib/grafana/synapse.json

+ 1 - 0
changelog.d/10880.misc

@@ -0,0 +1 @@
+Break down Grafana's cache expiry time series based on reason for eviction---see #10829.

+ 2 - 2
contrib/grafana/synapse.json

@@ -6785,7 +6785,7 @@
               "expr": "rate(synapse_util_caches_cache:evicted_size{instance=\"$instance\",job=~\"$job\",index=~\"$index\"}[$bucket_size])",
               "format": "time_series",
               "intervalFactor": 1,
-              "legendFormat": "{{name}} {{job}}-{{index}}",
+              "legendFormat": "{{name}} ({{reason}}) {{job}}-{{index}}",
               "refId": "A"
             }
           ],
@@ -10888,5 +10888,5 @@
   "timezone": "",
   "title": "Synapse",
   "uid": "000000012",
-  "version": 99
+  "version": 100
 }