Commit 44c7c415 authored by Tobias Winchen's avatar Tobias Winchen
Browse files

Update home dashboard

parent 42a0f330
......@@ -8,6 +8,12 @@
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
......@@ -15,123 +21,362 @@
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 9,
"id": 3064,
"links": [],
"panels": [
{
"datasource": null,
"datasource": "Redis_Plots",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {}
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "empty",
"result": {
"color": "dark-purple",
"index": 0,
"text": "Unprovisioned"
}
},
"type": "special"
}
],
"noValue": "Unprovisioned",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-blue",
"value": null
}
]
}
},
"overrides": []
},
"folderId": null,
"gridPos": {
"h": 16,
"h": 3,
"w": 12,
"x": 0,
"y": 0
},
"id": 2093487693494,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/^value$/",
"values": false
},
"textMode": "value"
},
"pluginVersion": "8.1.2",
"targets": [
{
"command": "hget",
"field": "value",
"keyName": "MASTER_CONTROLLER:provision",
"query": "",
"refId": "A",
"type": "command"
}
],
"title": "Current Provision",
"type": "stat"
},
{
"aliasColors": {},
"cacheTimeout": null,
"css_data": "",
"datasource": "Redis_Plots",
"doInit": {},
"format": "short",
"gridPos": {
"h": 17,
"w": 8,
"x": 4,
"y": 3
},
"handleMetric": {},
"html_data": "<div class=\"graph\" timestamp=0 style=\"text-align:center;\">\nNo graph provided\n</div>",
"id": 2093487693488,
"interval": null,
"js_code": "var svg = ctrl.data[0].rows[0].value;\nvar old_timestamp = ctrl.data[0].rows[0].timestamp;\nvar summary = JSON.parse(ctrl.data[1].rows[0].value);\nconsole.log(summary);\nconsole.log(\"FOO\");\n\nvar graph = htmlnode.lastChild;\n\ntimestamp = graph.getAttribute(\"timestamp\");\n//if (timestamp < old_timestamp)\n{\n console.log(\"Updating timestamp\");\n graph.setAttribute(\"timestamp\", old_timestamp);\n\n graph.innerHTML = svg;\n \n //var parser = new DOMParser();\n //var doc = parser.parseFromString(svg, \"image/svg+xml\");\n //console.log(doc);\n //graph.appendChild(doc);\n \n \n}\n\n\nvar svg_graph = graph.children[0].children[0];\nfor (var el of svg_graph.children)\n{\n if (el.hasAttribute(\"class\") && el.getAttribute(\"class\") == \"node\" )\n {\n var product_name = el.children[0].innerHTML;\n if (summary[product_name] == \"error\")\n {\n el.children[1].setAttribute(\"fill\", \"#aa0000\");\n el.children[2].setAttribute(\"fill\", \"#ffffff\");\n }\n else\n {\n el.children[1].setAttribute(\"fill\", \"#00aa00\");\n el.children[2].setAttribute(\"fill\", \"#000000\");\n\n }\n }\n}\n\n\n",
"js_init_code": "",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"pluginVersion": "8.1.2",
"targets": [
{
"command": "hmget",
"field": "value timestamp",
"keyName": "MASTER_CONTROLLER:configuration_graph",
"query": "",
"refId": "A",
"type": "command"
},
{
"command": "hget",
"field": "value",
"hide": false,
"keyName": "MASTER_CONTROLLER:product-status-summary",
"query": "",
"refId": "B",
"type": "command"
}
],
"title": "Current Configuration Graph",
"type": "aidanmountford-html-panel"
},
{
"datasource": null,
"folderId": null,
"gridPos": {
"h": 17,
"w": 12,
"x": 12,
"y": 0
},
"headings": false,
"id": 2,
"limit": 100,
"pluginVersion": "7.2.2",
"options": {
"folderId": null,
"maxItems": 100,
"query": "",
"showHeadings": false,
"showRecentlyViewed": false,
"showSearch": true,
"showStarred": false,
"tags": [
"provisioned"
]
},
"pluginVersion": "8.1.2",
"query": "",
"recent": false,
"search": true,
"starred": false,
"tags": ["provisioned"],
"tags": [
"provisioned"
],
"timeFrom": null,
"timeShift": null,
"title": "Provisioned EDD Components",
"type": "dashlist"
},
{
"type": "dashlist",
"title": "Computing Components",
"gridPos": {
"x": 12,
"y": 0,
"w": 12,
"h": 8
},
"id": 123125,
"targets": [
{
"refId": "A",
"policy": "default",
"resultFormat": "time_series",
"orderByTime": "ASC",
"tags": [],
"groupBy": [
{
"type": "time",
"params": [
"$__interval"
]
{
"datasource": "Redis_Plots",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
{
"type": "fill",
"params": [
"null"
"mappings": [
{
"options": {
"error": {
"color": "dark-red",
"index": 0
},
"panic": {
"color": "semi-dark-red",
"index": 1
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
],
"select": [
[
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 4,
"x": 0,
"y": 3
},
"id": 2093487693496,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "/^value$/",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "8.1.2",
"targets": [
{
"command": "hget",
"field": "value",
"keyName": "MASTER_CONTROLLER:pipeline-status",
"query": "",
"refId": "A",
"type": "command"
}
],
"title": "Current Status",
"type": "stat"
},
{
"aliasColors": {},
"cacheTimeout": null,
"css_data": "",
"datasource": "Redis_Plots",
"description": "",
"doInit": {},
"format": "short",
"gridPos": {
"h": 11,
"w": 4,
"x": 0,
"y": 6
},
"handleMetric": {},
"html_data": "<div>\n</div>",
"id": 2093487693498,
"interval": null,
"js_code": "var notes = ctrl.data[0].rows[0].value;\n\nconst arr = notes.split(\"\\\\n\");\n\nvar ul = document.createElement(\"UL\");\nfor (var el of arr)\n{\n var li = document.createElement(\"LI\");\n li.innerHTML = el.replace(\"*\", \"\").trim();\n ul.appendChild(li);\n}\nhtmlnode.innerHTML = ul.innerHTML;\n\n",
"js_init_code": "",
"links": [],
"maxDataPoints": 3,
"nullPointMode": "connected",
"targets": [
{
"command": "hget",
"field": "value",
"keyName": "MASTER_CONTROLLER:notes",
"query": "",
"refId": "A",
"type": "command"
}
],
"title": "Messages",
"type": "aidanmountford-html-panel"
},
{
"datasource": null,
"folderId": 1727,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 17
},
"headings": true,
"id": 123127,
"limit": 10,
"options": {
"folderId": 1727,
"maxItems": 10,
"query": "",
"showHeadings": true,
"showRecentlyViewed": false,
"showSearch": true,
"showStarred": false,
"tags": []
},
"pluginVersion": "8.1.2",
"query": "",
"recent": false,
"search": true,
"starred": false,
"tags": [],
"targets": [
{
"groupBy": [
{
"type": "field",
"params": [
"value"
]
"$__interval"
],
"type": "time"
},
{
"type": "mean",
"params": []
"params": [
"null"
],
"type": "fill"
}
]
]
}
],
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
],
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": []
}
],
"timeFrom": null,
"timeShift": null,
"title": "Switch Hardware",
"type": "dashlist"
},
"pluginVersion": "7.2.2",
"limit": 10,
"tags": [],
"search": true,
"headings": true,
"folderId": 131,
"timeFrom": null,
"timeShift": null,
"query": "",
"recent": false,
"starred": false,
"datasource": null
},
{
{
"datasource": null,
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"folderId": 1727,
"folderId": 131,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 1
"y": 25
},
"headings": true,
"id": 123127,
"id": 123125,
"limit": 10,
"pluginVersion": "7.3.5",
"options": {
"folderId": 131,
"maxItems": 10,
"query": "",
"showHeadings": true,
"showRecentlyViewed": false,
"showSearch": true,
"showStarred": false,
"tags": []
},
"pluginVersion": "8.1.2",
"query": "",
"recent": false,
"search": true,
......@@ -176,18 +421,19 @@
],
"timeFrom": null,
"timeShift": null,
"title": "Switch Hardware",
"title": "Computing Components",
"type": "dashlist"
}
],
"schemaVersion": 26,
"refresh": "",
"schemaVersion": 30,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"from": "now-1h",
"to": "now"
},
"timepicker": {},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment