Dashboards: User journey E2Es (#109049)

* wip

* wip

* wip

* wip

* scope e2es

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* add dashboard view tests

* mods cujs

* wip refactor

* remove timeouts

* fixes

* betterer

* fixes

* refactor

* refactor

* fix

* use type instead of any

* betterer

* PR mods + codeowners

* CODEOWNERS

* readme lint
This commit is contained in:
Victor Marin
2025-09-04 15:17:54 +03:00
committed by GitHub
parent 4d818292d8
commit 27b3137baf
20 changed files with 1884 additions and 0 deletions
@@ -0,0 +1,4 @@
{
"labels": "**/resources/**/labels*",
"values": "**/resources/**/values*"
}
@@ -0,0 +1,169 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"mode": "markdown",
"content": "GroupByVar: $groupBy\n\nAdHocVar: $adHoc\n\nTimerange: ${__url_time_range}"
},
"pluginVersion": "8.4.0-pre",
"title": "Panel Title",
"type": "text"
},
{
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 8
},
"id": 4,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": ["sum"],
"show": false
},
"showHeader": true
},
"pluginVersion": "12.2.0-pre",
"targets": [
{
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"queryType": "randomWalk",
"refId": "A"
}
],
"title": "Table panel",
"type": "table"
}
],
"schemaVersion": 41,
"tags": [],
"templating": {
"list": [
{
"baseFilters": [],
"datasource": {
"type": "prometheus",
"uid": "gdev-prometheus"
},
"filters": [
{
"condition": "",
"key": "environment",
"keyLabel": "environment",
"matchAllFilter": false,
"operator": "=",
"origin": "dashboard",
"restorable": false,
"value": "prod",
"valueLabels": ["prod"],
"values": ["prod"]
},
{
"condition": "",
"key": "container",
"keyLabel": "container",
"operator": "=",
"value": "test",
"valueLabels": ["test"]
}
],
"name": "adHoc",
"type": "adhoc"
},
{
"current": {
"text": ["job"],
"value": ["job"]
},
"datasource": {
"type": "prometheus",
"uid": "gdev-prometheus"
},
"defaultValue": {
"text": ["job"],
"value": ["job"]
},
"name": "groupBy",
"type": "groupby"
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "CUJ Dashboard 1",
"uid": "cuj-dashboard-1",
"version": 3,
"weekStart": ""
}
@@ -0,0 +1,86 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "prometheus",
"uid": "gdev-prometheus"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"mode": "markdown",
"content": "GroupByVar: $groupBy\n\nAdHocVar: $adHoc\n\nTimerange: ${__url_time_range}"
},
"pluginVersion": "8.4.0-pre",
"title": "Panel Title",
"type": "text"
}
],
"schemaVersion": 41,
"tags": [],
"templating": {
"list": [
{
"baseFilters": [],
"datasource": {
"type": "prometheus",
"uid": "gdev-prometheus"
},
"filters": [
{
"condition": "",
"key": "environment",
"keyLabel": "environment",
"operator": "=",
"value": "dev",
"valueLabels": ["dev"],
"values": ["dev"]
}
],
"name": "adHoc",
"type": "adhoc"
},
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "gdev-prometheus"
},
"name": "groupBy",
"type": "groupby"
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "CUJ Dashboard 2",
"uid": "cuj-dashboard-2",
"version": 3,
"weekStart": ""
}
@@ -0,0 +1,76 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "prometheus",
"uid": "gdev-prometheus"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"mode": "markdown",
"content": "GroupByVar: $groupBy\n\nAdHocVar: $adHoc\n\nTimerange: ${__url_time_range}"
},
"pluginVersion": "8.4.0-pre",
"title": "Panel Title",
"type": "text"
}
],
"schemaVersion": 41,
"tags": [],
"templating": {
"list": [
{
"baseFilters": [],
"datasource": {
"type": "prometheus",
"uid": "gdev-prometheus"
},
"filters": [],
"name": "adHoc",
"type": "adhoc"
},
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "gdev-prometheus"
},
"name": "groupBy",
"type": "groupby"
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "CUJ Dashboard 3",
"uid": "cuj-dashboard-3",
"version": 3,
"weekStart": ""
}