diff --git a/grafana/dashboards/ComponentAndFileLevelMetrics.json b/grafana/dashboards/ComponentAndFileLevelMetrics.json index a368c694b6d..96865220254 100644 --- a/grafana/dashboards/ComponentAndFileLevelMetrics.json +++ b/grafana/dashboards/ComponentAndFileLevelMetrics.json @@ -19,7 +19,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 18, + "id": 40, "links": [], "liveNow": false, "panels": [ @@ -35,7 +35,7 @@ "x": 0, "y": 0 }, - "id": 14, + "id": 6, "panels": [], "targets": [ { @@ -46,7 +46,7 @@ "refId": "A" } ], - "title": "file dimension", + "title": "Author dimension", "type": "row" }, { @@ -60,6 +60,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -103,11 +104,10 @@ "x": 0, "y": 1 }, - "id": 12, - "links": [], + "id": 16, "options": { "barRadius": 0, - "barWidth": 0.78, + "barWidth": 0.5, "fullHighlight": false, "groupWidth": 0.7, "legend": { @@ -121,6 +121,7 @@ "stacking": "none", "text": {}, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" }, @@ -131,47 +132,36 @@ "targets": [ { "datasource": "mysql", - "editorMode": "code", "format": "table", "group": [], "metricColumn": "none", + "queryType": "randomWalk", "rawQuery": true, - "rawSql": "SELECT file_path,\n count(distinct author_name) AS cnt\nFROM commits\nJOIN commit_files\nJOIN repo_commits rc\n ON commit_files.commit_sha = rc.commit_sha\n AND commit_files.commit_sha = commits.sha\nWHERE repo_id IN (${repo_id})\n AND $__timeFilter(commits.authored_date)\n AND file_path REGEXP '(${selected_path:regex})'\nGROUP BY file_path\nORDER BY cnt DESC limit 10;", + "rawSql": "SELECT author_name,\n count(distinct commit_sha) AS commit_nums\nFROM commits\nJOIN repo_commits\nWHERE commits.sha =repo_commits.commit_sha\n AND repo_commits.repo_id IN (${repo_id})\n AND $__timeFilter(commits.authored_date)\nGROUP BY author_name,author_id\nORDER BY commit_nums desc\nLIMIT 10; ", "refId": "A", "select": [ [ { "params": [ - "_raw_data_id" + "id" ], "type": "column" } ] ], - "sql": { - "columns": [ - { - "parameters": [], - "type": "function" - } - ], - "groupBy": [ - { - "property": { - "type": "string" - }, - "type": "groupBy" - } - ], - "limit": 50 - }, - "table": "issue_commits", - "timeColumn": "id", - "timeColumnType": "bigint", - "where": [] + "table": "_devlake_blueprints", + "timeColumn": "created_at", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + } + ] } ], - "title": "files with maximum number of authors", + "title": "commits distribution by author", "type": "barchart" }, { @@ -182,14 +172,29 @@ "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" }, "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "axisSoftMin": 0, + "fillOpacity": 79, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false }, - "inspect": false + "lineWidth": 1, + "scaleDistribution": { + "type": "linear" + }, + "thresholdsStyle": { + "mode": "off" + } }, "mappings": [], "thresholds": { @@ -214,30 +219,41 @@ "x": 12, "y": 1 }, - "id": 2, - "links": [], + "id": 4, "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false + "barRadius": 0, + "barWidth": 0.5, + "fullHighlight": false, + "groupWidth": 0.7, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "showHeader": true + "orientation": "horizontal", + "showValue": "auto", + "stacking": "none", + "text": {}, + "tooltip": { + "maxHeight": 600, + "mode": "single", + "sort": "none" + }, + "xTickLabelRotation": 0, + "xTickLabelSpacing": 0 }, - "pluginVersion": "9.5.15", + "pluginVersion": "8.0.6", "targets": [ { "datasource": "mysql", "format": "table", "group": [], + "hide": false, "metricColumn": "none", "queryType": "randomWalk", "rawQuery": true, - "rawSql": "SELECT file_path,\n COUNT(DISTINCT author_name) AS author_count,\n MAX(rst) AS file_total_size,\n MAX(rst) / COUNT(DISTINCT author_name) AS rate\nFROM commits\nJOIN (\n SELECT file_path,\n commit_files.commit_sha,\n SUM(additions - deletions) AS rst\n FROM commit_files\n JOIN repo_commits rc ON commit_files.commit_sha = rc.commit_sha\n WHERE repo_id IN (${repo_id})\n GROUP BY file_path, commit_files.commit_sha\n) a ON a.commit_sha = commits.sha\nGROUP BY file_path\nHAVING author_count > 0\nORDER BY rate DESC\n", + "rawSql": "SELECT author_name,\n sum(additions-deletions) AS cnt\nFROM commits\nJOIN repo_commits\nWHERE commits.sha =repo_commits.commit_sha\n AND repo_commits.repo_id IN (${repo_id})\n AND $__timeFilter(commits.authored_date)\nGROUP BY author_name,author_id\nORDER BY cnt DESC \nLIMIT 10;", "refId": "A", "select": [ [ @@ -261,17 +277,47 @@ ] } ], - "title": "largest files with lowest number of authors", - "type": "table" + "title": "lines of code distribution by author", + "type": "barchart" }, { - "datasource": "mysql", + "collapsed": false, + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 9 + }, + "id": 20, + "panels": [], + "targets": [ + { + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "refId": "A" + } + ], + "title": "Time dimension", + "type": "row" + }, + { + "datasource": { + "type": "datasource", + "uid": "-- Mixed --" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -313,13 +359,12 @@ "h": 8, "w": 12, "x": 0, - "y": 9 + "y": 10 }, - "id": 10, - "links": [], + "id": 22, "options": { "barRadius": 0, - "barWidth": 0.8, + "barWidth": 0.5, "fullHighlight": false, "groupWidth": 0.7, "legend": { @@ -328,11 +373,12 @@ "placement": "bottom", "showLegend": true }, - "orientation": "horizontal", + "orientation": "auto", "showValue": "auto", "stacking": "none", "text": {}, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" }, @@ -349,7 +395,7 @@ "metricColumn": "none", "queryType": "randomWalk", "rawQuery": true, - "rawSql": "SELECT file_path,\n count(distinct sha) AS modified_num\nFROM commits\nJOIN commit_files\nJOIN repo_commits rc\n ON commit_files.commit_sha = rc.commit_sha\n AND sha=commit_files.commit_sha\n AND $__timeFilter(commits.authored_date)\nWHERE repo_id IN (${repo_id}) and file_path REGEXP '(${selected_path:regex})'\nAND $__timeFilter(commits.authored_date)\nGROUP BY file_path\nORDER BY modified_num desc\nLIMIT 15;", + "rawSql": "SELECT\n CASE cast(dayofweek(authored_date) AS char) \n WHEN '2' THEN '1.Monday'\n WHEN '3' THEN '2.Tuesday'\n WHEN '4' THEN '3.Wednesday'\n WHEN '5' THEN '4.Thursday'\n WHEN '6' THEN '5.Friday'\n WHEN '7' THEN '6.Saturday'\n WHEN '1' THEN '7.Sunday'\n END AS weekday , count(distinct commit_sha) AS commit_nums\nFROM commits\nJOIN repo_commits\nWHERE $__timeFilter(commits.authored_date)\n AND commits.sha =repo_commits.commit_sha\n AND repo_commits.repo_id IN (${repo_id})\nGROUP BY weekday\n", "refId": "A", "select": [ [ @@ -390,7 +436,7 @@ ] } ], - "title": "files with most modifications", + "title": "commits distribution", "type": "barchart" }, { @@ -404,6 +450,7 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -445,13 +492,12 @@ "h": 8, "w": 12, "x": 12, - "y": 9 + "y": 10 }, - "id": 8, - "links": [], + "id": 24, "options": { "barRadius": 0, - "barWidth": 0.79, + "barWidth": 0.97, "fullHighlight": false, "groupWidth": 0.7, "legend": { @@ -460,11 +506,12 @@ "placement": "bottom", "showLegend": true }, - "orientation": "horizontal", + "orientation": "auto", "showValue": "auto", "stacking": "none", "text": {}, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" }, @@ -481,7 +528,7 @@ "metricColumn": "none", "queryType": "randomWalk", "rawQuery": true, - "rawSql": "SELECT file_path,\n count(distinct sha) AS cnt\nFROM commits\nJOIN commit_files\nJOIN repo_commits rc\n ON commit_files.commit_sha = rc.commit_sha\n AND sha=commit_files.commit_sha\nWHERE repo_id IN (${repo_id})\n AND $__timeFilter(commits.authored_date)\nGROUP BY file_path\nORDER BY cnt desc\nLIMIT 10;", + "rawSql": "SELECT\n CASE cast(dayofweek(authored_date) AS char)\n WHEN '2' THEN '1.Monday'\n WHEN '3' THEN '2.Tuesday'\n WHEN '4' THEN '3.Wednesday'\n WHEN '5' THEN '4.Thursday'\n WHEN '6' THEN '5.Friday'\n WHEN '7' THEN '6.Saturday'\n WHEN '1' THEN '7.Sunday'\n END AS weekday , sum(additions-deletions) AS changed_nums, sum(additions) AS total_additions, sum(deletions) AS total_deletions\nFROM commits\nJOIN repo_commits\nWHERE commits.sha =repo_commits.commit_sha\n AND repo_commits.repo_id IN (${repo_id})\n AND $__timeFilter(commits.authored_date)\nGROUP BY weekday\nORDER BY weekday", "refId": "A", "select": [ [ @@ -522,7 +569,7 @@ ] } ], - "title": "[total]files with most modifications", + "title": "lines of code distribution", "type": "barchart" }, { @@ -535,9 +582,9 @@ "h": 1, "w": 24, "x": 0, - "y": 17 + "y": 18 }, - "id": 6, + "id": 14, "panels": [], "targets": [ { @@ -548,7 +595,7 @@ "refId": "A" } ], - "title": "author dimension", + "title": "File dimension", "type": "row" }, { @@ -556,12 +603,14 @@ "type": "datasource", "uid": "-- Mixed --" }, + "description": "Please disable the SkipCommitFiles in the .env setting to view this metric. However, this will significantly increase the time to collect data.", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -603,15 +652,14 @@ "h": 8, "w": 12, "x": 0, - "y": 18 + "y": 19 }, - "id": 16, - "links": [], + "id": 12, "options": { "barRadius": 0, - "barWidth": 0.79, + "barWidth": 0.5, "fullHighlight": false, - "groupWidth": 0.7, + "groupWidth": 0.5, "legend": { "calcs": [], "displayMode": "list", @@ -623,6 +671,7 @@ "stacking": "none", "text": {}, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" }, @@ -633,36 +682,47 @@ "targets": [ { "datasource": "mysql", + "editorMode": "code", "format": "table", "group": [], "metricColumn": "none", - "queryType": "randomWalk", "rawQuery": true, - "rawSql": "SELECT author_name,\n count(distinct commit_sha) AS commit_nums\nFROM commits\nJOIN repo_commits\nWHERE commits.sha =repo_commits.commit_sha\n AND repo_commits.repo_id IN (${repo_id})\n AND $__timeFilter(commits.authored_date)\nGROUP BY author_name,author_id\nORDER BY commit_nums desc\nLIMIT 10; ", + "rawSql": "SELECT \n file_path,\n count(distinct c.author_name) AS cnt\nFROM commits c\n JOIN commit_files cf on cf.commit_sha = c.sha\n JOIN repo_commits rc ON cf.commit_sha = rc.commit_sha\nWHERE \n repo_id IN (${repo_id})\n AND $__timeFilter(c.authored_date)\n AND CONVERT(file_path USING utf8mb4) REGEXP '${selected_path:raw}'\nGROUP BY file_path\nORDER BY cnt DESC \nlimit 10;", "refId": "A", "select": [ [ { "params": [ - "id" + "_raw_data_id" ], "type": "column" } ] ], - "table": "_devlake_blueprints", - "timeColumn": "created_at", - "timeColumnType": "timestamp", - "where": [ - { - "name": "$__timeFilter", - "params": [], - "type": "macro" - } - ] + "sql": { + "columns": [ + { + "parameters": [], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, + "table": "issue_commits", + "timeColumn": "id", + "timeColumnType": "bigint", + "where": [] } ], - "title": "commits distribution by author", + "title": "Files with maximum number of authors", "type": "barchart" }, { @@ -670,31 +730,18 @@ "type": "datasource", "uid": "-- Mixed --" }, + "description": "Please disable the SkipCommitFiles in the .env setting to view this metric. However, this will significantly increase the time to collect data.", "fieldConfig": { "defaults": { "color": { - "mode": "palette-classic" + "mode": "thresholds" }, "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "fillOpacity": 79, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineWidth": 1, - "scaleDistribution": { - "type": "linear" + "align": "auto", + "cellOptions": { + "type": "auto" }, - "thresholdsStyle": { - "mode": "off" - } + "inspect": false }, "mappings": [], "thresholds": { @@ -717,43 +764,32 @@ "h": 8, "w": 12, "x": 12, - "y": 18 + "y": 19 }, - "id": 4, - "links": [], + "id": 2, "options": { - "barRadius": 0, - "barWidth": 0.55, - "fullHighlight": false, - "groupWidth": 0.7, - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "orientation": "horizontal", - "showValue": "auto", - "stacking": "none", - "text": {}, - "tooltip": { - "mode": "single", - "sort": "none" + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false }, - "xTickLabelRotation": 0, - "xTickLabelSpacing": 0 + "showHeader": true }, - "pluginVersion": "8.0.6", + "pluginVersion": "11.0.0", "targets": [ { "datasource": "mysql", + "editorMode": "code", "format": "table", "group": [], - "hide": false, "metricColumn": "none", "queryType": "randomWalk", "rawQuery": true, - "rawSql": "SELECT author_name,\n sum(additions-deletions) AS cnt\nFROM commits\nJOIN repo_commits\nWHERE commits.sha =repo_commits.commit_sha\n AND repo_commits.repo_id IN (${repo_id})\n AND $__timeFilter(commits.authored_date)\nGROUP BY author_name,author_id\nORDER BY cnt DESC \nLIMIT 10;", + "rawSql": "SELECT file_path,\n COUNT(DISTINCT author_name) AS author_count,\n MAX(rst) AS lines_of_code,\n MAX(rst) / COUNT(DISTINCT author_name) AS rate\nFROM commits\nJOIN (\n SELECT file_path,\n commit_files.commit_sha,\n SUM(additions - deletions) AS rst\n FROM commit_files\n JOIN repo_commits rc ON commit_files.commit_sha = rc.commit_sha\n WHERE \n repo_id IN (${repo_id})\n AND CONVERT(file_path USING utf8mb4) REGEXP '${selected_path:raw}'\n GROUP BY file_path, commit_files.commit_sha\n) a ON a.commit_sha = commits.sha\nGROUP BY file_path\nHAVING author_count > 0\nORDER BY rate DESC\n", "refId": "A", "select": [ [ @@ -765,6 +801,23 @@ } ] ], + "sql": { + "columns": [ + { + "parameters": [], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, "table": "_devlake_blueprints", "timeColumn": "created_at", "timeColumnType": "timestamp", @@ -777,46 +830,19 @@ ] } ], - "title": "lines of code distribution by author", - "type": "barchart" - }, - { - "collapsed": false, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 26 - }, - "id": 20, - "panels": [], - "targets": [ - { - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "refId": "A" - } - ], - "title": "time perspective", - "type": "row" + "title": "[Selected Files] Largest files with lowest number of authors", + "type": "table" }, { - "datasource": { - "type": "datasource", - "uid": "-- Mixed --" - }, + "datasource": "mysql", + "description": "Please disable the SkipCommitFiles in the .env setting to view this metric. However, this will significantly increase the time to collect data.", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -842,7 +868,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -859,11 +886,10 @@ "x": 0, "y": 27 }, - "id": 22, - "links": [], + "id": 10, "options": { "barRadius": 0, - "barWidth": 0.97, + "barWidth": 0.5, "fullHighlight": false, "groupWidth": 0.7, "legend": { @@ -872,11 +898,12 @@ "placement": "bottom", "showLegend": true }, - "orientation": "auto", + "orientation": "horizontal", "showValue": "auto", "stacking": "none", "text": {}, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" }, @@ -887,12 +914,13 @@ "targets": [ { "datasource": "mysql", + "editorMode": "code", "format": "table", "group": [], "metricColumn": "none", "queryType": "randomWalk", "rawQuery": true, - "rawSql": "SELECT\n CASE cast(dayofweek(authored_date) AS char) \n WHEN '1' THEN\n '1.Sunday'\n WHEN '2' THEN\n '2.Monday'\n WHEN '3' THEN\n '3.Tuesday'\n WHEN '4' THEN\n '4.Wednesday'\n WHEN '5' THEN\n '5.Thursday'\n WHEN '6' THEN\n '6.Friday'\n WHEN '7' THEN\n '7.Saturday'\n END AS weekday , count(distinct commit_sha) AS commit_nums\nFROM commits\nJOIN repo_commits\nWHERE $__timeFilter(commits.authored_date)\n AND commits.sha =repo_commits.commit_sha\n AND repo_commits.repo_id IN (${repo_id})\nGROUP BY weekday\n", + "rawSql": "SELECT \n file_path,\n count(distinct sha) AS modified_num\nFROM commits c\n JOIN commit_files cf on cf.commit_sha = c.sha\n JOIN repo_commits rc ON cf.commit_sha = rc.commit_sha\nWHERE \n repo_id IN (${repo_id})\n AND $__timeFilter(c.authored_date)\n AND CONVERT(file_path USING utf8mb4) REGEXP '${selected_path:raw}'\nGROUP BY file_path\nORDER BY modified_num desc\nLIMIT 10;", "refId": "A", "select": [ [ @@ -904,6 +932,23 @@ } ] ], + "sql": { + "columns": [ + { + "parameters": [], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, "table": "_devlake_blueprints", "timeColumn": "created_at", "timeColumnType": "timestamp", @@ -916,7 +961,7 @@ ] } ], - "title": "commits distribution", + "title": "Files with most modifications", "type": "barchart" }, { @@ -924,12 +969,14 @@ "type": "datasource", "uid": "-- Mixed --" }, + "description": "Please disable the SkipCommitFiles in the .env setting to view this metric. However, this will significantly increase the time to collect data.", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -955,7 +1002,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -972,11 +1020,10 @@ "x": 12, "y": 27 }, - "id": 24, - "links": [], + "id": 8, "options": { "barRadius": 0, - "barWidth": 0.97, + "barWidth": 0.5, "fullHighlight": false, "groupWidth": 0.7, "legend": { @@ -985,11 +1032,12 @@ "placement": "bottom", "showLegend": true }, - "orientation": "auto", + "orientation": "horizontal", "showValue": "auto", "stacking": "none", "text": {}, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" }, @@ -1000,12 +1048,13 @@ "targets": [ { "datasource": "mysql", + "editorMode": "code", "format": "table", "group": [], "metricColumn": "none", "queryType": "randomWalk", "rawQuery": true, - "rawSql": "SELECT\n CASE cast(dayofweek(authored_date) AS char)\n WHEN '1' THEN\n '1.Sunday'\n WHEN '2' THEN\n '2.Monday'\n WHEN '3' THEN\n '3.Tuesday'\n WHEN '4' THEN\n '4.Wednesday'\n WHEN '5' THEN\n '5.Thursday'\n WHEN '6' THEN\n '6.Friday'\n WHEN '7' THEN\n '7.Saturday'\n END AS weekday , sum(additions-deletions) AS changed_nums, sum(additions) AS total_additions, sum(deletions) AS total_deletions\nFROM commits\nJOIN repo_commits\nWHERE commits.sha =repo_commits.commit_sha\n AND repo_commits.repo_id IN (${repo_id})\n AND $__timeFilter(commits.authored_date)\nGROUP BY weekday\nORDER BY weekday", + "rawSql": "SELECT \n file_path,\n count(distinct sha) AS cnt\nFROM commits c \n JOIN commit_files cf on cf.commit_sha = c.sha \n JOIN repo_commits rc ON cf.commit_sha = rc.commit_sha\nWHERE \n repo_id IN (${repo_id}) \n AND $__timeFilter(c.authored_date)\nGROUP BY file_path\nORDER BY cnt desc\nLIMIT 10;", "refId": "A", "select": [ [ @@ -1017,6 +1066,23 @@ } ] ], + "sql": { + "columns": [ + { + "parameters": [], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, "table": "_devlake_blueprints", "timeColumn": "created_at", "timeColumnType": "timestamp", @@ -1029,7 +1095,7 @@ ] } ], - "title": "lines of code distribution", + "title": "[All Files] Files with most modifications", "type": "barchart" }, { @@ -1055,18 +1121,19 @@ "refId": "A" } ], - "title": "lineage dimension", + "title": "Lineage dimension", "type": "row" }, { "datasource": "mysql", - "description": "", + "description": "Please disable the SkipCommitFiles in the .env setting to view this metric. However, this will significantly increase the time to collect data.", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", @@ -1092,7 +1159,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1110,12 +1178,11 @@ "y": 36 }, "id": 28, - "links": [], "options": { "barRadius": 0, "barWidth": 0.97, "fullHighlight": false, - "groupWidth": 0.7, + "groupWidth": 0.5, "legend": { "calcs": [], "displayMode": "list", @@ -1127,6 +1194,7 @@ "stacking": "none", "text": {}, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" }, @@ -1137,12 +1205,13 @@ "targets": [ { "datasource": "mysql", + "editorMode": "code", "format": "table", "group": [], "metricColumn": "none", "queryType": "randomWalk", "rawQuery": true, - "rawSql": "SELECT CASE cast(dayofweek(commits.committed_date) AS char)\n WHEN '1' THEN\n '1.Sunday'\n WHEN '2' THEN\n '2.Monday'\n WHEN '3' THEN\n '3.Tuesday'\n WHEN '4' THEN\n '4.Wednesday'\n WHEN '5' THEN\n '5.Thursday'\n WHEN '6' THEN\n '6.Friday'\n WHEN '7' THEN\n '7.Saturday'\n END AS wd,\n count(*) as lived_lines\nFROM repo_snapshot\n JOIN commits\n ON commits.sha=repo_snapshot.commit_sha\nWHERE repo_snapshot.repo_id IN (${repo_id})\n AND $__timeFilter(commits.committed_date)\nGROUP BY wd\nORDER BY wd ;", + "rawSql": "SELECT \n CASE cast(dayofweek(commits.committed_date) AS char)\n WHEN '2' THEN '1.Monday'\n WHEN '3' THEN '2.Tuesday'\n WHEN '4' THEN '3.Wednesday'\n WHEN '5' THEN '4.Thursday'\n WHEN '6' THEN '5.Friday'\n WHEN '7' THEN '6.Saturday'\n WHEN '1' THEN '7.Sunday'\n END AS wd,\n count(*) as lived_lines\nFROM repo_snapshot\n JOIN commits\n ON commits.sha=repo_snapshot.commit_sha\nWHERE \n repo_snapshot.repo_id IN (${repo_id})\n AND $__timeFilter(commits.committed_date)\nGROUP BY wd\nORDER BY wd ;", "refId": "A", "select": [ [ @@ -1154,6 +1223,23 @@ } ] ], + "sql": { + "columns": [ + { + "parameters": [], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, "table": "_devlake_blueprints", "timeColumn": "created_at", "timeColumnType": "timestamp", @@ -1171,6 +1257,7 @@ }, { "datasource": "mysql", + "description": "Please disable the SkipCommitFiles in the .env setting to view this metric. However, this will significantly increase the time to collect data.", "fieldConfig": { "defaults": { "color": { @@ -1188,7 +1275,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1206,7 +1294,6 @@ "y": 36 }, "id": 30, - "links": [], "options": { "cellHeight": "sm", "footer": { @@ -1219,10 +1306,11 @@ }, "showHeader": true }, - "pluginVersion": "9.5.15", + "pluginVersion": "11.0.0", "targets": [ { "datasource": "mysql", + "editorMode": "code", "format": "table", "group": [], "metricColumn": "none", @@ -1240,6 +1328,23 @@ } ] ], + "sql": { + "columns": [ + { + "parameters": [], + "type": "function" + } + ], + "groupBy": [ + { + "property": { + "type": "string" + }, + "type": "groupBy" + } + ], + "limit": 50 + }, "table": "_devlake_blueprints", "timeColumn": "created_at", "timeColumnType": "timestamp", @@ -1257,8 +1362,7 @@ } ], "refresh": "", - "schemaVersion": 38, - "style": "dark", + "schemaVersion": 39, "tags": [ "Engineering Leads Dashboard" ], @@ -1292,8 +1396,8 @@ { "current": { "selected": false, - "text": "", - "value": "" + "text": ".*", + "value": ".*" }, "description": "input file path", "hide": 0, @@ -1301,12 +1405,12 @@ "name": "selected_path", "options": [ { - "selected": true, + "selected": false, "text": "", "value": "" } ], - "query": "", + "query": ".*", "skipUrlSync": false, "type": "textbox" } @@ -1316,6 +1420,7 @@ "from": "now-6M", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "refresh_intervals": [ "5s", @@ -1335,4 +1440,4 @@ "uid": "KxUh7IG4z", "version": 2, "weekStart": "" -} +} \ No newline at end of file