2023-03-06 18:21:56 +00:00
{
"__inputs" : [
{
2023-03-10 10:24:17 +00:00
"name" : "DS_POSTGRESQL" ,
"label" : "PostgreSQL" ,
2023-03-06 18:21:56 +00:00
"description" : "" ,
"type" : "datasource" ,
"pluginId" : "postgres" ,
"pluginName" : "PostgreSQL"
}
] ,
"__elements" : { } ,
"__requires" : [
2023-03-10 10:24:17 +00:00
{
"type" : "panel" ,
"id" : "bargauge" ,
"name" : "Bar gauge" ,
"version" : ""
} ,
2023-03-06 18:21:56 +00:00
{
"type" : "grafana" ,
"id" : "grafana" ,
"name" : "Grafana" ,
2023-03-10 10:24:17 +00:00
"version" : "9.3.2"
2023-03-06 18:21:56 +00:00
} ,
{
"type" : "panel" ,
"id" : "piechart" ,
"name" : "Pie chart" ,
"version" : ""
} ,
{
"type" : "datasource" ,
"id" : "postgres" ,
"name" : "PostgreSQL" ,
"version" : "1.0.0"
} ,
{
"type" : "panel" ,
"id" : "stat" ,
"name" : "Stat" ,
"version" : ""
} ,
{
"type" : "panel" ,
"id" : "table" ,
"name" : "Table" ,
"version" : ""
}
] ,
"annotations" : {
"list" : [
{
"builtIn" : 1 ,
"datasource" : {
"type" : "grafana" ,
"uid" : "-- Grafana --"
} ,
"enable" : true ,
"hide" : true ,
"iconColor" : "rgba(0, 211, 255, 1)" ,
"name" : "Annotations & Alerts" ,
"target" : {
"limit" : 100 ,
"matchAny" : false ,
"tags" : [ ] ,
"type" : "dashboard"
} ,
"type" : "dashboard"
}
]
} ,
2023-03-08 08:43:46 +00:00
"editable" : false ,
2023-03-06 18:21:56 +00:00
"fiscalYearStartMonth" : 0 ,
"graphTooltip" : 0 ,
"id" : null ,
"links" : [ ] ,
"liveNow" : false ,
"panels" : [
{
"collapsed" : false ,
"gridPos" : {
"h" : 1 ,
"w" : 24 ,
"x" : 0 ,
"y" : 0
} ,
"id" : 17 ,
"panels" : [ ] ,
2023-03-22 10:30:12 +00:00
"title" : "Builds" ,
2023-03-06 18:21:56 +00:00
"type" : "row"
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"fixedColor" : "blue" ,
"mode" : "fixed"
} ,
"custom" : {
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
}
} ,
"mappings" : [ ]
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "finished"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "green" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "running"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "semi-dark-blue" ,
"mode" : "fixed"
}
}
]
}
]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 8 ,
"x" : 0 ,
"y" : 1
} ,
"id" : 9 ,
"options" : {
"legend" : {
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
"values" : [
"value"
]
} ,
"pieType" : "donut" ,
"reduceOptions" : {
"calcs" : [
"lastNotNull"
] ,
"fields" : "" ,
"values" : false
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
2023-03-10 10:24:17 +00:00
"rawSql" : "SELECT COUNT(*) AS finished\nFROM builds\nWHERE $__unixEpochFilter(created_at);" ,
2023-03-06 18:21:56 +00:00
"refId" : "B" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT COUNT(*) AS running\nFROM builds\nWHERE $__unixEpochFilter(created_at) AND finished_at is NULL;" ,
"refId" : "C" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
}
] ,
"title" : "Builds" ,
"type" : "piechart"
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"description" : "" ,
"fieldConfig" : {
"defaults" : {
"color" : {
"fixedColor" : "blue" ,
"mode" : "fixed"
} ,
"custom" : {
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
}
} ,
"mappings" : [ ]
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "running"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "semi-dark-blue" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "completed"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "green" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "idle"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "purple" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "failed"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "red" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "excluded"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "text" ,
"mode" : "fixed"
}
}
]
}
]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 8 ,
"x" : 8 ,
"y" : 1
} ,
"id" : 10 ,
"options" : {
"legend" : {
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
"values" : [
"value"
]
} ,
"pieType" : "donut" ,
"reduceOptions" : {
"calcs" : [
"lastNotNull"
] ,
"fields" : "" ,
"values" : false
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT COUNT(id) AS idle FROM build_tasks \nWHERE $__unixEpochFilter(started_at) AND status_id = 0;" ,
"refId" : "idle" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT COUNT(id) AS started FROM build_tasks \nWHERE $__unixEpochFilter(started_at) AND status_id = 1;" ,
"refId" : "started" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT COUNT(id) AS completed FROM build_tasks \nWHERE $__unixEpochFilter(started_at) AND status_id = 2;" ,
"refId" : "completed" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT COUNT(id) AS failed FROM build_tasks \nWHERE $__unixEpochFilter(started_at) AND status_id = 3;" ,
"refId" : "failed" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT COUNT(id) AS excluded FROM build_tasks \nWHERE $__unixEpochFilter(started_at) AND status_id = 4;" ,
"refId" : "excluded" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
}
] ,
"title" : "Build tasks by status" ,
"type" : "piechart"
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"description" : "" ,
"fieldConfig" : {
"defaults" : {
"color" : {
"fixedColor" : "blue" ,
"mode" : "fixed"
} ,
"custom" : {
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
}
} ,
"mappings" : [ ]
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "running"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "semi-dark-blue" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "completed"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "green" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "idle"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "purple" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "failed"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "red" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "excluded"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "text" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "x86_64"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "purple" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "i686"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
2023-03-10 10:24:17 +00:00
"fixedColor" : "dark-orange" ,
2023-03-06 18:21:56 +00:00
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "aarch64"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "yellow" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "ppc64le"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "green" ,
"mode" : "fixed"
}
}
]
}
]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 8 ,
"x" : 16 ,
"y" : 1
} ,
"id" : 11 ,
"options" : {
"legend" : {
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
"values" : [
"value"
]
} ,
"pieType" : "donut" ,
"reduceOptions" : {
"calcs" : [
"lastNotNull"
] ,
"fields" : "" ,
"values" : false
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT COUNT(id) AS i686 FROM build_tasks \nWHERE $__unixEpochFilter(started_at) AND arch_id = 0;" ,
"refId" : "i686" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT COUNT(id) AS x86_64 FROM build_tasks \nWHERE $__unixEpochFilter(started_at) AND arch_id = 1;" ,
"refId" : "x86_64" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT COUNT(id) AS aarch64 FROM build_tasks \nWHERE $__unixEpochFilter(started_at) AND arch_id = 2;" ,
"refId" : "aarch64" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT COUNT(id) AS ppc64le FROM build_tasks \nWHERE $__unixEpochFilter(started_at) AND arch_id = 3;" ,
"refId" : "ppc64le" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT COUNT(id) AS s390x FROM build_tasks \nWHERE $__unixEpochFilter(started_at) AND arch_id = 4;" ,
"refId" : "excluded" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
}
] ,
"title" : "Build tasks by arch" ,
"type" : "piechart"
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
2023-03-10 10:24:17 +00:00
"description" : "" ,
2023-03-06 18:21:56 +00:00
"fieldConfig" : {
"defaults" : {
"color" : {
"fixedColor" : "blue" ,
"mode" : "fixed"
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
}
]
} ,
"unit" : "s"
} ,
"overrides" : [ ]
} ,
"gridPos" : {
2023-03-10 10:24:17 +00:00
"h" : 5 ,
"w" : 9 ,
2023-03-06 18:21:56 +00:00
"x" : 0 ,
"y" : 8
} ,
"id" : 13 ,
"options" : {
"colorMode" : "value" ,
"graphMode" : "area" ,
"justifyMode" : "auto" ,
"orientation" : "auto" ,
"reduceOptions" : {
"calcs" : [
"lastNotNull"
] ,
"fields" : "" ,
"values" : false
} ,
"textMode" : "auto"
} ,
2023-03-10 10:24:17 +00:00
"pluginVersion" : "9.3.2" ,
2023-03-06 18:21:56 +00:00
"targets" : [
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT MAX(finished_at - created_at) AS MAX\nFROM builds\nWHERE $__unixEpochFilter(created_at) AND finished_at IS NOT NULL;" ,
2023-03-10 10:24:17 +00:00
"refId" : "max" ,
2023-03-06 18:21:56 +00:00
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
} ,
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"hide" : false ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT MIN(finished_at - created_at) AS MIN\nFROM builds\nWHERE $__unixEpochFilter(created_at) AND finished_at IS NOT NULL;" ,
2023-03-10 10:24:17 +00:00
"refId" : "min" ,
2023-03-06 18:21:56 +00:00
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
2023-03-10 10:24:17 +00:00
"rawSql" : "SELECT PERCENTILE_CONT(0.5) WITHIN GROUP(ORDER BY durations.duration) as median FROM \n(SELECT (finished_at - created_at) AS duration \n FROM builds\n WHERE $__unixEpochFilter(created_at) AND finished_at IS NOT NULL) as durations\n" ,
"refId" : "meidan" ,
2023-03-06 18:21:56 +00:00
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
2023-03-10 10:24:17 +00:00
}
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
2023-03-08 08:43:46 +00:00
} ,
2023-03-10 10:24:17 +00:00
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT PERCENTILE_CONT(0.95) WITHIN GROUP(ORDER BY durations.duration) as \"95th percentile\" \nFROM \n (SELECT (finished_at - created_at) AS duration \n FROM builds\n WHERE $__unixEpochFilter(created_at) AND finished_at IS NOT NULL) as durations\n" ,
"refId" : "95th" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
2023-03-06 18:21:56 +00:00
}
] ,
"title" : "Build duration" ,
2023-03-10 10:24:17 +00:00
"transformations" : [
{
"id" : "organize" ,
"options" : { }
}
] ,
2023-03-06 18:21:56 +00:00
"type" : "stat"
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
2023-03-10 10:24:17 +00:00
"description" : "Averages for build tasks with \"completed\"\nstatus" ,
2023-03-06 18:21:56 +00:00
"fieldConfig" : {
"defaults" : {
"color" : {
"fixedColor" : "blue" ,
"mode" : "fixed"
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
}
]
} ,
"unit" : "s"
} ,
"overrides" : [ ]
} ,
"gridPos" : {
2023-03-10 10:24:17 +00:00
"h" : 5 ,
"w" : 9 ,
"x" : 9 ,
2023-03-06 18:21:56 +00:00
"y" : 8
} ,
"id" : 18 ,
"options" : {
"colorMode" : "value" ,
"graphMode" : "area" ,
"justifyMode" : "auto" ,
"orientation" : "auto" ,
"reduceOptions" : {
"calcs" : [
"lastNotNull"
] ,
"fields" : "" ,
"values" : false
} ,
"textMode" : "auto"
} ,
2023-03-10 10:24:17 +00:00
"pluginVersion" : "9.3.2" ,
2023-03-06 18:21:56 +00:00
"targets" : [
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
2023-03-10 10:24:17 +00:00
"rawSql" : "SELECT MAX(finished_at - started_at) AS MAX\nFROM build_tasks\nWHERE $__unixEpochFilter(started_at) AND status_id = 2" ,
"refId" : "max" ,
2023-03-06 18:21:56 +00:00
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
} ,
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"hide" : false ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
2023-03-10 10:24:17 +00:00
"rawSql" : "SELECT MIN(finished_at - started_at) AS MIN\nFROM build_tasks\nWHERE $__unixEpochFilter(started_at) AND status_id = 2" ,
"refId" : "min" ,
2023-03-06 18:21:56 +00:00
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
} ,
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"hide" : false ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
2023-03-10 10:24:17 +00:00
"rawSql" : "SELECT PERCENTILE_CONT(0.5) WITHIN GROUP(ORDER BY durations.duration) as median FROM \n(SELECT (finished_at - started_at) AS duration\nFROM build_tasks\nWHERE $__unixEpochFilter(started_at) AND status_id = 2) as durations\n\n\n" ,
"refId" : "median" ,
2023-03-06 18:21:56 +00:00
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
2023-03-10 10:24:17 +00:00
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT PERCENTILE_CONT(0.95) WITHIN GROUP(ORDER BY durations.duration) as \"95th percentile\" FROM \n(SELECT (finished_at - started_at) AS duration\nFROM build_tasks\nWHERE $__unixEpochFilter(started_at) AND status_id = 2) as durations" ,
"refId" : "95th percentile" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
2023-03-06 18:21:56 +00:00
}
] ,
2023-03-10 10:24:17 +00:00
"title" : "Build tasks duration (completed)" ,
2023-03-06 18:21:56 +00:00
"type" : "stat"
} ,
{
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
2023-03-10 10:24:17 +00:00
"description" : "How much time were spent in queue. \n\nStats for \"completed\" build tasks only" ,
2023-03-06 18:21:56 +00:00
"fieldConfig" : {
"defaults" : {
"color" : {
2023-03-09 12:33:02 +00:00
"mode" : "thresholds"
2023-03-06 18:21:56 +00:00
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
2023-03-09 12:33:02 +00:00
"color" : "red" ,
2023-03-10 10:24:17 +00:00
"value" : null
2023-03-06 18:21:56 +00:00
}
]
2023-03-10 10:24:17 +00:00
} ,
"unit" : "s"
2023-03-07 23:02:25 +00:00
} ,
2023-03-09 12:33:02 +00:00
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
2023-03-10 10:24:17 +00:00
"options" : "id"
2023-03-09 12:33:02 +00:00
} ,
"properties" : [
{
"id" : "unit" ,
2023-03-10 10:24:17 +00:00
"value" : "none"
} ,
2023-03-09 12:33:02 +00:00
{
2023-03-10 10:24:17 +00:00
"id" : "links" ,
"value" : [
{
"title" : "" ,
"url" : "/d/vtQClqxVk/build-task-details?orgId=1&var-build_task=${__value.raw}\n\n"
}
]
2023-03-09 12:33:02 +00:00
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2023-03-10 10:24:17 +00:00
"options" : "wait-time"
2023-03-09 12:33:02 +00:00
} ,
"properties" : [
{
2023-03-10 10:24:17 +00:00
"id" : "color" ,
"value" : {
"fixedColor" : "red" ,
"mode" : "fixed"
}
2023-03-09 12:33:02 +00:00
}
]
}
]
2023-03-06 18:21:56 +00:00
} ,
"gridPos" : {
2023-03-10 10:24:17 +00:00
"h" : 5 ,
"w" : 6 ,
"x" : 18 ,
"y" : 8
2023-03-06 18:21:56 +00:00
} ,
2023-03-10 10:24:17 +00:00
"id" : 41 ,
2023-03-06 18:21:56 +00:00
"options" : {
2023-03-10 10:24:17 +00:00
"colorMode" : "value" ,
"graphMode" : "area" ,
"justifyMode" : "auto" ,
"orientation" : "auto" ,
"reduceOptions" : {
"calcs" : [
"lastNotNull"
2023-03-09 13:16:35 +00:00
] ,
2023-03-10 10:24:17 +00:00
"fields" : "" ,
"values" : false
2023-03-06 18:21:56 +00:00
} ,
2023-03-10 10:24:17 +00:00
"textMode" : "auto"
2023-03-06 18:21:56 +00:00
} ,
2023-03-10 10:24:17 +00:00
"pluginVersion" : "9.3.2" ,
2023-03-06 18:21:56 +00:00
"targets" : [
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
2023-03-10 10:24:17 +00:00
"uid" : "${DS_POSTGRESQL}"
2023-03-06 18:21:56 +00:00
} ,
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
2023-03-10 10:24:17 +00:00
"rawSql" : "SELECT\n bt.id, \n SUM(bt.finished_at - bt.started_at) AS task_duration,\n (SELECT SUM(end_ts - start_ts) \n FROM web_node_stats AS ws \n WHERE ws.build_task_id = bt.id AND stat_name_id=0) AS web_node_duration,\n (SELECT SUM(end_ts - start_ts) \n FROM build_node_stats AS bs \n WHERE bs.build_task_id = bt.id AND stat_name_id=6) AS build_node_duration\nFROM build_tasks AS bt\nWHERE $__unixEpochFilter(started_at) AND status_id = 2\nGROUP BY bt.id;" ,
2023-03-09 12:33:02 +00:00
"refId" : "A" ,
2023-03-06 18:21:56 +00:00
"sql" : {
"columns" : [
{
2023-03-09 12:33:02 +00:00
"parameters" : [ ] ,
2023-03-06 18:21:56 +00:00
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
2023-03-09 12:33:02 +00:00
}
] ,
2023-03-10 10:24:17 +00:00
"title" : "Build task wait time (completed)" ,
2023-03-09 12:33:02 +00:00
"transformations" : [
{
2023-03-10 10:24:17 +00:00
"id" : "calculateField" ,
2023-03-09 12:33:02 +00:00
"options" : {
2023-03-10 10:24:17 +00:00
"binary" : {
"left" : "web_node_duration" ,
"reducer" : "sum" ,
"right" : "build_node_duration"
} ,
"mode" : "binary" ,
"reduce" : {
"reducer" : "sum"
}
2023-03-09 12:33:02 +00:00
}
2023-03-10 10:24:17 +00:00
} ,
{
"id" : "calculateField" ,
"options" : {
"binary" : {
"left" : "task_duration" ,
"operator" : "-" ,
"reducer" : "sum" ,
"right" : "web_node_duration build_node_duration"
} ,
"mode" : "binary" ,
"reduce" : {
"reducer" : "sum"
}
2023-03-09 13:16:35 +00:00
}
} ,
2023-03-10 10:24:17 +00:00
{
"id" : "organize" ,
"options" : {
"excludeByName" : {
"build_id" : true ,
"build_node_duration" : true ,
"id" : true ,
"task_duration" : true ,
"web_node_duration" : true ,
"web_node_duration build_node_duration" : true
2023-03-09 13:16:35 +00:00
} ,
2023-03-10 10:24:17 +00:00
"indexByName" : { } ,
"renameByName" : {
"task_duration - web_node_duration build_node_duration" : "wait-time"
}
}
} ,
{
"id" : "reduce" ,
"options" : {
"labelsToFields" : false ,
"reducers" : [
"max" ,
"min" ,
"mean"
2023-03-09 13:16:35 +00:00
]
}
2023-03-10 10:24:17 +00:00
}
] ,
"type" : "stat"
} ,
{
2023-03-22 10:30:12 +00:00
"collapsed" : false ,
2023-03-09 13:16:35 +00:00
"gridPos" : {
2023-03-10 10:24:17 +00:00
"h" : 1 ,
2023-03-09 13:16:35 +00:00
"w" : 24 ,
"x" : 0 ,
2023-03-10 10:24:17 +00:00
"y" : 13
2023-03-09 12:33:02 +00:00
} ,
2023-03-10 10:24:17 +00:00
"id" : 26 ,
2023-03-22 10:30:12 +00:00
"panels" : [ ] ,
"title" : "Build Steps" ,
"type" : "row"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"description" : "" ,
"fieldConfig" : {
"defaults" : {
"color" : {
"fixedColor" : "#61a69d" ,
"mode" : "fixed"
2023-03-07 23:02:25 +00:00
} ,
2023-03-22 10:30:12 +00:00
"custom" : {
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
}
} ,
"mappings" : [ ] ,
"unit" : "s"
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "build_binaries"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
2023-03-07 23:02:25 +00:00
{
2023-03-22 10:30:12 +00:00
"id" : "color" ,
"value" : {
"fixedColor" : "purple" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "upload"
} ,
"properties" : [
2023-03-07 23:02:25 +00:00
{
2023-03-22 10:30:12 +00:00
"id" : "color" ,
"value" : {
"fixedColor" : "blue" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "packages_processing"
} ,
"properties" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"id" : "color" ,
"value" : {
"fixedColor" : "green" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "build_srpm"
} ,
"properties" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"id" : "color" ,
"value" : {
"fixedColor" : "semi-dark-green" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "notarize_artifacts"
} ,
"properties" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"id" : "color" ,
"value" : {
"fixedColor" : "yellow" ,
"mode" : "fixed"
}
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "logs_processing"
} ,
"properties" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"id" : "color" ,
"value" : {
"fixedColor" : "orange" ,
"mode" : "fixed"
}
2023-03-10 10:24:17 +00:00
}
]
} ,
2023-03-22 10:30:12 +00:00
{
"matcher" : {
"id" : "byName" ,
"options" : "source_authenticate"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "red" ,
"mode" : "fixed"
}
}
]
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
{
"matcher" : {
"id" : "byName" ,
"options" : "git_checkout"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "light-red" ,
"mode" : "fixed"
}
}
]
}
]
} ,
"gridPos" : {
"h" : 8 ,
"w" : 8 ,
"x" : 0 ,
"y" : 14
} ,
"id" : 33 ,
"options" : {
"legend" : {
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
"values" : [
"percent"
]
} ,
"pieType" : "pie" ,
"reduceOptions" : {
"calcs" : [
"lastNotNull"
] ,
"fields" : "" ,
"values" : false
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"editorMode" : "code" ,
"fields" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as upload\nFROM build_node_stats \nWHERE stat_name_id = 0 AND $__unixEpochFilter(start_ts);" ,
"refId" : "upload" ,
"sql" : {
"columns" : [
{
"parameters" : [
{
"name" : "start_ts" ,
"type" : "functionParameter"
}
] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"table" : "build_node_stats" ,
"urlPath" : ""
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as build_srpm\nFROM build_node_stats \nWHERE stat_name_id = 2 AND $__unixEpochFilter(start_ts);" ,
"refId" : "build_srpm" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as git_checkout\nFROM build_node_stats \nWHERE stat_name_id = 3 AND $__unixEpochFilter(start_ts);" ,
"refId" : "git_checkout" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as build_binaries\nFROM build_node_stats \nWHERE stat_name_id = 4 AND $__unixEpochFilter(start_ts);" ,
"refId" : "build_binaries" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as notarize_artifacts\nFROM build_node_stats \nWHERE stat_name_id = 7 AND $__unixEpochFilter(start_ts)" ,
"refId" : "cas_notarize_artifacts" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as source_authenticate\nFROM build_node_stats \nWHERE stat_name_id = 8 AND $__unixEpochFilter(start_ts);" ,
"refId" : "cas_source_authenticate" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as logs_processing\nFROM web_node_stats \nWHERE stat_name_id = 1 AND $__unixEpochFilter(start_ts);" ,
"refId" : "logs_processing" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as packages_processing\nFROM web_node_stats \nWHERE stat_name_id = 2 AND $__unixEpochFilter(start_ts);" ,
"refId" : "packages_procession" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
}
] ,
"title" : "Duration (%)" ,
"type" : "piechart"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"description" : "" ,
"fieldConfig" : {
"defaults" : {
"color" : {
"fixedColor" : "#61a69d" ,
"mode" : "fixed"
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green" ,
"value" : null
}
]
} ,
"unit" : "s"
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "wait_time"
} ,
"properties" : [
{
"id" : "color" ,
"value" : {
"fixedColor" : "red" ,
"mode" : "fixed"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
}
]
}
]
} ,
"gridPos" : {
"h" : 8 ,
"w" : 16 ,
"x" : 8 ,
"y" : 14
} ,
"id" : 20 ,
"options" : {
"displayMode" : "basic" ,
"minVizHeight" : 10 ,
"minVizWidth" : 0 ,
"orientation" : "vertical" ,
"reduceOptions" : {
"calcs" : [
"lastNotNull"
] ,
"fields" : "" ,
"values" : false
} ,
"showUnfilled" : false
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as git_checkout\nFROM build_node_stats \nWHERE stat_name_id = 3 AND $__unixEpochFilter(start_ts);" ,
"refId" : "git_checkout" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as source_authenticate\nFROM build_node_stats \nWHERE stat_name_id = 8 AND $__unixEpochFilter(start_ts);" ,
"refId" : "cas_source_authenticate" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as build_srpm\nFROM build_node_stats \nWHERE stat_name_id = 2 AND $__unixEpochFilter(start_ts);" ,
"refId" : "build_srpm" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as build_binaries\nFROM build_node_stats \nWHERE stat_name_id = 4 AND $__unixEpochFilter(start_ts);" ,
"refId" : "build_binaries" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as notarize_artifacts\nFROM build_node_stats \nWHERE stat_name_id = 7 AND $__unixEpochFilter(start_ts)" ,
"refId" : "cas_notarize_artifacts" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as logs_processing\nFROM web_node_stats \nWHERE stat_name_id = 1 AND $__unixEpochFilter(start_ts);" ,
"refId" : "logs_processing" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : false ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as packages_processing\nFROM web_node_stats \nWHERE stat_name_id = 2 AND $__unixEpochFilter(start_ts);" ,
"refId" : "packages_processing" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
} ,
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT SUM(end_ts - start_ts) as upload\nFROM build_node_stats \nWHERE stat_name_id = 0 AND $__unixEpochFilter(start_ts);" ,
"refId" : "upload" ,
"sql" : {
"columns" : [
{
"parameters" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"name" : "start_ts" ,
"type" : "functionParameter"
2023-03-10 10:24:17 +00:00
}
] ,
2023-03-22 10:30:12 +00:00
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"table" : "build_node_stats" ,
"urlPath" : ""
}
] ,
"title" : "Duration (absolute)" ,
"type" : "bargauge"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"description" : "Top 5 build tasks with longest git_checkout step" ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
} ,
"custom" : {
"align" : "left" ,
"displayMode" : "auto" ,
"inspect" : false
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green"
}
]
}
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "build_task"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 82
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
} ,
"properties" : [
{
"id" : "links" ,
"value" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"title" : "" ,
"url" : "/d/vtQClqxVk/build-task-details?orgId=1&var-build_task=${__value.raw}"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "duration"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "unit" ,
"value" : "s"
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 87
}
]
}
]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 3 ,
"x" : 0 ,
"y" : 22
} ,
"id" : 28 ,
"options" : {
"footer" : {
"enablePagination" : false ,
"fields" : "" ,
"reducer" : [
"sum"
] ,
"show" : false
} ,
"showHeader" : true ,
"sortBy" : [ ]
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"fields" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT build_task_id AS \"build task\", (end_ts - start_ts) as duration\nFROM build_node_stats\nWHERE stat_name_id = 3 AND $__unixEpochFilter(start_ts)\nORDER BY duration DESC\nLIMIT 5;" ,
"refId" : "build_srpm" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
}
] ,
"title" : "git_checkout" ,
"type" : "table"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"description" : "Top 5 build tasks with longest source_authenticate step" ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
} ,
"custom" : {
"align" : "left" ,
"displayMode" : "auto" ,
"inspect" : false
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green"
}
]
}
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 78
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
} ,
"properties" : [
{
"id" : "links" ,
"value" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"title" : "" ,
"url" : "/d/vtQClqxVk/build-task-details?orgId=1&var-build_task=${__value.raw}"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "duration"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "unit" ,
"value" : "s"
}
]
}
]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 3 ,
"x" : 3 ,
"y" : 22
} ,
"id" : 31 ,
"options" : {
"footer" : {
"enablePagination" : false ,
"fields" : "" ,
"reducer" : [
"sum"
] ,
"show" : false
} ,
"showHeader" : true ,
"sortBy" : [ ]
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"fields" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT build_task_id AS \"build task\", (end_ts - start_ts) as duration\nFROM build_node_stats\nWHERE stat_name_id = 8 AND $__unixEpochFilter(start_ts)\nORDER BY duration DESC\nLIMIT 5;" ,
"refId" : "build_srpm" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
}
] ,
"title" : "source_authenticate" ,
"type" : "table"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"description" : "Top 5 build tasks with longest build_binaries step" ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
} ,
"custom" : {
"align" : "left" ,
"displayMode" : "auto" ,
"inspect" : false
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green"
}
]
}
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 81
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
} ,
"properties" : [
{
"id" : "links" ,
"value" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"title" : "" ,
"url" : "/d/vtQClqxVk/build-task-details?orgId=1&var-build_task=${__value.raw}"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "duration"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "unit" ,
"value" : "s"
}
]
}
]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 3 ,
"x" : 6 ,
"y" : 22
} ,
"id" : 29 ,
"options" : {
"footer" : {
"enablePagination" : false ,
"fields" : "" ,
"reducer" : [
"sum"
] ,
"show" : false
} ,
"showHeader" : true ,
"sortBy" : [ ]
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"fields" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT build_task_id AS \"build task\", (end_ts - start_ts) as duration\nFROM build_node_stats\nWHERE stat_name_id = 4 AND $__unixEpochFilter(start_ts)\nORDER BY duration DESC\nLIMIT 5;" ,
"refId" : "build_srpm" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
}
] ,
"title" : "build_binaries" ,
"type" : "table"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"description" : "Top 5 build tasks with longest build_srpm step" ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
} ,
"custom" : {
"align" : "left" ,
"displayMode" : "auto" ,
"inspect" : false
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green"
}
]
}
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 81
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "links" ,
"value" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"title" : "" ,
"url" : "/d/vtQClqxVk/build-task-details?orgId=1&var-build_task=${__value.raw}"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "duration"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "unit" ,
"value" : "s"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "custom.width" ,
"value" : 82
}
]
}
]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 3 ,
"x" : 9 ,
"y" : 22
} ,
"id" : 27 ,
"options" : {
"footer" : {
"enablePagination" : false ,
"fields" : "" ,
"reducer" : [
"sum"
] ,
"show" : false
} ,
"showHeader" : true ,
"sortBy" : [ ]
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"fields" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT build_task_id AS \"build task\", (end_ts - start_ts) as duration\nFROM build_node_stats\nWHERE stat_name_id = 2 AND $__unixEpochFilter(start_ts)\nORDER BY duration DESC\nLIMIT 5;" ,
"refId" : "build_srpm" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
}
] ,
"title" : "build_srpm" ,
"type" : "table"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"description" : "Top 5 build tasks with longest notarize_artifacts step" ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
} ,
"custom" : {
"align" : "left" ,
"displayMode" : "auto" ,
"inspect" : false
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green"
}
]
}
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 78
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "links" ,
"value" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"title" : "" ,
"url" : "/d/vtQClqxVk/build-task-details?orgId=1&var-build_task=${__value.raw}"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "duration"
} ,
"properties" : [
{
"id" : "unit" ,
"value" : "s"
}
]
}
]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 3 ,
"x" : 12 ,
"y" : 22
} ,
"id" : 30 ,
"options" : {
"footer" : {
"enablePagination" : false ,
"fields" : "" ,
"reducer" : [
"sum"
2023-03-10 10:24:17 +00:00
] ,
2023-03-22 10:30:12 +00:00
"show" : false
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"showHeader" : true ,
"sortBy" : [ ]
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"cacheDurationSeconds" : 300 ,
2023-03-10 10:24:17 +00:00
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
2023-03-22 10:30:12 +00:00
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT build_task_id AS \"build task\", (end_ts - start_ts) as duration\nFROM build_node_stats\nWHERE stat_name_id = 7 AND $__unixEpochFilter(start_ts)\nORDER BY duration DESC\nLIMIT 5;" ,
"refId" : "build_srpm" ,
"sql" : {
"columns" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"type" : "groupBy"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
] ,
"limit" : 50
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"urlPath" : ""
}
] ,
"title" : "notarize_artifacts" ,
"type" : "table"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"description" : "Top 5 build tasks with longest logs_processing step" ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"custom" : {
"align" : "left" ,
"displayMode" : "auto" ,
"inspect" : false
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
}
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "custom.width" ,
"value" : 78
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "links" ,
"value" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"title" : "" ,
"url" : "/d/vtQClqxVk/build-task-details?orgId=1&var-build_task=${__value.raw}"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "duration"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "unit" ,
"value" : "s"
}
]
}
]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 3 ,
"x" : 15 ,
"y" : 22
} ,
"id" : 32 ,
"options" : {
"footer" : {
"enablePagination" : false ,
"fields" : "" ,
"reducer" : [
"sum"
] ,
"show" : false
} ,
"showHeader" : true ,
"sortBy" : [ ]
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"fields" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT build_task_id AS \"build task\", (end_ts - start_ts) as duration\nFROM web_node_stats\nWHERE stat_name_id = 1 AND $__unixEpochFilter(start_ts)\nORDER BY duration DESC\nLIMIT 5;" ,
"refId" : "build_srpm" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
] ,
"limit" : 50
} ,
"urlPath" : ""
}
] ,
"title" : "logs_processing" ,
"type" : "table"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"description" : "Top 5 build tasks with longest packages_processing step" ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
} ,
"custom" : {
"align" : "left" ,
"displayMode" : "auto" ,
"inspect" : false
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
}
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "custom.width" ,
"value" : 78
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "links" ,
"value" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"title" : "" ,
"url" : "/d/vtQClqxVk/build-task-details?orgId=1&var-build_task=${__value.raw}"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "duration"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "unit" ,
"value" : "s"
}
]
}
]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 3 ,
"x" : 18 ,
"y" : 22
} ,
"id" : 34 ,
"options" : {
"footer" : {
"enablePagination" : false ,
"fields" : "" ,
"reducer" : [
"sum"
2023-03-10 10:24:17 +00:00
] ,
2023-03-22 10:30:12 +00:00
"show" : false
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"showHeader" : true ,
"sortBy" : [ ]
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"cacheDurationSeconds" : 300 ,
2023-03-10 10:24:17 +00:00
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
2023-03-22 10:30:12 +00:00
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT build_task_id AS \"build task\", (end_ts - start_ts) as duration\nFROM web_node_stats\nWHERE stat_name_id = 2 AND $__unixEpochFilter(start_ts)\nORDER BY duration DESC\nLIMIT 5;" ,
"refId" : "build_srpm" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
}
] ,
"title" : "packages_processing" ,
"type" : "table"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"description" : "Top 5 build_tasks with longest upload" ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
} ,
"custom" : {
"align" : "left" ,
"displayMode" : "auto" ,
"inspect" : false
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
}
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"id" : "custom.width" ,
"value" : 79
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
} ,
"properties" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"id" : "links" ,
"value" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"title" : "" ,
"url" : "/d/vtQClqxVk/build-task-details?orgId=1&var-build_task=${__value.raw}"
2023-03-10 10:24:17 +00:00
}
]
}
]
} ,
2023-03-22 10:30:12 +00:00
{
"matcher" : {
"id" : "byName" ,
"options" : "duration"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "unit" ,
"value" : "s"
}
]
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
{
"matcher" : {
"id" : "byName" ,
"options" : "build task"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 88
}
]
}
]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 3 ,
"x" : 21 ,
"y" : 22
} ,
"id" : 35 ,
"options" : {
"footer" : {
"enablePagination" : false ,
"fields" : "" ,
"reducer" : [
"sum"
2023-03-10 10:24:17 +00:00
] ,
2023-03-22 10:30:12 +00:00
"show" : false
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"showHeader" : true ,
"sortBy" : [ ]
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"cacheDurationSeconds" : 300 ,
2023-03-10 10:24:17 +00:00
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
2023-03-22 10:30:12 +00:00
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT build_task_id AS \"build task\" , (end_ts - start_ts) as duration\nFROM build_node_stats\nWHERE stat_name_id = 0 AND $__unixEpochFilter(start_ts)\nORDER BY duration DESC\nLIMIT 5;" ,
"refId" : "build_srpm" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
}
] ,
"title" : "upload" ,
"type" : "table"
} ,
{
"collapsed" : false ,
"gridPos" : {
"h" : 1 ,
"w" : 24 ,
"x" : 0 ,
"y" : 29
} ,
"id" : 49 ,
"panels" : [ ] ,
"title" : "Tests" ,
"type" : "row"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"description" : "" ,
"fieldConfig" : {
"defaults" : {
"color" : {
"fixedColor" : "blue" ,
"mode" : "palette-classic"
} ,
"custom" : {
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
}
} ,
"mappings" : [ ]
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 6 ,
"w" : 13 ,
"x" : 0 ,
"y" : 30
} ,
"id" : 45 ,
"options" : {
"legend" : {
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
"values" : [
"value"
]
} ,
"pieType" : "pie" ,
"reduceOptions" : {
"calcs" : [
"lastNotNull"
] ,
"fields" : "" ,
"values" : false
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"rawQuery" : true ,
"rawSql" : "SELECT \n COUNT(tt.id),\n enum.value AS status\nFROM test_tasks AS tt\nINNER JOIN test_tasks_status_enum AS enum\nON tt.status_id = enum.id\nWHERE $__unixEpochFilter(started_at)\nGROUP BY (status);\n" ,
"refId" : "A" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
] ,
"groupBy" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"property" : {
"type" : "string"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"type" : "groupBy"
}
] ,
"limit" : 50
}
}
] ,
"title" : "Tests count (group by status)" ,
"transformations" : [
{
"id" : "rowsToFields" ,
"options" : { }
}
] ,
"type" : "piechart"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"fixedColor" : "blue" ,
"mode" : "fixed"
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"color" : "green"
2023-03-10 10:24:17 +00:00
} ,
{
2023-03-22 10:30:12 +00:00
"color" : "red" ,
"value" : 80
2023-03-10 10:24:17 +00:00
}
]
} ,
2023-03-22 10:30:12 +00:00
"unit" : "s"
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 6 ,
"w" : 11 ,
"x" : 13 ,
"y" : 30
} ,
"id" : 56 ,
"options" : {
"colorMode" : "value" ,
"graphMode" : "area" ,
"justifyMode" : "auto" ,
"orientation" : "auto" ,
"reduceOptions" : {
"calcs" : [
"lastNotNull"
2023-03-10 10:24:17 +00:00
] ,
2023-03-22 10:30:12 +00:00
"fields" : "" ,
"values" : false
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"textMode" : "auto"
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"cacheDurationSeconds" : 300 ,
2023-03-10 10:24:17 +00:00
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
2023-03-22 10:30:12 +00:00
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT \n MAX(t.duration) AS \"MAX\",\n MIN(t.duration) AS \"MIN\",\n AVG(t.duration) AS \"AVERAGE\",\n PERCENTILE_CONT(0.5) WITHIN GROUP(ORDER BY t.duration) as \"MEDIAN\",\n PERCENTILE_CONT(0.95) WITHIN GROUP(ORDER BY t.duration) as \"95TH PERCENTILE\"\nFROM\n (SELECT \n tt.started_at * 1000 AS \"started at\",\n tf.finished_at * 1000 AS \"finished at\", \n tf.finished_at - tt.started_at AS duration\n FROM test_tasks AS tt\n INNER JOIN test_steps_stats AS tss\n ON tt.id = tss.test_task_id\n INNER JOIN test_tasks_status_enum AS enum\n ON tt.status_id = enum.id\n INNER JOIN \n (SELECT \n tss.test_task_id, \n MAX(tss.finish_ts) AS finished_at \n FROM test_steps_stats AS tss\n INNER JOIN test_tasks AS tt\n ON tss.test_task_id = tt.id\n WHERE $__unixEpochFilter(tt.started_at)\n GROUP BY tss.test_task_id) AS tf\n ON tf.test_task_id = tt.id\n WHERE $__unixEpochFilter(tt.started_at)\n ) AS t;" ,
"refId" : "A" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
] ,
"groupBy" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"property" : {
"type" : "string"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
}
] ,
"title" : "Tests duration" ,
"type" : "stat"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"fixedColor" : "blue" ,
"mode" : "fixed"
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green"
2023-03-10 10:24:17 +00:00
} ,
{
2023-03-22 10:30:12 +00:00
"color" : "red" ,
"value" : 80
}
]
} ,
"unit" : "s"
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 6 ,
"w" : 24 ,
"x" : 0 ,
"y" : 36
} ,
"id" : 58 ,
"options" : {
"displayMode" : "basic" ,
"minVizHeight" : 10 ,
"minVizWidth" : 0 ,
"orientation" : "vertical" ,
"reduceOptions" : {
"calcs" : [
"lastNotNull"
] ,
"fields" : "" ,
"values" : false
} ,
"showUnfilled" : false
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT \n enum.value AS \"step name\",\n SUM(tss.finish_ts - tss.start_ts) AS duration\nFROM test_tasks AS tt\nINNER JOIN test_steps_stats AS tss\n ON tt.id = tss.test_task_id\nINNER JOIN test_steps_enum AS enum\n ON tss.stat_name_id = enum.id\nWHERE $__unixEpochFilter(tt.started_at)\nGROUP BY (enum.value); " ,
"refId" : "A" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"property" : {
"type" : "string"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"type" : "groupBy"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
] ,
"limit" : 50
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"urlPath" : ""
}
] ,
"title" : "Test duration (group by test step)" ,
"transformations" : [
{
"id" : "rowsToFields" ,
"options" : { }
}
] ,
"type" : "bargauge"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"custom" : {
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
} ,
"mappings" : [ ] ,
"unit" : "s"
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 8 ,
"x" : 0 ,
"y" : 42
} ,
"id" : 59 ,
"options" : {
"legend" : {
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
"values" : [
"value"
]
} ,
"pieType" : "donut" ,
"reduceOptions" : {
"calcs" : [
"lastNotNull"
2023-03-10 10:24:17 +00:00
] ,
2023-03-22 10:30:12 +00:00
"fields" : "" ,
"values" : false
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
2023-03-10 10:24:17 +00:00
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
2023-03-22 10:30:12 +00:00
"editorMode" : "code" ,
"format" : "table" ,
"rawQuery" : true ,
"rawSql" : "SELECT \n aenum.value AS arch,\n SUM(tss.finish_ts - tss.start_ts) AS duration\nFROM test_tasks AS tt\nINNER JOIN test_steps_stats AS tss\n ON tt.id = tss.test_task_id\nINNER JOIN build_tasks as bt\n ON tt.build_task_id = bt.id\nINNER JOIN arch_enum as aenum\n ON bt.arch_id = aenum.id\nWHERE $__unixEpochFilter(tt.started_at)\nGROUP BY (aenum.value); \n" ,
"refId" : "A" ,
"sql" : {
"columns" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"property" : {
"type" : "string"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"type" : "groupBy"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
] ,
"limit" : 50
}
}
] ,
"title" : "Tests duration (group by arch)" ,
"transformations" : [
{
"id" : "rowsToFields" ,
2023-03-10 10:24:17 +00:00
"options" : {
2023-03-22 10:30:12 +00:00
"mappings" : [ ]
}
}
] ,
"type" : "piechart"
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "palette-classic"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"custom" : {
"hideFrom" : {
"legend" : false ,
"tooltip" : false ,
"viz" : false
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
} ,
"mappings" : [ ] ,
"unit" : "s"
} ,
"overrides" : [ ]
} ,
"gridPos" : {
"h" : 7 ,
"w" : 16 ,
"x" : 8 ,
"y" : 42
} ,
"id" : 47 ,
"options" : {
"legend" : {
"displayMode" : "table" ,
"placement" : "right" ,
"showLegend" : true ,
"values" : [
"value"
]
} ,
"pieType" : "donut" ,
"reduceOptions" : {
"calcs" : [
"lastNotNull"
2023-03-10 10:24:17 +00:00
] ,
2023-03-22 10:30:12 +00:00
"fields" : "" ,
"values" : false
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"rawQuery" : true ,
"rawSql" : "SELECT \n tt.package_fullname AS \"package name\",\n SUM(tss.finish_ts - tss.start_ts) AS duration\nFROM test_tasks AS tt\nINNER JOIN test_steps_stats AS tss\n ON tt.id = tss.test_task_id\nWHERE $__unixEpochFilter(started_at)\nGROUP BY (tt.package_fullname); " ,
"refId" : "A" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
}
] ,
"title" : "Tests duration (group by package)" ,
"transformations" : [
{
"id" : "rowsToFields" ,
"options" : {
"mappings" : [ ]
}
}
] ,
"type" : "piechart"
} ,
{
"collapsed" : true ,
"gridPos" : {
"h" : 1 ,
"w" : 24 ,
"x" : 0 ,
"y" : 49
} ,
"id" : 24 ,
"panels" : [
2023-03-10 10:24:17 +00:00
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
2023-03-22 10:30:12 +00:00
"description" : "" ,
2023-03-10 10:24:17 +00:00
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
} ,
"custom" : {
2023-03-22 10:30:12 +00:00
"align" : "center" ,
2023-03-10 10:24:17 +00:00
"displayMode" : "auto" ,
2023-03-22 10:30:12 +00:00
"filterable" : true ,
2023-03-10 10:24:17 +00:00
"inspect" : false
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green"
2023-03-22 10:30:12 +00:00
} ,
{
"color" : "red" ,
"value" : 80
2023-03-10 10:24:17 +00:00
}
]
}
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
2023-03-22 10:30:12 +00:00
"options" : "duration"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
{
2023-03-22 10:30:12 +00:00
"id" : "unit" ,
"value" : "s"
2023-03-10 10:24:17 +00:00
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2023-03-22 10:30:12 +00:00
"options" : "url"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
{
2023-03-22 10:30:12 +00:00
"id" : "custom.width" ,
"value" : 287
2023-03-10 10:24:17 +00:00
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2023-03-22 10:30:12 +00:00
"options" : "id"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
{
"id" : "custom.width" ,
2023-03-22 10:30:12 +00:00
"value" : 107
2023-03-10 10:24:17 +00:00
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2023-03-22 10:30:12 +00:00
"options" : "id"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
{
"id" : "links" ,
"value" : [
{
"title" : "" ,
2023-03-22 10:30:12 +00:00
"url" : "/d/dmVtrz-4k/build-details?orgId=1&var-build_id=${__value.raw}"
2023-03-10 10:24:17 +00:00
}
]
}
]
}
]
} ,
"gridPos" : {
2023-03-22 10:30:12 +00:00
"h" : 15 ,
"w" : 24 ,
"x" : 0 ,
"y" : 62
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"id" : 2 ,
2023-03-10 10:24:17 +00:00
"options" : {
"footer" : {
"fields" : "" ,
"reducer" : [
"sum"
] ,
"show" : false
} ,
"showHeader" : true ,
2023-03-22 10:30:12 +00:00
"sortBy" : [
{
"desc" : true ,
"displayName" : "duration"
}
]
2023-03-10 10:24:17 +00:00
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
2023-03-22 10:30:12 +00:00
"hide" : false ,
2023-03-10 10:24:17 +00:00
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
2023-03-22 10:30:12 +00:00
"rawSql" : "SELECT \n b.id, \n b.url, \n b.created_at * 1000 as created,\n b.finished_at * 1000 as finished,\n (SELECT COUNT(id) FROM build_tasks AS bt WHERE bt.build_id = b.id) AS task_count,\n b.finished_at - b.created_at as duration\nFROM builds as b \nWHERE $__unixEpochFilter(created_at) AND b.finished_at IS NOT NULL" ,
"refId" : "A" ,
2023-03-10 10:24:17 +00:00
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
}
] ,
2023-03-22 10:30:12 +00:00
"title" : "Finished builds" ,
"transformations" : [
{
"id" : "convertFieldType" ,
"options" : {
"conversions" : [
{
"destinationType" : "time" ,
"targetField" : "created"
} ,
{
"destinationType" : "time" ,
"targetField" : "finished"
}
] ,
"fields" : { }
}
}
] ,
2023-03-10 10:24:17 +00:00
"type" : "table"
2023-03-22 10:30:12 +00:00
}
] ,
"title" : "Details: builds" ,
"type" : "row"
} ,
{
"collapsed" : true ,
"gridPos" : {
"h" : 1 ,
"w" : 24 ,
"x" : 0 ,
"y" : 50
} ,
"id" : 39 ,
"panels" : [
2023-03-10 10:24:17 +00:00
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
2023-03-22 10:30:12 +00:00
"description" : "" ,
2023-03-10 10:24:17 +00:00
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
} ,
"custom" : {
"align" : "left" ,
"displayMode" : "auto" ,
2023-03-22 10:30:12 +00:00
"filterable" : true ,
2023-03-10 10:24:17 +00:00
"inspect" : false
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green"
2023-03-22 10:30:12 +00:00
} ,
{
"color" : "red" ,
"value" : 80
2023-03-10 10:24:17 +00:00
}
]
}
} ,
"overrides" : [
{
"matcher" : {
"id" : "byName" ,
2023-03-22 10:30:12 +00:00
"options" : "task_duration"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
2023-03-22 10:30:12 +00:00
{
"id" : "unit" ,
"value" : "s"
} ,
2023-03-10 10:24:17 +00:00
{
"id" : "custom.width" ,
2023-03-22 10:30:12 +00:00
"value" : 124
2023-03-10 10:24:17 +00:00
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2023-03-22 10:30:12 +00:00
"options" : "id"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
{
"id" : "links" ,
"value" : [
{
"title" : "" ,
2023-03-22 10:30:12 +00:00
"url" : "/d/vtQClqxVk/build-task-details?orgId=1&var-build_task=${__value.raw}\n\n"
2023-03-10 10:24:17 +00:00
}
]
2023-03-22 10:30:12 +00:00
} ,
{
"id" : "custom.width" ,
"value" : 81
2023-03-10 10:24:17 +00:00
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2023-03-22 10:30:12 +00:00
"options" : "build_id"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
{
2023-03-22 10:30:12 +00:00
"id" : "custom.width" ,
"value" : 88
2023-03-10 10:24:17 +00:00
}
]
} ,
2023-03-22 10:30:12 +00:00
{
"matcher" : {
"id" : "byName" ,
"options" : "name"
} ,
"properties" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"id" : "custom.width" ,
"value" : 274
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
} ,
{
"matcher" : {
"id" : "byRegexp" ,
"options" : ".*duration"
} ,
"properties" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"id" : "unit" ,
"value" : "s"
2023-03-10 10:24:17 +00:00
}
2023-03-22 10:30:12 +00:00
]
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
{
"matcher" : {
"id" : "byName" ,
"options" : "build id"
} ,
"properties" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"id" : "custom.width" ,
"value" : 89
} ,
{
"id" : "links" ,
"value" : [
{
"title" : "" ,
"url" : "/d/dmVtrz-4k/build-details?orgId=1&var-build_id=${__value.raw}\n\n"
}
]
2023-03-10 10:24:17 +00:00
}
]
2023-03-22 10:30:12 +00:00
} ,
2023-03-10 10:24:17 +00:00
{
"matcher" : {
"id" : "byName" ,
2023-03-22 10:30:12 +00:00
"options" : "arch"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
{
"id" : "custom.width" ,
2023-03-22 10:30:12 +00:00
"value" : 104
2023-03-10 10:24:17 +00:00
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2023-03-22 10:30:12 +00:00
"options" : "finished"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
{
2023-03-22 10:30:12 +00:00
"id" : "custom.width" ,
"value" : 220
2023-03-10 10:24:17 +00:00
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2023-03-22 10:30:12 +00:00
"options" : "started"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
{
2023-03-22 10:30:12 +00:00
"id" : "custom.width" ,
"value" : 197
2023-03-10 10:24:17 +00:00
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2023-03-22 10:30:12 +00:00
"options" : "status"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
{
"id" : "custom.width" ,
2023-03-22 10:30:12 +00:00
"value" : 152
2023-03-10 10:24:17 +00:00
}
]
}
]
} ,
"gridPos" : {
2023-03-22 10:30:12 +00:00
"h" : 9 ,
"w" : 24 ,
"x" : 0 ,
"y" : 61
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"id" : 37 ,
2023-03-10 10:24:17 +00:00
"options" : {
"footer" : {
"fields" : "" ,
"reducer" : [
"sum"
] ,
"show" : false
} ,
"showHeader" : true ,
2023-03-22 10:30:12 +00:00
"sortBy" : [
{
"desc" : true ,
"displayName" : "task_duration"
}
]
2023-03-10 10:24:17 +00:00
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
2023-03-22 10:30:12 +00:00
"hide" : false ,
2023-03-10 10:24:17 +00:00
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
2023-03-22 10:30:12 +00:00
"rawSql" : " SELECT\n bt.id,\n bt.build_id AS \"build id\",\n bt.name,\n arch_enum.value AS arch,\n status_enum.value AS status,\n bt.started_at * 1000 AS started,\n bt.finished_at * 1000 AS finished,\n bt.finished_at - bt.started_at AS task_duration\n FROM build_tasks AS bt\n JOIN build_task_status_enum AS status_enum ON bt.status_id = status_enum.id\n JOIN arch_enum on bt.arch_id = arch_enum.id \n WHERE $__unixEpochFilter(started_at)" ,
"refId" : "A" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
} ,
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"format" : "table" ,
"hide" : true ,
"rawQuery" : true ,
"rawSql" : "SELECT\n bt.id, \n bt.build_id,\n SUM(bt.finished_at - bt.started_at) AS task_duration,\n (SELECT SUM(end_ts - start_ts) \n FROM web_node_stats AS ws \n WHERE ws.build_task_id = bt.id AND stat_name_id=0) AS web_node_duration,\n (SELECT SUM(end_ts - start_ts) \n FROM build_node_stats AS bs \n WHERE bs.build_task_id = bt.id AND stat_name_id=6) AS build_node_duration\nFROM build_tasks AS bt\nWHERE $__unixEpochFilter(started_at) \nGROUP BY bt.id;" ,
"refId" : "B" ,
2023-03-10 10:24:17 +00:00
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
2023-03-22 10:30:12 +00:00
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
}
}
] ,
"title" : "All build tasks" ,
"transformations" : [
{
"id" : "convertFieldType" ,
"options" : {
"conversions" : [
{
"destinationType" : "time" ,
"targetField" : "started"
} ,
{
"destinationType" : "time" ,
"targetField" : "finished"
2023-03-10 10:24:17 +00:00
}
] ,
2023-03-22 10:30:12 +00:00
"fields" : { }
}
} ,
{
"id" : "joinByField" ,
"options" : {
"byField" : "id" ,
"mode" : "outer"
}
2023-03-10 10:24:17 +00:00
}
] ,
"type" : "table"
2023-03-22 10:30:12 +00:00
} ,
2023-03-10 10:24:17 +00:00
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
} ,
"custom" : {
2023-03-22 10:30:12 +00:00
"align" : "left" ,
2023-03-10 10:24:17 +00:00
"displayMode" : "auto" ,
"filterable" : true ,
"inspect" : false
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
2023-03-22 10:30:12 +00:00
"color" : "green"
2023-03-10 10:24:17 +00:00
} ,
{
"color" : "red" ,
"value" : 80
}
]
}
} ,
"overrides" : [
{
"matcher" : {
2023-03-22 10:30:12 +00:00
"id" : "byRegexp" ,
"options" : "(.*duration)|(wait time)"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
{
"id" : "unit" ,
"value" : "s"
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2023-03-22 10:30:12 +00:00
"options" : "id"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
{
"id" : "custom.width" ,
2023-03-22 10:30:12 +00:00
"value" : 70
} ,
{
"id" : "links" ,
"value" : [
{
"title" : "" ,
"url" : "/d/vtQClqxVk/build-task-details?orgId=1&var-build_task=${__value.raw}\n\n"
}
]
2023-03-10 10:24:17 +00:00
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2023-03-22 10:30:12 +00:00
"options" : "arch"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
{
"id" : "custom.width" ,
2023-03-22 10:30:12 +00:00
"value" : 111
2023-03-10 10:24:17 +00:00
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
2023-03-22 10:30:12 +00:00
"options" : "build id"
2023-03-10 10:24:17 +00:00
} ,
"properties" : [
{
"id" : "links" ,
"value" : [
{
"title" : "" ,
2023-03-22 10:30:12 +00:00
"url" : "/d/dmVtrz-4k/build-details?orgId=1&var-build_id=${__value.raw}\n\n\n"
2023-03-10 10:24:17 +00:00
}
]
2023-03-22 10:30:12 +00:00
} ,
{
"id" : "custom.width" ,
"value" : 80
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "name"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 294
}
]
} ,
{
"matcher" : {
"id" : "byName" ,
"options" : "task duration"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 100
2023-03-10 10:24:17 +00:00
}
]
}
]
} ,
"gridPos" : {
2023-03-22 10:30:12 +00:00
"h" : 10 ,
2023-03-10 10:24:17 +00:00
"w" : 24 ,
"x" : 0 ,
2023-03-22 10:30:12 +00:00
"y" : 70
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"id" : 43 ,
2023-03-10 10:24:17 +00:00
"options" : {
"footer" : {
"fields" : "" ,
"reducer" : [
"sum"
] ,
"show" : false
} ,
"showHeader" : true ,
"sortBy" : [
{
"desc" : true ,
2023-03-22 10:30:12 +00:00
"displayName" : "task duration"
2023-03-10 10:24:17 +00:00
}
]
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
2023-03-22 10:30:12 +00:00
"rawSql" : "SELECT\n bt.id,\n bt.build_id AS \"build id\",\n bt.name,\n arch_enum.value AS arch,\n bt.started_at * 1000 AS started,\n bt.finished_at * 1000 AS finished,\n task_duration AS \"task duration\",\n web_node_duration AS \"web node duration\",\n build_node_duration AS \"build node duration\",\n task_duration - web_node_duration - build_node_duration as \"wait time\"\n FROM build_tasks AS bt\n JOIN arch_enum on bt.arch_id = arch_enum.id \n LEFT JOIN \n (\n SELECT\n bt.id,\n bt.finished_at - bt.started_at AS task_duration,\n (SELECT SUM(end_ts - start_ts) \n FROM web_node_stats AS ws \n WHERE ws.build_task_id = bt.id AND stat_name_id=0) AS web_node_duration,\n (SELECT SUM(end_ts - start_ts) \n FROM build_node_stats AS bs \n WHERE bs.build_task_id = bt.id AND stat_name_id=6) AS build_node_duration\n FROM build_tasks AS bt\n WHERE $__unixEpochFilter(started_at) AND status_id = 2\n GROUP BY bt.id\n ) as d\n ON bt.id = d.id\n WHERE $__unixEpochFilter(started_at) AND status_id = 2" ,
2023-03-10 10:24:17 +00:00
"refId" : "A" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
}
] ,
2023-03-22 10:30:12 +00:00
"title" : "Completed build tasks" ,
2023-03-10 10:24:17 +00:00
"transformations" : [
{
"id" : "convertFieldType" ,
"options" : {
"conversions" : [
{
"destinationType" : "time" ,
2023-03-22 10:30:12 +00:00
"targetField" : "started"
2023-03-10 10:24:17 +00:00
} ,
{
"destinationType" : "time" ,
"targetField" : "finished"
}
] ,
"fields" : { }
}
}
] ,
"type" : "table"
}
] ,
2023-03-22 10:30:12 +00:00
"title" : "Details: build tasks" ,
"type" : "row"
} ,
{
"collapsed" : true ,
2023-03-20 18:29:45 +00:00
"gridPos" : {
2023-03-22 10:30:12 +00:00
"h" : 1 ,
2023-03-20 18:29:45 +00:00
"w" : 24 ,
"x" : 0 ,
2023-03-22 10:30:12 +00:00
"y" : 51
2023-03-20 18:29:45 +00:00
} ,
2023-03-22 10:30:12 +00:00
"id" : 53 ,
"panels" : [
2023-03-20 18:29:45 +00:00
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
2023-03-22 10:30:12 +00:00
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
} ,
"custom" : {
"align" : "left" ,
"displayMode" : "auto" ,
"filterable" : true ,
"inspect" : false
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
{
"color" : "green"
} ,
{
"color" : "red" ,
"value" : 80
}
]
2023-03-20 18:29:45 +00:00
}
2023-03-22 10:30:12 +00:00
} ,
"overrides" : [
2023-03-20 18:29:45 +00:00
{
2023-03-22 10:30:12 +00:00
"matcher" : {
"id" : "byName" ,
"options" : "duration"
2023-03-20 18:29:45 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "unit" ,
"value" : "s"
}
]
} ,
2023-03-20 18:29:45 +00:00
{
2023-03-22 10:30:12 +00:00
"matcher" : {
"id" : "byName" ,
"options" : "package"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 322
}
]
} ,
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"matcher" : {
"id" : "byName" ,
"options" : "id"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"properties" : [
{
"id" : "custom.width" ,
"value" : 93
} ,
{
"id" : "links" ,
"value" : [
{
"title" : "" ,
"url" : "/d/8nFXlkB4z/test-task-details?orgId=1&var-id=${__value.raw}"
}
]
}
]
} ,
2023-03-20 18:29:45 +00:00
{
2023-03-22 10:30:12 +00:00
"matcher" : {
"id" : "byName" ,
"options" : "revision"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 62
}
]
2023-03-10 10:24:17 +00:00
} ,
{
2023-03-22 10:30:12 +00:00
"matcher" : {
"id" : "byName" ,
"options" : "build task id"
} ,
"properties" : [
{
"id" : "links" ,
"value" : [
{
"title" : "" ,
"url" : "/d/vtQClqxVk/build-task-details?orgId=1&var-build_task=${__value.raw}"
}
]
}
]
2023-03-20 18:29:45 +00:00
}
2023-03-22 10:30:12 +00:00
]
2023-03-20 18:29:45 +00:00
} ,
2023-03-22 10:30:12 +00:00
"gridPos" : {
"h" : 7 ,
"w" : 24 ,
"x" : 0 ,
"y" : 62
2023-03-20 18:29:45 +00:00
} ,
2023-03-22 10:30:12 +00:00
"id" : 54 ,
"options" : {
"footer" : {
"fields" : "" ,
"reducer" : [
"sum"
] ,
"show" : false
} ,
"showHeader" : true ,
"sortBy" : [
2023-03-20 18:29:45 +00:00
{
2023-03-22 10:30:12 +00:00
"desc" : false ,
"displayName" : "duration"
}
]
} ,
"pluginVersion" : "9.3.2" ,
"targets" : [
{
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT \n DISTINCT tt.id,\n tt.build_task_id as \"build task id\",\n tt.package_fullname AS package,\n tt.revision,\n enum.value AS \"status\",\n tt.started_at * 1000 AS \"started at\",\n tf.finished_at * 1000 AS \"finished at\", \n tf.finished_at - tt.started_at AS duration\nFROM test_tasks AS tt\nINNER JOIN test_steps_stats AS tss\n ON tt.id = tss.test_task_id\nINNER JOIN test_tasks_status_enum AS enum\n ON tt.status_id = enum.id\nINNER JOIN \n (SELECT \n tss.test_task_id, \n MAX(tss.finish_ts) AS finished_at \n FROM test_steps_stats AS tss\n INNER JOIN test_tasks AS tt\n ON tss.test_task_id = tt.id\n WHERE $__unixEpochFilter(tt.started_at)\n GROUP BY tss.test_task_id) AS tf\n ON tf.test_task_id = tt.id\nWHERE $__unixEpochFilter(tt.started_at);\n" ,
"refId" : "A" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
}
] ,
"title" : "Test tasks" ,
"transformations" : [
{
"id" : "convertFieldType" ,
"options" : {
"conversions" : [
{
"destinationType" : "time" ,
"targetField" : "started at"
} ,
{
"destinationType" : "time" ,
"targetField" : "finished at"
}
] ,
"fields" : { }
2023-03-20 18:29:45 +00:00
}
2023-03-22 10:30:12 +00:00
}
] ,
"type" : "table"
2023-03-20 18:29:45 +00:00
} ,
2023-03-22 10:30:12 +00:00
{
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
2023-03-20 18:29:45 +00:00
} ,
2023-03-22 10:30:12 +00:00
"fieldConfig" : {
"defaults" : {
"color" : {
"mode" : "thresholds"
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"custom" : {
"align" : "left" ,
"displayMode" : "auto" ,
"filterable" : true ,
"inspect" : false
} ,
"mappings" : [ ] ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"color" : "green"
} ,
{
"color" : "red" ,
"value" : 80
2023-03-10 10:24:17 +00:00
}
]
2023-03-20 18:29:45 +00:00
}
} ,
2023-03-22 10:30:12 +00:00
"overrides" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"matcher" : {
"id" : "byName" ,
"options" : "test task id"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 159
} ,
{
"id" : "links" ,
"value" : [
{
"title" : "" ,
"url" : "/d/8nFXlkB4z/test-task-details?orgId=1&var-id=${__value.raw}"
}
]
}
]
} ,
2023-03-20 18:29:45 +00:00
{
2023-03-22 10:30:12 +00:00
"matcher" : {
"id" : "byName" ,
"options" : "duration"
} ,
"properties" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"id" : "unit" ,
"value" : "s"
2023-03-10 10:24:17 +00:00
}
]
} ,
{
2023-03-22 10:30:12 +00:00
"matcher" : {
"id" : "byName" ,
"options" : "package name"
} ,
"properties" : [
{
"id" : "custom.width" ,
"value" : 408
}
]
2023-03-10 10:24:17 +00:00
}
]
} ,
2023-03-22 10:30:12 +00:00
"gridPos" : {
"h" : 6 ,
"w" : 24 ,
"x" : 0 ,
"y" : 69
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"id" : 61 ,
"options" : {
"footer" : {
"fields" : "" ,
"reducer" : [
"sum"
] ,
"show" : false
2023-03-10 10:24:17 +00:00
} ,
2023-03-22 10:30:12 +00:00
"showHeader" : true ,
"sortBy" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"desc" : true ,
"displayName" : "finished"
2023-03-10 10:24:17 +00:00
}
]
} ,
2023-03-22 10:30:12 +00:00
"pluginVersion" : "9.3.2" ,
"targets" : [
2023-03-10 10:24:17 +00:00
{
2023-03-22 10:30:12 +00:00
"cacheDurationSeconds" : 300 ,
"datasource" : {
"type" : "postgres" ,
"uid" : "${DS_POSTGRESQL}"
} ,
"editorMode" : "code" ,
"fields" : [
{
"jsonPath" : ""
}
] ,
"format" : "table" ,
"method" : "GET" ,
"queryParams" : "" ,
"rawQuery" : true ,
"rawSql" : "SELECT \n tss.test_task_id AS \"test task id\", \n tt.package_fullname AS \"package name\",\n enum.value AS \"step name\",\n tss.start_ts * 1000 AS started,\n tss.finish_ts * 1000 AS finished,\n tss.finish_ts - tss.start_ts AS duration\nFROM test_tasks AS tt\nINNER JOIN test_steps_stats AS tss\n ON tt.id = tss.test_task_id\nINNER JOIN test_steps_enum AS enum\n ON tss.stat_name_id = enum.id\nWHERE $__unixEpochFilter(tt.started_at);\n" ,
"refId" : "A" ,
"sql" : {
"columns" : [
{
"parameters" : [ ] ,
"type" : "function"
}
] ,
"groupBy" : [
{
"property" : {
"type" : "string"
} ,
"type" : "groupBy"
}
] ,
"limit" : 50
} ,
"urlPath" : ""
2023-03-10 10:24:17 +00:00
}
] ,
2023-03-22 10:30:12 +00:00
"title" : "Test steps" ,
"transformations" : [
{
"id" : "convertFieldType" ,
"options" : {
"conversions" : [
{
"destinationType" : "time" ,
"targetField" : "started"
} ,
{
"destinationType" : "time" ,
"targetField" : "finished"
}
] ,
"fields" : { }
2023-03-20 18:29:45 +00:00
}
2023-03-22 10:30:12 +00:00
}
] ,
"type" : "table"
2023-03-20 18:29:45 +00:00
}
] ,
2023-03-22 10:30:12 +00:00
"title" : "Details: tests" ,
"type" : "row"
2023-03-06 18:21:56 +00:00
}
] ,
2023-03-10 10:24:17 +00:00
"refresh" : false ,
2023-03-06 18:21:56 +00:00
"schemaVersion" : 37 ,
"style" : "dark" ,
"tags" : [ ] ,
"templating" : {
"list" : [ ]
} ,
"time" : {
"from" : "now-2d" ,
"to" : "now"
} ,
"timepicker" : { } ,
"timezone" : "" ,
"title" : "Build analytics" ,
"uid" : "02mg4oxVk" ,
2023-03-22 10:30:12 +00:00
"version" : 84 ,
2023-03-06 18:21:56 +00:00
"weekStart" : ""
}