Fix data-source in dashboards.

This commit is contained in:
Mark Nellemann 2021-06-04 08:27:16 +02:00
parent 1d20a1166f
commit bb6a24698a
5 changed files with 44 additions and 60 deletions

View File

@ -7,5 +7,5 @@ trim_trailing_whitespace = true
indent_style = space
indent_size = 4
[*.yml]
[*.{yml,json}]
indent_size = 2

View File

@ -1,13 +1,5 @@
{
"__inputs": [
{
"name": "DS_HMCI",
"label": "HMCi",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
},
{
"name": "DS_INFLUXDB",
"label": "InfluxDB",
@ -87,7 +79,7 @@
"type": "row"
},
{
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
@ -262,7 +254,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"editable": true,
"error": false,
"fieldConfig": {
@ -424,7 +416,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"editable": true,
"error": false,
"fieldConfig": {
@ -586,7 +578,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"editable": true,
"error": false,
@ -808,7 +800,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"editable": true,
"error": false,
@ -1045,7 +1037,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"editable": true,
"error": false,
@ -1211,7 +1203,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"editable": true,
"error": false,
@ -1392,7 +1384,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"decimals": 2,
"editable": true,
"error": false,
@ -1570,7 +1562,7 @@
"type": "row"
},
{
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
@ -1695,7 +1687,7 @@
"allFormat": "regex values",
"allValue": null,
"current": {},
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"definition": "SHOW TAG VALUES FROM \"server_processor\" WITH KEY = \"servername\" WHERE time > now() - 24h",
"description": null,
"error": null,
@ -1722,7 +1714,7 @@
"allFormat": "regex values",
"allValue": null,
"current": {},
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"definition": "SHOW TAG VALUES FROM \"lpar_processor\" WITH KEY = \"lparname\" WHERE servername =~ /$ServerName/",
"description": null,
"error": null,
@ -1780,4 +1772,4 @@
"title": "IBM Power - HMCi - Logical Partitions",
"uid": "Xl7oHESGz",
"version": 20
}
}

View File

@ -1,13 +1,5 @@
{
"__inputs": [
{
"name": "DS_HMCI",
"label": "HMCi",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
},
{
"name": "DS_INFLUXDB",
"label": "InfluxDB",
@ -69,7 +61,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
@ -208,7 +200,7 @@
}
},
{
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"fieldConfig": {
"defaults": {
"custom": {},
@ -329,7 +321,7 @@
"type": "row"
},
{
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "Inlet air temperature.",
"fieldConfig": {
"defaults": {
@ -444,7 +436,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
@ -663,7 +655,7 @@
{
"allValue": null,
"current": {},
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"definition": "SHOW TAG VALUES FROM \"server_processor\" WITH KEY = \"servername\" WHERE time > now() - 24h",
"description": null,
"error": null,
@ -707,4 +699,4 @@
"title": "IBM Power - HMCi - System Energy",
"uid": "oHcrgD1Mk",
"version": 20
}
}

View File

@ -1,8 +1,8 @@
{
"__inputs": [
{
"name": "DS_HMCI",
"label": "HMCi",
"name": "DS_INFLUXDB",
"label": "InfluxDB",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
@ -65,7 +65,7 @@
"panels": [
{
"collapsed": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"gridPos": {
"h": 1,
"w": 24,
@ -84,7 +84,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"decimals": 2,
"description": "",
"editable": true,
@ -248,7 +248,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"decimals": 2,
"editable": true,
"error": false,
@ -565,7 +565,7 @@
"mode": "spectrum"
},
"dataFormat": "timeseries",
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
@ -668,7 +668,7 @@
},
{
"collapsed": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"gridPos": {
"h": 1,
"w": 24,
@ -687,7 +687,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"editable": true,
"error": false,
"fieldConfig": {
@ -848,7 +848,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"editable": true,
"error": false,
@ -1069,7 +1069,7 @@
},
{
"collapsed": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"gridPos": {
"h": 1,
"w": 24,
@ -1088,7 +1088,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"decimals": 2,
"editable": true,
"error": false,
@ -1252,7 +1252,7 @@
}
},
{
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
@ -1380,7 +1380,7 @@
"allFormat": "regex values",
"allValue": null,
"current": {},
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"definition": "SHOW TAG VALUES FROM \"server_processor\" WITH KEY = \"servername\" WHERE time > now() - 24h",
"description": null,
"error": null,
@ -1407,7 +1407,7 @@
"allFormat": "regex values",
"allValue": null,
"current": {},
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"definition": "SHOW TAG VALUES FROM \"lpar_processor\" WITH KEY = \"lparname\" WHERE servername =~ /$ServerName/",
"description": null,
"error": null,
@ -1465,4 +1465,4 @@
"title": "IBM Power - HMCi - System Resources",
"uid": "ClJhHPIGz",
"version": 26
}
}

View File

@ -1,8 +1,8 @@
{
"__inputs": [
{
"name": "DS_HMCI",
"label": "HMCi",
"name": "DS_INFLUXDB",
"label": "InfluxDB",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
@ -64,7 +64,7 @@
"links": [],
"panels": [
{
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
@ -203,7 +203,7 @@
"type": "table"
},
{
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"fieldConfig": {
"defaults": {
@ -318,7 +318,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"editable": true,
"error": false,
@ -478,7 +478,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"editable": true,
"error": false,
@ -725,7 +725,7 @@
"content": "",
"dashLength": 10,
"dashes": false,
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"description": "",
"editable": true,
"error": false,
@ -1008,7 +1008,7 @@
"allFormat": "regex values",
"allValue": null,
"current": {},
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"definition": "SHOW TAG VALUES FROM \"server_processor\" WITH KEY = \"servername\" WHERE time > now() - 24h",
"description": null,
"error": null,
@ -1035,7 +1035,7 @@
"allFormat": "regex values",
"allValue": null,
"current": {},
"datasource": "${DS_HMCI}",
"datasource": "${DS_INFLUXDB}",
"definition": "SHOW TAG VALUES FROM \"vios_details\" WITH KEY = \"viosname\" WHERE servername =~ /$ServerName/ AND time > now() - 24h",
"description": null,
"error": null,
@ -1093,4 +1093,4 @@
"title": "IBM Power - HMCi - Virtual I/O Servers",
"uid": "DDNEv5vGz",
"version": 18
}
}