Dashboard Banco de dados Postgress 
Dashboard utilizado como comparativo de desempenho de dois servidores de banco de dados distintos. 
Dashboard utilizado como comparativo de desempenho de dois servidores de banco de dados distintos.

- Linkedin : linkedin.com/in/isweluiz 

- Github: https://github.com/isweluiz/grafana

{
  "__inputs": [
    {
      "name": "DS_ZABBIX_- TJDFT",
      "label": "Zabbix ",
      "description": "",
      "type": "datasource",
      "pluginId": "alexanderzobnin-zabbix-datasource",
      "pluginName": "Zabbix"
    }
  ],
  "__requires": [
    {
      "type": "datasource",
      "id": "alexanderzobnin-zabbix-datasource",
      "name": "Zabbix",
      "version": "1.0.0"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "5.0.3"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": "5.0.0"
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": "5.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 9116,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1542726524538,
  "links": [],
  "panels": [
    {
      "aliasColors": {
        "CPU iowait time": "#e5ac0e"
      },
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ZABBIX_- TJDFT}",
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 15,
        "x": 0,
        "y": 0
      },
      "id": 4,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "hideEmpty": false,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "sortDesc": true,
        "total": true,
        "values": true
      },
      "lines": false,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "connected",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "",
          "color": "#0a50a1",
          "fill": 2,
          "linewidth": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "application": {
            "filter": "Banco de Dados"
          },
          "functions": [
            {
              "def": {
                "category": "Alias",
                "defaultParams": [],
                "name": "setAlias",
                "params": [
                  {
                    "name": "alias",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "Total de Conexões Postgres"
              ],
              "text": "setAlias(Total de Conexões Postgres)"
            }
          ],
          "group": {
            "filter": "Linux servers"
          },
          "host": {
            "filter": "$Hosts"
          },
          "item": {
            "filter": "Total de Conexões Postgres"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "refId": "A",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        },
        {
          "application": {
            "filter": "CPU"
          },
          "functions": [
            {
              "def": {
                "category": "Aggregate",
                "defaultParams": [
                  "1m"
                ],
                "name": "average",
                "params": [
                  {
                    "name": "interval",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "5m"
              ],
              "text": "average(5m)"
            },
            {
              "def": {
                "category": "Alias",
                "defaultParams": [],
                "name": "setAlias",
                "params": [
                  {
                    "name": "alias",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "Média"
              ],
              "text": "setAlias(Média)"
            }
          ],
          "group": {
            "filter": "Linux servers"
          },
          "hide": true,
          "host": {
            "filter": "$Hosts"
          },
          "item": {
            "filter": "CPU iowait time"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "refId": "B",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "$Hosts - Total de Conexões Postgres",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "none",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ]
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "rgb(57, 171, 19)",
        "rgb(240, 106, 15)",
        "rgb(218, 32, 10)"
      ],
      "datasource": "${DS_ZABBIX_- TJDFT}",
      "decimals": null,
      "format": "percent",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": true,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 15,
        "y": 0
      },
      "hideTimeOverride": true,
      "id": 5,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false
      },
      "tableColumn": "",
      "targets": [
        {
          "application": {
            "filter": "CPU"
          },
          "functions": [],
          "group": {
            "filter": "Linux servers"
          },
          "host": {
            "filter": "$Hosts"
          },
          "item": {
            "filter": "CPU Usage"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "refId": "A",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": "85, 95",
      "timeFrom": "2m",
      "timeShift": null,
      "title": "$Hosts - CPU Usage em %",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "100%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "rgb(57, 171, 19)",
        "rgb(240, 106, 15)",
        "rgb(218, 32, 10)"
      ],
      "datasource": "${DS_ZABBIX_- TJDFT}",
      "decimals": null,
      "format": "ms",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 20,
        "y": 0
      },
      "hideTimeOverride": true,
      "id": 11,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0)",
        "full": false,
        "lineColor": "#629e51",
        "show": true
      },
      "tableColumn": "",
      "targets": [
        {
          "application": {
            "filter": "/.*/"
          },
          "functions": [],
          "group": {
            "filter": "Linux servers"
          },
          "host": {
            "filter": "$Hosts"
          },
          "item": {
            "filter": "ICMP ping"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "refId": "A",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": "5, 10",
      "timeFrom": "2m",
      "timeShift": null,
      "title": "$Hosts - ICMP - PING",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "100%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ZABBIX_- TJDFT}",
      "fill": 1,
      "gridPos": {
        "h": 10,
        "w": 15,
        "x": 0,
        "y": 7
      },
      "id": 7,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "CPU usage - bdu24",
          "color": "#447ebc",
          "fill": 9
        },
        {
          "alias": "CPU usage - bdu15",
          "fill": 9
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "application": {
            "filter": "CPU"
          },
          "functions": [
            {
              "def": {
                "category": "Alias",
                "defaultParams": [],
                "name": "setAlias",
                "params": [
                  {
                    "name": "alias",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "CPU usage - bdu15"
              ],
              "text": "setAlias(CPU usage - bdu15)"
            }
          ],
          "group": {
            "filter": "Linux servers"
          },
          "host": {
            "filter": "bdu15.tribunal.tjdft.jus.br"
          },
          "item": {
            "filter": "CPU Usage"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "refId": "A",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        },
        {
          "application": {
            "filter": "CPU"
          },
          "functions": [
            {
              "def": {
                "category": "Alias",
                "defaultParams": [],
                "name": "setAlias",
                "params": [
                  {
                    "name": "alias",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "CPU usage - bdu24"
              ],
              "text": "setAlias(CPU usage - bdu24)"
            }
          ],
          "group": {
            "filter": "Linux servers"
          },
          "hide": false,
          "host": {
            "filter": "bdu24.tribunal.tjdft.jus.br"
          },
          "item": {
            "filter": "CPU Usage"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "refId": "B",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        },
        {
          "application": {
            "filter": "CPU"
          },
          "functions": [
            {
              "def": {
                "category": "Aggregate",
                "defaultParams": [
                  "1m"
                ],
                "name": "average",
                "params": [
                  {
                    "name": "interval",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "5m"
              ],
              "text": "average(5m)"
            },
            {
              "def": {
                "category": "Alias",
                "defaultParams": [],
                "name": "setAlias",
                "params": [
                  {
                    "name": "alias",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "CPU average - bdu15"
              ],
              "text": "setAlias(CPU average - bdu15)"
            }
          ],
          "group": {
            "filter": "Linux servers"
          },
          "hide": true,
          "host": {
            "filter": "bdu15.tribunal.tjdft.jus.br"
          },
          "item": {
            "filter": "CPU Usage"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "refId": "C",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        },
        {
          "application": {
            "filter": "CPU"
          },
          "functions": [
            {
              "def": {
                "category": "Alias",
                "defaultParams": [],
                "name": "setAlias",
                "params": [
                  {
                    "name": "alias",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "CPU average - bdu30"
              ],
              "text": "setAlias(CPU average - bdu30)"
            },
            {
              "def": {
                "category": "Aggregate",
                "defaultParams": [
                  "1m"
                ],
                "name": "average",
                "params": [
                  {
                    "name": "interval",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "5m"
              ],
              "text": "average(5m)"
            }
          ],
          "group": {
            "filter": "Linux servers"
          },
          "hide": true,
          "host": {
            "filter": "bdu30.tribunal.tjdft.jus.br"
          },
          "item": {
            "filter": "CPU Usage"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "refId": "D",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "PJE 1i/2i Uso de CPU",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "percent",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ]
    },
    {
      "aliasColors": {
        "Used memory": "#9ac48a",
        "mem": "#7eb26d"
      },
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ZABBIX_- TJDFT}",
      "fill": 1,
      "gridPos": {
        "h": 10,
        "w": 9,
        "x": 15,
        "y": 7
      },
      "id": 3,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": false,
        "max": false,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": false,
      "linewidth": 3,
      "links": [],
      "nullPointMode": "null",
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "Uso de memória - bdu24",
          "color": "#447ebc"
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "application": {
            "filter": "Memory"
          },
          "functions": [
            {
              "def": {
                "category": "Alias",
                "defaultParams": [],
                "name": "setAlias",
                "params": [
                  {
                    "name": "alias",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "Total de memória"
              ],
              "text": "setAlias(Total de memória)"
            }
          ],
          "group": {
            "filter": "Linux servers"
          },
          "hide": true,
          "host": {
            "filter": "bdu15.tribunal.tjdft.jus.br"
          },
          "item": {
            "filter": "Available memory"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "refId": "A",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        },
        {
          "application": {
            "filter": "Memory"
          },
          "functions": [
            {
              "def": {
                "category": "Alias",
                "defaultParams": [],
                "name": "setAlias",
                "params": [
                  {
                    "name": "alias",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "Uso de memória - bdu15"
              ],
              "text": "setAlias(Uso de memória - bdu15)"
            }
          ],
          "group": {
            "filter": "Linux servers"
          },
          "host": {
            "filter": "bdu15.tribunal.tjdft.jus.br"
          },
          "item": {
            "filter": "Used memory"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "refId": "B",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        },
        {
          "application": {
            "filter": "Memory"
          },
          "functions": [],
          "group": {
            "filter": "Linux servers"
          },
          "hide": true,
          "host": {
            "filter": "bdu24.tribunal.tjdft.jus.br"
          },
          "item": {
            "filter": "Available memory"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "refId": "C",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        },
        {
          "application": {
            "filter": "Memory"
          },
          "functions": [
            {
              "def": {
                "category": "Alias",
                "defaultParams": [],
                "name": "setAlias",
                "params": [
                  {
                    "name": "alias",
                    "type": "string"
                  }
                ]
              },
              "params": [
                "Uso de memória - bdu24"
              ],
              "text": "setAlias(Uso de memória - bdu24)"
            }
          ],
          "group": {
            "filter": "Linux servers"
          },
          "host": {
            "filter": "bdu24.tribunal.tjdft.jus.br"
          },
          "item": {
            "filter": "Used memory"
          },
          "mode": 0,
          "options": {
            "showDisabledItems": false
          },
          "refId": "D",
          "triggers": {
            "acknowledged": 2,
            "count": true,
            "minSeverity": 3
          }
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "PJE 1i/2i Uso  de Memória",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 0,
          "format": "decbytes",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ]
    }
  ],
  "refresh": false,
  "schemaVersion": 16,
  "style": "dark",
  "tags": [
    "Linux",
    "banco",
    "tjdft"
  ],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_ZABBIX_- TJDFT}",
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "Hosts",
        "options": [],
        "query": "{Linux servers}{*}",
        "refresh": 1,
        "regex": "bdu11.tribunal.tjdft.jus.br|bdu15.tribunal.tjdft.jus.br|bdu16.tribunal.tjdft.jus.br|bdu20.tribunal.tjdft.jus.br|bdu28.tribunal.tjdft.jus.br|bdu30.tribunal.tjdft.jus.br|bdu31.tribunal.tjdft.jus.br",
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-3h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "browser",
  "title": "Dashboard Banco de dados Postgress ",
  "uid": "vLRBaJfmk",
  "version": 8,
  "description": "Dashboard utilizado como comparativo de desempenho de dois servidores de banco de dados distintos. "
}