{ "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "description": "", "editable": true, "gnetId": null, "graphTooltip": 0, "id": 414, "links": [], "panels": [ { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } }, "mappings": [], "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "Deletions" }, "properties": [ { "id": "color", "value": { "fixedColor": "dark-red", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "Additions" }, "properties": [ { "id": "color", "value": { "fixedColor": "dark-green", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 10, "w": 5, "x": 0, "y": 0 }, "id": 40, "options": { "displayLabels": [ "name", "value", "percent" ], "legend": { "displayMode": "hidden", "placement": "bottom", "values": [ "percent" ] }, "pieType": "pie", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "tooltip": { "mode": "single" } }, "targets": [ { "exemplar": true, "expr": "sum (commit_additions{})", "interval": "", "legendFormat": "Additions", "refId": "A" }, { "exemplar": true, "expr": "sum (commit_deletions{})", "hide": false, "interval": "", "legendFormat": "Deletions", "refId": "B" } ], "title": "Additions/Deletions Line of Code (last 30 days)", "type": "piechart" }, { "datasource": "VictoriaMetrics", "description": "### MRs/PRs Throughput \n\nA count of how many pull requests are merged over a period of time.", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 33, "gradientMode": "hue", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "stepBefore", "lineWidth": 1, "pointSize": 2, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "normal" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-red", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 19, "x": 5, "y": 0 }, "hideTimeOverride": false, "id": 17, "options": { "legend": { "calcs": [ "lastNotNull", "mean", "sum" ], "displayMode": "table", "placement": "right", "sortBy": "Last *", "sortDesc": true }, "tooltip": { "mode": "single" } }, "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "merge_request_throughput{}", "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "timeFrom": "7d", "timeShift": "1d", "title": "MRs/PRs Throughput (last 30 days)", "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "### MRs/PRs Rates\n\nThis is the ratio of product MRs authored by team members in Development Department to the number of team members in the Development Department. ", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 11, "w": 24, "x": 0, "y": 10 }, "id": 5, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right", "sortBy": "Last *", "sortDesc": true }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.3.3", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "merge_request_rate{}", "instant": false, "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "title": "MRs/PRs Rates", "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "from": 0, "result": { "index": 0, "text": "XS" }, "to": 9.99 }, "type": "range" }, { "options": { "from": 10, "result": { "index": 1, "text": "S" }, "to": 29 }, "type": "range" }, { "options": { "from": 30, "result": { "index": 2, "text": "M" }, "to": 99 }, "type": "range" }, { "options": { "from": 100, "result": { "index": 3, "text": "L" }, "to": 499 }, "type": "range" }, { "options": { "from": 500, "result": { "index": 4, "text": "XL" }, "to": 999 }, "type": "range" }, { "options": { "from": 1000, "result": { "index": 5, "text": "XXL" }, "to": 10000 }, "type": "range" }, { "options": { "from": 10001, "result": { "index": 6, "text": "O_o" }, "to": 20000 }, "type": "range" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "#EAB839", "value": 150 }, { "color": "semi-dark-red", "value": 600 } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 0, "y": 21 }, "hideTimeOverride": true, "id": 47, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sort_desc(avg by (repository) (sum(merge_request_size) by (title, repository)))", "format": "time_series", "hide": false, "interval": "", "legendFormat": "{{repository}}", "refId": "B" } ], "timeFrom": "2h", "title": "MRs/PRs Sizes Average (last 30 days)", "transformations": [], "type": "bargauge" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [ { "options": { "from": 0, "result": { "index": 0, "text": "XS" }, "to": 9.99 }, "type": "range" }, { "options": { "from": 10, "result": { "index": 1, "text": "S" }, "to": 29 }, "type": "range" }, { "options": { "from": 30, "result": { "index": 2, "text": "M" }, "to": 99 }, "type": "range" }, { "options": { "from": 100, "result": { "index": 3, "text": "L" }, "to": 499 }, "type": "range" }, { "options": { "from": 500, "result": { "index": 4, "text": "XL" }, "to": 999 }, "type": "range" }, { "options": { "from": 1000, "result": { "index": 5, "text": "XXL" }, "to": 10000 }, "type": "range" }, { "options": { "from": 10001, "result": { "index": 6, "text": "O_o" }, "to": 20000 }, "type": "range" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "#EAB839", "value": 150 }, { "color": "semi-dark-red", "value": 600 } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 12, "y": 21 }, "id": 48, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sort_desc(avg by (repository) (sum(merge_request_size) by (title, repository)))", "format": "time_series", "hide": false, "interval": "", "legendFormat": "{{repository}}", "refId": "B" } ], "title": "MRs/PRs Sizes Average Trend", "transformations": [], "type": "timeseries" }, { "datasource": "VictoriaMetrics", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 11, "w": 12, "x": 0, "y": 31 }, "hideTimeOverride": true, "id": 42, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "exemplar": true, "expr": "sort_desc(sum by (author,email) (active_contributors{}))", "instant": false, "interval": "", "legendFormat": "{{author}} ({{email}})", "refId": "A" } ], "timeFrom": "2h", "timeShift": null, "title": "Active Contributors (last 30 days)", "type": "bargauge" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 20, "gradientMode": "hue", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" }, "lineWidth": 0, "pointSize": 2, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "Deletions" }, "properties": [ { "id": "color", "value": { "fixedColor": "semi-dark-red", "mode": "fixed" } } ] } ] }, "gridPos": { "h": 11, "w": 12, "x": 12, "y": 31 }, "id": 51, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single" } }, "targets": [ { "exemplar": true, "expr": "sum (commit_additions{})", "interval": "", "legendFormat": "Additions", "refId": "A" }, { "exemplar": true, "expr": "sum (-1 * commit_deletions{})", "hide": false, "interval": "", "legendFormat": "Deletions", "refId": "B" } ], "title": "Additions/Deletions Line of Code", "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "### MRs/PRs Success Rate\n\nThe percentage of opened MRs/PRs closed that are successfully merged. ", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "semi-dark-red", "value": null }, { "color": "semi-dark-red", "value": 0 }, { "color": "semi-dark-yellow", "value": 80 }, { "color": "semi-dark-green", "value": 90 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 0, "y": 42 }, "hideTimeOverride": true, "id": 34, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sort(merge_request_success_rate{})", "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "timeFrom": "2h", "timeShift": null, "title": "MRs/PRs Success Rate (last 30 days)", "type": "bargauge" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 12, "y": 42 }, "id": 33, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right", "sortBy": "Last *", "sortDesc": false }, "tooltip": { "mode": "single" } }, "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "merge_request_success_rate{}", "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "title": "MRs/PRs Success Rate Trend", "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "### Unreviewed MRs/PRs\n\nThe percentage of pull requests that were merged without review.", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "semi-dark-yellow", "value": 1 }, { "color": "semi-dark-orange", "value": 4 }, { "color": "semi-dark-red", "value": 8 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 52 }, "hideTimeOverride": true, "id": 15, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": false, "expr": "sort_desc(sum by (repository) (unreviewed_merge_request{} > 0))", "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "timeFrom": "2h", "title": "Unreviewed MRs/PRs (last 30 days)", "transformations": [], "type": "bargauge" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "semi-dark-yellow", "value": 1 }, { "color": "semi-dark-orange", "value": 4 }, { "color": "semi-dark-red", "value": 8 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 12, "y": 52 }, "id": 35, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": false, "expr": "sort_desc(sum by (repository) (unreviewed_merge_request{}))", "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "title": "Unreviewed MRs/PRs Trend", "transformations": [], "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "semi-dark-red", "value": null }, { "color": "semi-dark-yellow", "value": 10 }, { "color": "light-green", "value": 20 } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 0, "y": 61 }, "hideTimeOverride": true, "id": 3, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sort_desc(sum(merge_request_participants) by (user, name))", "format": "time_series", "instant": false, "interval": "", "legendFormat": "{{name}} ({{user}})", "refId": "A" } ], "timeFrom": "2h", "title": "MRs/PRs Participants (last 30 days)", "transformations": [], "type": "bargauge" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "semi-dark-red", "value": null }, { "color": "semi-dark-yellow", "value": 10 }, { "color": "light-green", "value": 20 } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 12, "y": 61 }, "id": 36, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sum(merge_request_participants) by (user, name)", "format": "time_series", "instant": false, "interval": "", "legendFormat": "{{name}} ({{user}})", "refId": "A" } ], "timeFrom": null, "timeShift": null, "title": "MRs/PRs Participants Trend", "transformations": [], "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "semi-dark-green", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 0, "y": 71 }, "hideTimeOverride": true, "id": 56, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sort_desc(sum(merge_request_engage_participants) by (author,participant))", "format": "time_series", "instant": false, "interval": "", "legendFormat": "{{author}} -> engage {{participant}}", "refId": "A" } ], "timeFrom": "2h", "title": "MRs/PRs Participant Engagements (last 30 days)", "transformations": [], "type": "bargauge" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "semi-dark-green", "value": null } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 12, "y": 71 }, "hideTimeOverride": true, "id": 57, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sum(merge_request_engage_participants) by (author,participant)", "format": "time_series", "instant": false, "interval": "", "legendFormat": "{{author}} engage {{participant}}", "refId": "A" } ], "timeFrom": null, "title": "MRs/PRs Participant Engagements", "transformations": [], "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 0, "y": 81 }, "hideTimeOverride": true, "id": 53, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "exemplar": true, "expr": "sort_desc(sum(merge_request_engagement) by (author, mergedby))", "interval": "", "legendFormat": "{{author}} -> merged by {{mergedby}}", "refId": "A" } ], "timeFrom": "1h", "title": "MRs/PRs User Merge Engagements (last 30 days)", "type": "bargauge" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 12, "y": 81 }, "id": 59, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.0.5", "targets": [ { "exemplar": true, "expr": "sort_desc(sum(merge_request_engagement) by (author, mergedby))", "interval": "", "legendFormat": "{{author}} -> merged by {{mergedby}}", "refId": "A" } ], "timeFrom": null, "title": "MRs/PRs User Merge Engagements Trends", "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 0, "y": 91 }, "hideTimeOverride": true, "id": 55, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "exemplar": true, "expr": "sort_desc(sum(merge_request_engagement) by (mergedby))", "interval": "", "legendFormat": " {{mergedby}}", "refId": "A" } ], "timeFrom": "1h", "title": "MRs/PRs Merged By Counts (last 30 days)", "type": "bargauge" }, { "datasource": "VictoriaMetrics", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 12, "y": 91 }, "id": 58, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.0.5", "targets": [ { "exemplar": true, "expr": "sort_desc(sum(merge_request_engagement) by (mergedby))", "interval": "", "legendFormat": " {{mergedby}}", "refId": "A" } ], "timeFrom": null, "title": "MRs/PRs Merged By Counts", "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "### MRs/PRs Comments\n\nThe sum of the number of comments a user has made on MR/PR ", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "semi-dark-red", "value": null }, { "color": "green", "value": 5 } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 0, "y": 101 }, "hideTimeOverride": true, "id": 2, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sort_desc(comments_leaderboard{})", "format": "time_series", "instant": false, "interval": "", "legendFormat": "{{name}} ({{user}})", "refId": "A" } ], "timeFrom": "2h", "title": "MRs/PRs Comments (last 30 days)", "transformations": [], "type": "bargauge" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "semi-dark-red", "value": null }, { "color": "green", "value": 5 } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 12, "y": 101 }, "id": 37, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "comments_leaderboard{}", "format": "time_series", "instant": false, "interval": "", "legendFormat": "{{name}} ({{user}})", "refId": "A" } ], "title": "MRs/PRs Comments Trend", "transformations": [], "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "### Friday MRs/PRs\n\nShows the number of MRs/PRs opened on Friday ", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "semi-dark-yellow", "value": 10 }, { "color": "semi-dark-orange", "value": 15 }, { "color": "semi-dark-red", "value": 20 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 0, "y": 111 }, "hideTimeOverride": true, "id": 14, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": false, "expr": "sort_desc(sum by (repository) (friday_merge_request{} > 0 ))", "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "timeFrom": "2h", "title": "Friday MRs/PRs (last 30 days)", "transformations": [], "type": "bargauge" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "semi-dark-yellow", "value": 10 }, { "color": "semi-dark-orange", "value": 15 }, { "color": "semi-dark-red", "value": 20 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 12, "y": 111 }, "hideTimeOverride": true, "id": 49, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": false, "expr": "sort_desc(sum by (repository) (friday_merge_request{} > 0 ))", "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "timeFrom": null, "title": "Friday MRs/PRs Trend", "transformations": [], "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "The MR sum that the user self-merged. Only for the current month ", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-green", "value": null }, { "color": "semi-dark-yellow", "value": 2 }, { "color": "dark-orange", "value": 8 }, { "color": "dark-red", "value": 10 } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 0, "y": 121 }, "hideTimeOverride": true, "id": 8, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sort_desc(self_merging{})", "format": "time_series", "instant": false, "interval": "", "legendFormat": "{{name}}", "refId": "A" } ], "timeFrom": "2h", "title": "Self-Merging Users (last 30 days)", "transformations": [], "type": "bargauge" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-green", "value": null }, { "color": "semi-dark-yellow", "value": 2 }, { "color": "dark-orange", "value": 8 }, { "color": "dark-red", "value": 10 } ] } }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 12, "y": 121 }, "hideTimeOverride": true, "id": 50, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sort_desc(self_merging{})", "format": "time_series", "instant": false, "interval": "", "legendFormat": "{{name}}", "refId": "A" } ], "timeFrom": null, "title": "Self-Merging Users Trend", "transformations": [], "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "### Repository Defect Rate \n\nThe percentage of merged pull requests that address defects.\n\nWe determine that a PR is addressing a defect by looking at its title and looking for the presence of a set of keywords, specifically any word that begins with:\n\n* fix\n* revert\n* bug\n* repair\n\nThus, it will match things like \"reverts\", \"bugfix\", \"fixes\", \"repairs\" etc. Because we're looking for words that begin with these keywords, we'll match for \"fixes\", but not \"prefix\".", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "max": 100, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 0, "y": 131 }, "hideTimeOverride": true, "id": 27, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sort_desc(defect_rate{}) > 0", "instant": false, "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "timeFrom": "2h", "timeShift": null, "title": "Repository Defect Rate (last 30 days)", "type": "bargauge" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 12, "y": 131 }, "id": 28, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right", "sortBy": "Last *", "sortDesc": true }, "tooltip": { "mode": "single" } }, "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "defect_rate{} > 0", "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "title": "Repository Defect Rate Trend", "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "### User Defect Rate\n\n\nSame calculation method from Repository Defect Rate ", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 10, "w": 12, "x": 0, "y": 141 }, "hideTimeOverride": true, "id": 30, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sort_desc(sum by (username, name) (defect_rate_user{}) > 0)", "interval": "", "legendFormat": "{{name}} ({{username}})", "refId": "A" } ], "timeFrom": "2h", "title": "User Defect Rate (last 30 days)", "type": "bargauge" }, { "datasource": "VictoriaMetrics", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "percent" }, "overrides": [ { "__systemRef": "hideSeriesFrom", "matcher": { "id": "byNames", "options": { "mode": "exclude", "names": [ "Uğurcan Kılıç (ugurcan.kilic)" ], "prefix": "All except:", "readOnly": true } }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": false, "tooltip": false, "viz": true } } ] } ] }, "gridPos": { "h": 10, "w": 12, "x": 12, "y": 141 }, "id": 31, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right", "sortBy": "Last *", "sortDesc": true }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.3.3", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sort_desc(sum by (username, name) (defect_rate_user{} > 0))", "interval": "", "legendFormat": "{{name}} ({{username}})", "refId": "A" } ], "title": "User Defect Rate Trend", "type": "timeseries" }, { "collapsed": false, "datasource": null, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 151 }, "id": 45, "panels": [], "title": "Cycle Times", "type": "row" }, { "datasource": "VictoriaMetrics", "description": "### Cycle Time\n\nThe time between when the first commit is authored to when a MR/PR is merged.", "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "green", "value": 604800 }, { "color": "#EAB839", "value": 1209600 }, { "color": "semi-dark-red", "value": 1728000 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 152 }, "hideTimeOverride": true, "id": 18, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": false, "expr": "sort_desc( (sum by (repository) (cycle_time{})[1h] / count by (repository) (cycle_time{})[1h]) )", "instant": false, "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "timeFrom": "1h", "title": "Cycle Time (last 30 days)", "transformations": [], "type": "bargauge" }, { "datasource": "VictoriaMetrics", "description": "### Cycle Time\n\nThe time between when the first commit is authored to when a MR/PR is merged.", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "green", "value": 604800 }, { "color": "#EAB839", "value": 1209600 }, { "color": "semi-dark-red", "value": 1728000 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 12, "y": 152 }, "id": 38, "options": { "legend": { "calcs": [ "lastNotNull", "mean" ], "displayMode": "table", "placement": "right" }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": false, "expr": "sort_desc( (sum by (repository) (cycle_time{})[1h] / count by (repository) (cycle_time{})[1h]) )", "instant": false, "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "title": "Cycle Time Trend", "transformations": [], "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "### Time To Open\n\nThe time between the earliest commit in a pull request and when the pull request is opened.\n\nTime to Open includes all MRs/PRs which were opened during the selected time frame. This includes MRs/PRs which were closed, declined, merged, or remain open. ", "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "green", "value": 604800 }, { "color": "#EAB839", "value": 1209600 }, { "color": "semi-dark-red", "value": 1728000 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 161 }, "hideTimeOverride": true, "id": 10, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": false, "expr": "sort_desc( (sum by (repository) (time_to_open{})[1h] / count by (repository) (time_to_open{})[1h]) )", "instant": false, "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "timeFrom": "1h", "title": "Time To Open (last 30 days)", "transformations": [], "type": "bargauge" }, { "datasource": "VictoriaMetrics", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 161 }, "id": 22, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right", "sortBy": "Last *", "sortDesc": true }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.3.3", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sum by (repository) (time_to_open{})[1h] / count by (repository) (time_to_open{})[1h]", "instant": false, "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "title": "Time To Open Trend", "transformations": [], "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "### Time To Review \n\nThe average time between when a pull request is opened and when it received its first review. In calculating the average, each pull request is counted once (not as many times as there are reviewers).", "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "green", "value": 604800 }, { "color": "#EAB839", "value": 1209600 }, { "color": "semi-dark-red", "value": 1728000 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 168 }, "id": 19, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": false, "expr": "sort_desc( (sum by (repository) (time_to_review{})[1h] / count by (repository) (time_to_review{})[1h]) )", "instant": false, "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "title": "Time to Review (last 30 days)", "transformations": [], "type": "bargauge" }, { "datasource": "VictoriaMetrics", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "green", "value": 604800 }, { "color": "#EAB839", "value": 1209600 }, { "color": "semi-dark-red", "value": 1728000 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 168 }, "id": 23, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right", "sortBy": "Last *", "sortDesc": true }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.3.3", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "(sum by (repository) (time_to_review{})[1h] / count by (repository) (time_to_review{})[1h]) ", "instant": false, "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "title": "Time to Review Trend", "transformations": [], "type": "timeseries" }, { "datasource": "VictoriaMetrics", "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "green", "value": 604800 }, { "color": "#EAB839", "value": 1209600 }, { "color": "semi-dark-red", "value": 1728000 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 175 }, "hideTimeOverride": true, "id": 20, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": false, "expr": "sort_desc( (sum by (repository) (time_to_approve{})[1h] / count by (repository) (time_to_approve{})[1h]) )", "instant": false, "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "timeFrom": "1h", "title": "Time to Approve (last 30 days)", "transformations": [], "type": "bargauge" }, { "datasource": "VictoriaMetrics", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "green", "value": 604800 }, { "color": "#EAB839", "value": 1209600 }, { "color": "semi-dark-red", "value": 1728000 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 175 }, "id": 24, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right", "sortBy": "Last *", "sortDesc": false }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.3.3", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "(sum by (repository) (time_to_approve{})[1h] / count by (repository) (time_to_approve{})[1h]) ", "instant": false, "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "title": "Time to Approve Trend", "transformations": [], "type": "timeseries" }, { "datasource": "VictoriaMetrics", "description": "### Time To Merge\n\nThe duration between when a pull request is opened and when it is merged.", "fieldConfig": { "defaults": { "color": { "mode": "continuous-GrYlRd" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "green", "value": 604800 }, { "color": "#EAB839", "value": 1209600 }, { "color": "semi-dark-red", "value": 1728000 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 182 }, "hideTimeOverride": true, "id": 21, "options": { "displayMode": "basic", "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showUnfilled": true, "text": {} }, "pluginVersion": "8.0.5", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": false, "expr": "sort_desc( (sum by (repository) (time_to_merge{})[1h] / count by (repository) (time_to_merge{})[1h]) )", "instant": false, "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "timeFrom": "1h", "title": "Time to Merge (last 30 days)", "transformations": [], "type": "bargauge" }, { "datasource": "VictoriaMetrics", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 182 }, "id": 25, "options": { "legend": { "calcs": [ "lastNotNull" ], "displayMode": "table", "placement": "right", "sortBy": "Last *", "sortDesc": true }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.3.3", "targets": [ { "datasource": { "type": "prometheus" }, "exemplar": true, "expr": "sum by (repository) (time_to_merge{})[1h] / count by (repository) (time_to_merge{})[1h]", "instant": false, "interval": "", "legendFormat": "{{repository}}", "refId": "A" } ], "title": "Time to Merge Trend", "transformations": [], "type": "timeseries" } ], "refresh": "", "schemaVersion": 30, "style": "dark", "tags": [], "templating": { "list": [] }, "time": { "from": "now-7d", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ] }, "timezone": "", "title": "SWE Dashboard - Metrics", "version": 156 }