Gergő Tisza has uploaded a new change for review. https://gerrit.wikimedia.org/r/148024
Change subject: Track loading time for MediaViewer and the file page ...................................................................... Track loading time for MediaViewer and the file page Change-Id: If51577fe346726e8d70bddcfdc49c1a8ee93788d --- M dashboards/mmv.json M dashboards/mmv_template.json A datasources/mmv_duration_template.json M generate.php A graphs/mmv_duration_template.json 5 files changed, 355 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/analytics/multimedia/config refs/changes/24/148024/1 diff --git a/dashboards/mmv.json b/dashboards/mmv.json index e060c77..4c563aa 100644 --- a/dashboards/mmv.json +++ b/dashboards/mmv.json @@ -43,6 +43,12 @@ "mmv_opt_inout_global", "mmv_opt_out_per_wiki" ] + }, + { + "name": "Loading time", + "graph_ids": [ + "mmv_duration_global", + ] } ] } diff --git a/dashboards/mmv_template.json b/dashboards/mmv_template.json index 16b5514..76bf586 100644 --- a/dashboards/mmv_template.json +++ b/dashboards/mmv_template.json @@ -35,6 +35,12 @@ "graph_ids": [ "mmv_opt_inout_%wiki%" ] + }, + { + "name": "Loading time", + "graph_ids": [ + "mmv_duration_%wiki%", + ] } ] } diff --git a/datasources/mmv_duration_template.json b/datasources/mmv_duration_template.json new file mode 100644 index 0000000..8873c35 --- /dev/null +++ b/datasources/mmv_duration_template.json @@ -0,0 +1,91 @@ +{ + "id": "mmv_duration_%wiki%", + "slug": "mmv_duration_%wiki%", + "format": "tsv", + "type": "timeseries", + "url": "http://stat1001.wikimedia.org/public-datasets/all/multimedia/media-viewer-duration-%wiki%.tsv", + "name": "Actions: %wiki%", + "shortName": "mmv_duration_%wiki%", + "columns": [ + { + "id": "datestring", + "label": "datestring", + "type": "Date" + }, + { + "id": "loadEventEnd_loggedin_50", + "label": "Logged-in file page load time (median)", + "type": "Number" + }, + { + "id": "loadEventEnd_loggedin_90", + "label": "Logged-in file page load time (90th percentile)", + "type": "Number" + }, + { + "id": "loadEventEnd_loggedin_95", + "label": "Logged-in file page load time (95th percentile)", + "type": "Number" + }, + { + "id": "loadEventEnd_loggedin_99", + "label": "Logged-in file page load time (99th percentile)", + "type": "Number" + }, + { + "id": "loadEventEnd_loggedin_sample_size", + "label": "Logged-in sample size", + "type": "Number" + }, + { + "id": "loadEventEnd_anon_50", + "label": "Anonymous file page load time (median)", + "type": "Number" + }, + { + "id": "loadEventEnd_anon_90", + "label": "Anonymous file page load time (90th percentile)", + "type": "Number" + }, + { + "id": "loadEventEnd_anon_95", + "label": "Anonymous file page load time (95th percentile)", + "type": "Number" + }, + { + "id": "loadEventEnd_anon_99", + "label": "Anonymous file page load time (99th percentile)", + "type": "Number" + }, + { + "id": "loadEventEnd_anon_sample_size", + "label": "Anonymous sample size", + "type": "Number" + }, + { + "id": "duration_50", + "label": "Media Viewer load time (median)", + "type": "Number" + }, + { + "id": "duration_90", + "label": "Media Viewer load time (90th percentile)", + "type": "Number" + }, + { + "id": "duration_95", + "label": "Media Viewer load time (95th percentile)", + "type": "Number" + }, + { + "id": "duration_99", + "label": "Media Viewer load time (99th percentile)", + "type": "Number" + }, + { + "id": "duration_sample_size", + "label": "Media Viewer sample size", + "type": "Number" + } + ] +} \ No newline at end of file diff --git a/generate.php b/generate.php index 404f169..d10729b 100644 --- a/generate.php +++ b/generate.php @@ -56,6 +56,8 @@ './datasources/mmv_actions' => null, './graphs/mmv_actions' => null, './graphs/mmv_opt_inout' => null, + './datasources/mmv_duration' => null, + './graphs/mmv_duration' => null, ); function generate( $wiki, $templates ) { diff --git a/graphs/mmv_duration_template.json b/graphs/mmv_duration_template.json new file mode 100644 index 0000000..980bb54 --- /dev/null +++ b/graphs/mmv_duration_template.json @@ -0,0 +1,250 @@ +{ + "graph_version": "0.6.0", + "id": "mmv_duration_%wiki%", + "desc": "Loading time of file pages (using onload event) and Media Viewer", + "name": "Loading time", + "slug": "mmv_duration_%wiki%", + "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", + "label": "total count" + } + }, + { + "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_duration_%wiki%", + "source_col": "loadEventEnd_loggedin_50", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), median", + "valueFormat": ",.3r", + "valueUnitSuffix": "ms" + } + }, + { + "nodeType": "line", + "metric": { + "source_id": "mmv_duration_%wiki%", + "source_col": "loadEventEnd_loggedin_90", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), 90th percentile", + "valueFormat": ",.3r", + "valueUnitSuffix": "ms" + } + }, + { + "nodeType": "line", + "metric": { + "source_id": "mmv_duration_%wiki%", + "source_col": "loadEventEnd_loggedin_95", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), 95th percentile", + "valueFormat": ",.3r", + "valueUnitSuffix": "ms", + "disabled": true + } + }, + { + "nodeType": "line", + "metric": { + "source_id": "mmv_duration_%wiki%", + "source_col": "loadEventEnd_loggedin_99", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), 99th percentile", + "valueFormat": ",.3r", + "valueUnitSuffix": "ms", + "disabled": true + } + }, + { + "nodeType": "line", + "metric": { + "source_id": "mmv_duration_%wiki%", + "source_col": "loadEventEnd_loggedin_sample_size", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), sample size", + "disabled": true + } + }, + { + "nodeType": "line", + "metric": { + "source_id": "mmv_duration_%wiki%", + "source_col": "loadEventEnd_anon_50", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), median", + "valueFormat": ",.3r", + "valueUnitSuffix": "ms" + } + }, + { + "nodeType": "line", + "metric": { + "source_id": "mmv_duration_%wiki%", + "source_col": "loadEventEnd_anon_90", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), 90th percentile", + "valueFormat": ",.3r", + "valueUnitSuffix": "ms" + } + }, + { + "nodeType": "line", + "metric": { + "source_id": "mmv_duration_%wiki%", + "source_col": "loadEventEnd_anon_95", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), 95th percentile", + "valueFormat": ",.3r", + "valueUnitSuffix": "ms", + "disabled": true + } + }, + { + "nodeType": "line", + "metric": { + "source_id": "mmv_duration_%wiki%", + "source_col": "loadEventEnd_anon_99", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), 99th percentile", + "valueFormat": ",.3r", + "valueUnitSuffix": "ms", + "disabled": true + } + }, + { + "nodeType": "line", + "metric": { + "source_id": "mmv_duration_%wiki%", + "source_col": "loadEventEnd_anon_sample_size", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), sample size", + "disabled": true + } + }, + { + "nodeType": "line", + "metric": { + "source_id": "mmv_duration_%wiki%", + "source_col": "duration_50", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), median", + "valueFormat": ",.3r", + "valueUnitSuffix": "ms" + } + }, + { + "nodeType": "line", + "metric": { + "source_id": "mmv_duration_%wiki%", + "source_col": "duration_90", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), 90th percentile", + "valueFormat": ",.3r", + "valueUnitSuffix": "ms" + } + }, + { + "nodeType": "line", + "metric": { + "source_id": "mmv_duration_%wiki%", + "source_col": "duration_95", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), 95th percentile", + "valueFormat": ",.3r", + "valueUnitSuffix": "ms", + "disabled": true + } + }, + { + "nodeType": "line", + "metric": { + "source_id": "mmv_duration_%wiki%", + "source_col": "duration_99", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), 99th percentile", + "valueFormat": ",.3r", + "valueUnitSuffix": "ms", + "disabled": true + } + }, + { + "nodeType": "line", + "metric": { + "source_id": "mmv_duration_%wiki%", + "source_col": "duration_sample_size", + "type": "Number" + }, + "options": { + "label": "file page (logged-in), sample size", + "disabled": true + } + } + ] + } + ] + } +} -- To view, visit https://gerrit.wikimedia.org/r/148024 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If51577fe346726e8d70bddcfdc49c1a8ee93788d Gerrit-PatchSet: 1 Gerrit-Project: analytics/multimedia/config Gerrit-Branch: master Gerrit-Owner: Gergő Tisza <gti...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits