Fix dashboard to support external use.
This commit is contained in:
		
							parent
							
								
									7f1c425868
								
							
						
					
					
						commit
						2475d05553
					
				
					 1 changed files with 57 additions and 26 deletions
				
			
		| 
						 | 
					@ -1,4 +1,35 @@
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					  "__inputs": [
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "name": "DS_P1",
 | 
				
			||||||
 | 
					      "label": "p1",
 | 
				
			||||||
 | 
					      "description": "",
 | 
				
			||||||
 | 
					      "type": "datasource",
 | 
				
			||||||
 | 
					      "pluginId": "grafana-postgresql-datasource",
 | 
				
			||||||
 | 
					      "pluginName": "PostgreSQL"
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "__elements": {},
 | 
				
			||||||
 | 
					  "__requires": [
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "type": "grafana",
 | 
				
			||||||
 | 
					      "id": "grafana",
 | 
				
			||||||
 | 
					      "name": "Grafana",
 | 
				
			||||||
 | 
					      "version": "11.1.1"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "type": "datasource",
 | 
				
			||||||
 | 
					      "id": "grafana-postgresql-datasource",
 | 
				
			||||||
 | 
					      "name": "PostgreSQL",
 | 
				
			||||||
 | 
					      "version": "1.0.0"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "type": "panel",
 | 
				
			||||||
 | 
					      "id": "timeseries",
 | 
				
			||||||
 | 
					      "name": "Time series",
 | 
				
			||||||
 | 
					      "version": ""
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
  "annotations": {
 | 
					  "annotations": {
 | 
				
			||||||
    "list": [
 | 
					    "list": [
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
| 
						 | 
					@ -18,14 +49,14 @@
 | 
				
			||||||
  "editable": true,
 | 
					  "editable": true,
 | 
				
			||||||
  "fiscalYearStartMonth": 0,
 | 
					  "fiscalYearStartMonth": 0,
 | 
				
			||||||
  "graphTooltip": 0,
 | 
					  "graphTooltip": 0,
 | 
				
			||||||
  "id": 4,
 | 
					  "id": null,
 | 
				
			||||||
  "links": [],
 | 
					  "links": [],
 | 
				
			||||||
  "liveNow": false,
 | 
					  "liveNow": false,
 | 
				
			||||||
  "panels": [
 | 
					  "panels": [
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "datasource": {
 | 
					      "datasource": {
 | 
				
			||||||
        "type": "grafana-postgresql-datasource",
 | 
					        "type": "grafana-postgresql-datasource",
 | 
				
			||||||
        "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf"
 | 
					        "uid": "${DS_P1}"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "fieldConfig": {
 | 
					      "fieldConfig": {
 | 
				
			||||||
        "defaults": {
 | 
					        "defaults": {
 | 
				
			||||||
| 
						 | 
					@ -110,8 +141,8 @@
 | 
				
			||||||
      "targets": [
 | 
					      "targets": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "datasource": {
 | 
					          "datasource": {
 | 
				
			||||||
            "type": "postgres",
 | 
					            "type": "grafana-postgresql-datasource",
 | 
				
			||||||
            "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf"
 | 
					            "uid": "${DS_P1}"
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          "editorMode": "code",
 | 
					          "editorMode": "code",
 | 
				
			||||||
          "format": "table",
 | 
					          "format": "table",
 | 
				
			||||||
| 
						 | 
					@ -144,7 +175,7 @@
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "datasource": {
 | 
					      "datasource": {
 | 
				
			||||||
        "type": "grafana-postgresql-datasource",
 | 
					        "type": "grafana-postgresql-datasource",
 | 
				
			||||||
        "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf"
 | 
					        "uid": "${DS_P1}"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "fieldConfig": {
 | 
					      "fieldConfig": {
 | 
				
			||||||
        "defaults": {
 | 
					        "defaults": {
 | 
				
			||||||
| 
						 | 
					@ -227,8 +258,8 @@
 | 
				
			||||||
      "targets": [
 | 
					      "targets": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "datasource": {
 | 
					          "datasource": {
 | 
				
			||||||
            "type": "postgres",
 | 
					            "type": "grafana-postgresql-datasource",
 | 
				
			||||||
            "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf"
 | 
					            "uid": "${DS_P1}"
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          "editorMode": "code",
 | 
					          "editorMode": "code",
 | 
				
			||||||
          "format": "table",
 | 
					          "format": "table",
 | 
				
			||||||
| 
						 | 
					@ -261,7 +292,7 @@
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "datasource": {
 | 
					      "datasource": {
 | 
				
			||||||
        "type": "grafana-postgresql-datasource",
 | 
					        "type": "grafana-postgresql-datasource",
 | 
				
			||||||
        "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf"
 | 
					        "uid": "${DS_P1}"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "description": "First + Last = sinds 0, Range = huidige tijdsperiode.",
 | 
					      "description": "First + Last = sinds 0, Range = huidige tijdsperiode.",
 | 
				
			||||||
      "fieldConfig": {
 | 
					      "fieldConfig": {
 | 
				
			||||||
| 
						 | 
					@ -345,8 +376,8 @@
 | 
				
			||||||
      "targets": [
 | 
					      "targets": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "datasource": {
 | 
					          "datasource": {
 | 
				
			||||||
            "type": "postgres",
 | 
					            "type": "grafana-postgresql-datasource",
 | 
				
			||||||
            "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf"
 | 
					            "uid": "${DS_P1}"
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          "editorMode": "code",
 | 
					          "editorMode": "code",
 | 
				
			||||||
          "format": "table",
 | 
					          "format": "table",
 | 
				
			||||||
| 
						 | 
					@ -378,8 +409,8 @@
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "datasource": {
 | 
					      "datasource": {
 | 
				
			||||||
        "type": "postgres",
 | 
					        "type": "grafana-postgresql-datasource",
 | 
				
			||||||
        "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf"
 | 
					        "uid": "${DS_P1}"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "description": "Min: 216,2V. Max: 253V. (-6% tot +10%)",
 | 
					      "description": "Min: 216,2V. Max: 253V. (-6% tot +10%)",
 | 
				
			||||||
      "fieldConfig": {
 | 
					      "fieldConfig": {
 | 
				
			||||||
| 
						 | 
					@ -464,8 +495,8 @@
 | 
				
			||||||
      "targets": [
 | 
					      "targets": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "datasource": {
 | 
					          "datasource": {
 | 
				
			||||||
            "type": "postgres",
 | 
					            "type": "grafana-postgresql-datasource",
 | 
				
			||||||
            "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf"
 | 
					            "uid": "${DS_P1}"
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          "editorMode": "code",
 | 
					          "editorMode": "code",
 | 
				
			||||||
          "format": "table",
 | 
					          "format": "table",
 | 
				
			||||||
| 
						 | 
					@ -497,8 +528,8 @@
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "datasource": {
 | 
					      "datasource": {
 | 
				
			||||||
        "type": "postgres",
 | 
					        "type": "grafana-postgresql-datasource",
 | 
				
			||||||
        "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf"
 | 
					        "uid": "${DS_P1}"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "description": "Hoofdaansluiting: 3*25A",
 | 
					      "description": "Hoofdaansluiting: 3*25A",
 | 
				
			||||||
      "fieldConfig": {
 | 
					      "fieldConfig": {
 | 
				
			||||||
| 
						 | 
					@ -583,8 +614,8 @@
 | 
				
			||||||
      "targets": [
 | 
					      "targets": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "datasource": {
 | 
					          "datasource": {
 | 
				
			||||||
            "type": "postgres",
 | 
					            "type": "grafana-postgresql-datasource",
 | 
				
			||||||
            "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf"
 | 
					            "uid": "${DS_P1}"
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          "editorMode": "code",
 | 
					          "editorMode": "code",
 | 
				
			||||||
          "format": "table",
 | 
					          "format": "table",
 | 
				
			||||||
| 
						 | 
					@ -617,7 +648,7 @@
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "datasource": {
 | 
					      "datasource": {
 | 
				
			||||||
        "type": "grafana-postgresql-datasource",
 | 
					        "type": "grafana-postgresql-datasource",
 | 
				
			||||||
        "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf"
 | 
					        "uid": "${DS_P1}"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "fieldConfig": {
 | 
					      "fieldConfig": {
 | 
				
			||||||
        "defaults": {
 | 
					        "defaults": {
 | 
				
			||||||
| 
						 | 
					@ -699,8 +730,8 @@
 | 
				
			||||||
      "targets": [
 | 
					      "targets": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "datasource": {
 | 
					          "datasource": {
 | 
				
			||||||
            "type": "postgres",
 | 
					            "type": "grafana-postgresql-datasource",
 | 
				
			||||||
            "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf"
 | 
					            "uid": "${DS_P1}"
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          "editorMode": "code",
 | 
					          "editorMode": "code",
 | 
				
			||||||
          "format": "table",
 | 
					          "format": "table",
 | 
				
			||||||
| 
						 | 
					@ -732,7 +763,7 @@
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      "datasource": {
 | 
					      "datasource": {
 | 
				
			||||||
        "type": "grafana-postgresql-datasource",
 | 
					        "type": "grafana-postgresql-datasource",
 | 
				
			||||||
        "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf"
 | 
					        "uid": "${DS_P1}"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "description": "1L = 1 dm^3 dus 1kL = 1m^3. \nRange = verbruik in geselecteerde periode.",
 | 
					      "description": "1L = 1 dm^3 dus 1kL = 1m^3. \nRange = verbruik in geselecteerde periode.",
 | 
				
			||||||
      "fieldConfig": {
 | 
					      "fieldConfig": {
 | 
				
			||||||
| 
						 | 
					@ -821,8 +852,8 @@
 | 
				
			||||||
      "targets": [
 | 
					      "targets": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "datasource": {
 | 
					          "datasource": {
 | 
				
			||||||
            "type": "postgres",
 | 
					            "type": "grafana-postgresql-datasource",
 | 
				
			||||||
            "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf"
 | 
					            "uid": "${DS_P1}"
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          "editorMode": "code",
 | 
					          "editorMode": "code",
 | 
				
			||||||
          "format": "table",
 | 
					          "format": "table",
 | 
				
			||||||
| 
						 | 
					@ -859,8 +890,8 @@
 | 
				
			||||||
    "list": []
 | 
					    "list": []
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "time": {
 | 
					  "time": {
 | 
				
			||||||
    "from": "now-2d/d",
 | 
					    "from": "now/d",
 | 
				
			||||||
    "to": "now-2d/d"
 | 
					    "to": "now"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "timepicker": {},
 | 
					  "timepicker": {},
 | 
				
			||||||
  "timezone": "",
 | 
					  "timezone": "",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue