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_style = space
indent_size = 4 indent_size = 4
[*.yml] [*.{yml,json}]
indent_size = 2 indent_size = 2

View file

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

View file

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

View file

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

View file

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