Gergő Tisza has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/179778

Change subject: Calculate image cache miss ratio
......................................................................

Calculate image cache miss ratio

Bug: T78205
Change-Id: I185362ab836f39616f59625cb8b07162bce06f3e
---
M dashboards/mmv.json
A datasources/mmv_cache_miss_ratio.json
A graphs/mmv_cache_miss_ratio.json
3 files changed, 102 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/analytics/multimedia/config 
refs/changes/78/179778/1

diff --git a/dashboards/mmv.json b/dashboards/mmv.json
index 6fe0374..b06321d 100644
--- a/dashboards/mmv.json
+++ b/dashboards/mmv.json
@@ -25,7 +25,8 @@
                                "mmv_performance_thumbnailinfo_global",
                                "mmv_performance_filerepoinfo_global",
                                "mmv_performance_imageusage_global",
-                               "mmv_performance_globalusage_global"
+                               "mmv_performance_globalusage_global",
+                               "mmv_cache_miss_ratio"
                        ]
                },
                {
diff --git a/datasources/mmv_cache_miss_ratio.json 
b/datasources/mmv_cache_miss_ratio.json
new file mode 100644
index 0000000..1e276e2
--- /dev/null
+++ b/datasources/mmv_cache_miss_ratio.json
@@ -0,0 +1,26 @@
+{
+    "id": "mmv_cache_miss_ratio",
+    "slug": "mmv_cache_miss_ratio",
+    "format": "tsv",
+    "type": "timeseries",
+    "url": 
"http://stat1001.wikimedia.org/public-datasets/all/multimedia/media-viewer-cache-miss-ratio.tsv";,
+    "name": "Cache miss ratio",
+    "shortName": "mmv_cache_miss_ratio",
+    "columns": [
+        {
+            "id": "datestring",
+            "label": "datestring",
+            "type": "Date"
+        },
+        {
+            "id": "miss_ratio",
+            "label": "Cache miss ratio",
+            "type": "Number"
+        },
+        {
+            "id": "total",
+            "label": "Total request count",
+            "type": "Number"
+        }
+    ]
+}
\ No newline at end of file
diff --git a/graphs/mmv_cache_miss_ratio.json b/graphs/mmv_cache_miss_ratio.json
new file mode 100644
index 0000000..0d41d8f
--- /dev/null
+++ b/graphs/mmv_cache_miss_ratio.json
@@ -0,0 +1,74 @@
+{
+    "graph_version": "0.6.0",
+    "id": "mmv_cache_miss_ratio",
+    "desc": "Cache miss ratio for thumbnails. Cache hits are served by 
Varnish; cache misses have to be retrieved from Swift and possibly rendered on 
the fly.",
+    "name": "Cache miss ratio",
+    "slug": "mmv_cache_miss_ratio",
+    "root": {
+        "nodeType": "canvas",
+        "width": "auto",
+        "height": 500,
+        "children": [
+            {
+                "nodeType": "zoom-brush"
+            },
+            {
+                "nodeType": "axis",
+                "options": {
+                    "orient": "bottom",
+                    "dimension": "x"
+                }
+            },
+            {
+                "nodeType": "axis",
+                "options": {
+                    "orient": "left",
+                    "dimension": "y"
+                }
+            },
+            {
+                "nodeType": "grid",
+                "options": {"dimension": "x"}
+            },
+            {
+                "nodeType": "grid",
+                "options": {"dimension": "y"}
+            },
+            {
+                "nodeType": "legend",
+                "options": {
+                    "label" : "Legend",
+                    "dateFormat" : "DD MMM YYYY"
+                }
+            },
+            {
+                "nodeType": "line-group",
+                "children": [
+                    {
+                        "nodeType": "line",
+                        "metric": {
+                            "source_id": "mmv_cache_miss_ratio",
+                            "source_col": "miss_ratio",
+                            "type": "Number"
+                        },
+                        "options": {
+                            "label": "cache miss ratio"
+                        }
+                    },
+                    {
+                        "nodeType": "line",
+                        "metric": {
+                            "source_id": "mmv_cache_miss_ratio",
+                            "source_col": "total",
+                            "type": "Number"
+                        },
+                        "options": {
+                            "label": "total request count",
+                            "disabled": true
+                        }
+                    }
+                ]
+            }
+        ]
+    }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/179778
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I185362ab836f39616f59625cb8b07162bce06f3e
Gerrit-PatchSet: 1
Gerrit-Project: analytics/multimedia/config
Gerrit-Branch: master
Gerrit-Owner: GergÅ‘ Tisza <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to