Grafana dashboard: dash Copy
Description: Postgresql Monitoring with Elasticsearch and PostgreSQL data sources

PostgreSQL Database System Monitoring Dashboard with ElasticSearch and PostgreSQL data sources. You can monitor for your system about Disk Statements, CPU, Memory Statements, DB Connections, Buffers, Temp Files, DISK I/O , Network Traffic, and more.
Metricbeat v7.x
Grafana v6.x

{
  "__inputs": [
    {
      "name": "DS_ELASTICSEARCH",
      "label": "Elasticsearch",
      "description": "",
      "type": "datasource",
      "pluginId": "elasticsearch",
      "pluginName": "Elasticsearch"
    },
    {
      "name": "DS_POSTGRESQL",
      "label": "PostgreSQL",
      "description": "",
      "type": "datasource",
      "pluginId": "postgres",
      "pluginName": "PostgreSQL"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "bargauge",
      "name": "Bar gauge",
      "version": ""
    },
    {
      "type": "panel",
      "id": "briangann-gauge-panel",
      "name": "D3 Gauge",
      "version": "0.0.8"
    },
    {
      "type": "datasource",
      "id": "elasticsearch",
      "name": "Elasticsearch",
      "version": "1.0.0"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.3.7"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "postgres",
      "name": "PostgreSQL",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "Postgresql Monitoring with Elasticsearch and PostgreSQL data sources",
  "editable": true,
  "gnetId": 12812,
  "graphTooltip": 2,
  "id": null,
  "iteration": 1615806629418,
  "links": [
    {
      "asDropdown": true,
      "icon": "external link",
      "tags": [
        "Tol Laut"
      ],
      "targetBlank": true,
      "title": "Dashboard",
      "type": "dashboards"
    }
  ],
  "panels": [
    {
      "collapsed": false,
      "datasource": "${DS_ELASTICSEARCH}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 68,
      "panels": [],
      "title": "System Statistics",
      "type": "row"
    },
    {
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-BlPu"
          },
          "custom": {},
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 0,
        "y": 1
      },
      "id": 59,
      "options": {
        "displayMode": "gradient",
        "orientation": "vertical",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "showUnfilled": true
      },
      "pluginVersion": "7.3.7",
      "targets": [
        {
          "alias": "Core Memory",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.memory.actual.used.bytes",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "A",
          "timeField": "@timestamp"
        },
        {
          "alias": "Used Memory",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.memory.used.bytes",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "B",
          "timeField": "@timestamp"
        },
        {
          "alias": "Total Memory",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.memory.total",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "C",
          "timeField": "@timestamp"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Memory Info",
      "transparent": true,
      "type": "bargauge"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgb(41, 201, 199)",
                "value": null
              }
            ]
          },
          "unit": "string"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 2,
        "x": 6,
        "y": 1
      },
      "id": 77,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.3.7",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "1m",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.cpu.cores",
              "id": "1",
              "inlineScript": "_value",
              "meta": {},
              "settings": {
                "script": {
                  "inline": "_value"
                }
              },
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "CPU Core Number",
      "transparent": true,
      "type": "stat"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgb(186, 41, 201)",
                "value": null
              }
            ]
          },
          "unit": "ms"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 2,
        "x": 8,
        "y": 1
      },
      "id": 78,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.3.7",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "1m",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.uptime.duration.ms",
              "id": "1",
              "inlineScript": "_value",
              "meta": {},
              "settings": {
                "script": {
                  "inline": "_value"
                }
              },
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "System Uptime",
      "transparent": true,
      "type": "stat"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgb(39, 198, 19)",
                "value": null
              },
              {
                "color": "dark-yellow",
                "value": 70
              },
              {
                "color": "rgb(168, 4, 23)",
                "value": 85
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 2,
        "x": 13,
        "y": 1
      },
      "id": 40,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.3.7",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "1m",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.filesystem.used.pct",
              "id": "1",
              "inlineScript": "_value * 100",
              "meta": {},
              "settings": {
                "script": {
                  "inline": "_value * 100"
                }
              },
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host AND system.filesystem.device_name:*root*",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Root disk usage",
      "transparent": true,
      "type": "stat"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgb(55, 196, 37)",
                "value": null
              },
              {
                "color": "dark-yellow",
                "value": 70
              },
              {
                "color": "dark-red",
                "value": 85
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 2,
        "x": 15,
        "y": 1
      },
      "id": 54,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.3.7",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "1m",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.filesystem.used.pct",
              "id": "1",
              "inlineScript": "_value * 100",
              "meta": {},
              "settings": {
                "script": {
                  "inline": "_value * 100"
                }
              },
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host AND system.filesystem.device_name:*pgdata*",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": " /pgdata disk usage",
      "transparent": true,
      "type": "stat"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgb(61, 203, 42)",
                "value": null
              },
              {
                "color": "semi-dark-yellow",
                "value": 70
              },
              {
                "color": "rgb(170, 6, 25)",
                "value": 90
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 2,
        "x": 17,
        "y": 1
      },
      "id": 55,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.3.7",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "1m",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.filesystem.used.pct",
              "id": "1",
              "inlineScript": "_value * 100",
              "meta": {},
              "settings": {
                "script": {
                  "inline": "_value * 100"
                }
              },
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host AND system.filesystem.device_name:*backup*",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "/backup disk usage ",
      "transparent": true,
      "type": "stat"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgb(78, 203, 62)",
                "value": null
              },
              {
                "color": "semi-dark-yellow",
                "value": 70
              },
              {
                "color": "dark-red",
                "value": 85
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 2,
        "x": 19,
        "y": 1
      },
      "id": 56,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.3.7",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "1m",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.filesystem.used.pct",
              "id": "1",
              "inlineScript": "_value * 100",
              "meta": {},
              "settings": {
                "script": {
                  "inline": "_value * 100"
                }
              },
              "type": "avg"
            }
          ],
          "query": "host.hostname: pg2 AND system.filesystem.mount_point:*nfsbackup*",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "/nfsbackup disk usage",
      "transparent": true,
      "type": "stat"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgb(78, 203, 62)",
                "value": null
              },
              {
                "color": "semi-dark-yellow",
                "value": 70
              },
              {
                "color": "dark-red",
                "value": 85
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 2,
        "x": 21,
        "y": 1
      },
      "id": 62,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.3.7",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "1m",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.filesystem.used.pct",
              "id": "1",
              "inlineScript": "_value * 100",
              "meta": {},
              "settings": {
                "script": {
                  "inline": "_value * 100"
                }
              },
              "type": "avg"
            }
          ],
          "query": "host.hostname: pg3 AND system.filesystem.mount_point:*pgdata_fb*",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "/pgdata_fb disk usage (pg3)",
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-YlRd"
          },
          "custom": {},
          "decimals": 2,
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 0,
        "y": 7
      },
      "id": 76,
      "options": {
        "displayMode": "gradient",
        "orientation": "vertical",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "showUnfilled": true
      },
      "pluginVersion": "7.3.7",
      "targets": [
        {
          "alias": "Used SWAP",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.memory.swap.used.bytes",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "B",
          "timeField": "@timestamp"
        },
        {
          "alias": "Free SWAP",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.memory.swap.free",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "A",
          "timeField": "@timestamp"
        },
        {
          "alias": "Total SWAP",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.memory.swap.total",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "C",
          "timeField": "@timestamp"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "SWAP Info",
      "transparent": true,
      "type": "bargauge"
    },
    {
      "aliasColors": {
        "Used SWAP": "dark-yellow"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ELASTICSEARCH}",
      "decimals": 2,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-YlRd"
          },
          "custom": {},
          "decimals": 2,
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 5,
        "y": 7
      },
      "hiddenSeries": false,
      "id": 84,
      "legend": {
        "avg": true,
        "current": true,
        "max": true,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.7",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "Used SWAP",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.memory.swap.used.bytes",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "B",
          "timeField": "@timestamp"
        },
        {
          "alias": "Free SWAP",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "hide": true,
          "metrics": [
            {
              "field": "system.memory.swap.free",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "A",
          "timeField": "@timestamp"
        },
        {
          "alias": "Total SWAP",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "hide": true,
          "metrics": [
            {
              "field": "system.memory.swap.total",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "C",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "SWAP Info History",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 2,
          "format": "bytes",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "bytes",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "unit": "percent"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 10,
        "x": 13,
        "y": 7
      },
      "hiddenSeries": false,
      "id": 66,
      "legend": {
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.7",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "CPU",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.cpu.total.pct",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "CPU Usage other than IOWait",
      "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
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "Average system.cpu.total.pct": "dark-blue",
        "Total": "rgb(7, 95, 229)",
        "kernel system": "rgb(229, 220, 214)",
        "user": "rgb(242, 29, 13)"
      },
      "bars": false,
      "cacheTimeout": null,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ELASTICSEARCH}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "fill": 0,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 24,
        "x": 0,
        "y": 14
      },
      "hiddenSeries": false,
      "id": 44,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.7",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "Total",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-15s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "field": "system.cpu.total.pct",
              "id": "1",
              "inlineScript": null,
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "A",
          "timeField": "@timestamp"
        },
        {
          "alias": "nice",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-70s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "field": "system.cpu.nice.pct",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "C",
          "timeField": "@timestamp"
        },
        {
          "alias": "kernel system",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-15s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "field": "system.cpu.system.pct",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "D",
          "timeField": "@timestamp"
        },
        {
          "alias": "user",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-15s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "field": "system.cpu.user.pct",
              "id": "1",
              "inlineScript": null,
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "E",
          "timeField": "@timestamp"
        },
        {
          "alias": "softirq",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-15s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "field": "system.cpu.softirq.pct",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "F",
          "timeField": "@timestamp"
        },
        {
          "alias": "steal",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-15s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.cpu.steal.pct",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "G",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "CPU Usage Detail ",
      "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
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "Read per sec": "rgb(242, 205, 21)",
        "Write per sec": "rgb(226, 10, 35)"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 5,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 23
      },
      "hiddenSeries": false,
      "id": 23,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.7",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "Read per sec",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-15s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.diskio.iostat.read.per_sec.bytes",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "max"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "A",
          "timeField": "@timestamp"
        },
        {
          "alias": "Write per sec",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-15s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.diskio.iostat.write.per_sec.bytes",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "max"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "B",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "DISK I/O Operations",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "Bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "CPU": "semi-dark-yellow"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "unit": "percent"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 23
      },
      "hiddenSeries": false,
      "id": 83,
      "legend": {
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.7",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "CPU",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.cpu.iowait.pct",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "CPU  Time Percent wait on disk (iowait)",
      "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
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "Disk Read latency": "semi-dark-blue",
        "Disk Total Latency": "dark-red",
        "Disk Write Latency": "dark-orange",
        "Read per sec": "rgb(242, 205, 21)",
        "Write per sec": "rgb(226, 10, 35)"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": [],
          "unit": "ms"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 5,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 31
      },
      "hiddenSeries": false,
      "id": 82,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.7",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "total milliseconds spent doing I/Os.",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-15s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.diskio.io.time",
              "hide": true,
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "avg"
            },
            {
              "field": "1",
              "id": "3",
              "meta": {},
              "pipelineAgg": "1",
              "settings": {},
              "type": "derivative"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Disk I/O Usage Time",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "ms",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "Disk Read latency": "semi-dark-blue",
        "Disk Total Latency": "dark-red",
        "Disk Write Latency": "dark-orange",
        "Read": "dark-yellow",
        "Read per sec": "rgb(242, 205, 21)",
        "Read per second": "dark-yellow",
        "Write": "dark-red",
        "Write per sec": "rgb(226, 10, 35)",
        "Write per second": "dark-red"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": [],
          "unit": "iops"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 5,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 31
      },
      "hiddenSeries": false,
      "id": 81,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.7",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "Read",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-15s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.diskio.iostat.read.request.per_sec",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "max"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "B",
          "timeField": "@timestamp"
        },
        {
          "alias": "Write",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-15s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "field": "system.diskio.iostat.write.request.per_sec",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "max"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "C",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "DISK IOps",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "iops",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "IN DROPPED": "dark-orange",
        "IN ERROR": "dark-red",
        "OUT DROPPED": "light-orange",
        "OUT ERROR": "semi-dark-red"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 39
      },
      "hiddenSeries": false,
      "id": 52,
      "legend": {
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.7",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "IN DROPPED",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-70s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.network.in.dropped",
              "hide": true,
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "sum"
            },
            {
              "field": "1",
              "id": "3",
              "meta": {},
              "pipelineAgg": "1",
              "settings": {},
              "type": "derivative"
            }
          ],
          "query": "host.hostname:$host",
          "refId": "A",
          "timeField": "@timestamp"
        },
        {
          "alias": "OUT DROPPED",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-70s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.network.out.dropped",
              "hide": true,
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "sum"
            },
            {
              "field": "1",
              "id": "3",
              "meta": {},
              "pipelineAgg": "1",
              "settings": {},
              "type": "derivative"
            }
          ],
          "query": "host.hostname:$host",
          "refId": "B",
          "timeField": "@timestamp"
        },
        {
          "alias": "IN ERROR",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-70s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.ne",
              "hide": true,
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "sum"
            },
            {
              "field": "1",
              "id": "3",
              "meta": {},
              "pipelineAgg": "1",
              "settings": {},
              "type": "derivative"
            }
          ],
          "query": "host.hostname:$host",
          "refId": "C",
          "timeField": "@timestamp"
        },
        {
          "alias": "OUT ERROR",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-70s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "system.network.out.errors",
              "hide": true,
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "sum"
            },
            {
              "field": "1",
              "id": "3",
              "meta": {},
              "pipelineAgg": "1",
              "settings": {},
              "type": "derivative"
            }
          ],
          "query": "host.hostname:$host",
          "refId": "D",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Network Drop/Error",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "Average postgresql.database.rows.fetched": "dark-orange",
        "Average postgresql.database.rows.returned": "dark-yellow",
        "Derivative Average postgresql.database.rows.returned": "dark-orange",
        "Inbound": "dark-red",
        "Outbound": "rgb(13, 101, 236)",
        "Rows Returned": "semi-dark-orange"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ELASTICSEARCH}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "links": []
        },
        "overrides": []
      },
      "fill": 3,
      "fillGradient": 10,
      "gridPos": {
        "h": 8,
        "w": 11,
        "x": 13,
        "y": 40
      },
      "hiddenSeries": false,
      "id": 50,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": true,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.3.7",
      "pointradius": 2,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "Inbound",
          "bucketAggs": [
            {
              "fake": true,
              "field": "@timestamp",
              "id": "3",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-15s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "field": "system.network.in.bytes",
              "hide": true,
              "id": "1",
              "inlineScript": null,
              "meta": {},
              "pipelineAgg": "select metric",
              "settings": {},
              "type": "avg"
            },
            {
              "field": "1",
              "id": "4",
              "meta": {},
              "pipelineAgg": "1",
              "settings": {},
              "type": "derivative"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "A",
          "timeField": "@timestamp"
        },
        {
          "alias": "Outbound",
          "bucketAggs": [
            {
              "fake": true,
              "field": "@timestamp",
              "id": "3",
              "settings": {
                "interval": "10s",
                "min_doc_count": 0,
                "offset": "-15s",
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "field": "system.network.out.bytes",
              "hide": true,
              "id": "1",
              "inlineScript": null,
              "meta": {},
              "pipelineAgg": "select metric",
              "settings": {},
              "type": "avg"
            },
            {
              "field": "1",
              "id": "4",
              "meta": {},
              "pipelineAgg": "1",
              "settings": {},
              "type": "derivative"
            }
          ],
          "query": "host.hostname: $host",
          "refId": "B",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Network Traffic",
      "tooltip": {
        "shared": true,
        "sort": 1,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "Bps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "collapsed": true,
      "datasource": "${DS_ELASTICSEARCH}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 48
      },
      "id": 64,
      "panels": [
        {
          "cacheTimeout": null,
          "datasource": "${DS_POSTGRESQL}",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "decimals": 2,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "rgb(47, 86, 180)",
                    "value": null
                  }
                ]
              },
              "unit": "s"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 5,
            "w": 7,
            "x": 0,
            "y": 2
          },
          "id": 73,
          "interval": null,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "background",
            "graphMode": "none",
            "justifyMode": "center",
            "orientation": "vertical",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value_and_name"
          },
          "pluginVersion": "7.3.7",
          "targets": [
            {
              "format": "table",
              "group": [],
              "metricColumn": "none",
              "rawQuery": true,
              "rawSql": "SELECT\ntime_diff_sn AS pg1\nFROM\n  grafana.oksijen_replication\nWHERE\nstandby_name = 'pg1.domain.com'\n",
              "refId": "A",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "column"
                  }
                ]
              ],
              "timeColumn": "time",
              "where": [
                {
                  "name": "$__timeFilter",
                  "params": [],
                  "type": "macro"
                }
              ]
            },
            {
              "format": "table",
              "group": [],
              "metricColumn": "none",
              "rawQuery": true,
              "rawSql": "SELECT\ntime_diff_sn AS pg3\nFROM\n  grafana.oksijen_replication\nWHERE\nstandby_name = 'pg3.domain.com'\n",
              "refId": "B",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "column"
                  }
                ]
              ],
              "timeColumn": "time",
              "where": [
                {
                  "name": "$__timeFilter",
                  "params": [],
                  "type": "macro"
                }
              ]
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Replication Delay",
          "type": "stat"
        },
        {
          "cacheTimeout": null,
          "datasource": "${DS_POSTGRESQL}",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "decimals": 2,
              "mappings": [],
              "noValue": "\"select a database, not all\"",
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-red",
                    "value": null
                  },
                  {
                    "color": "rgb(142, 11, 26)",
                    "value": 75
                  },
                  {
                    "color": "#EAB839",
                    "value": 85
                  },
                  {
                    "color": "rgb(71, 193, 57)",
                    "value": 95
                  }
                ]
              },
              "unit": "percent"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 7,
            "w": 2,
            "x": 7,
            "y": 2
          },
          "id": 69,
          "interval": null,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "background",
            "graphMode": "none",
            "justifyMode": "center",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "mean"
              ],
              "fields": "/.*/",
              "values": false
            },
            "textMode": "value_and_name"
          },
          "pluginVersion": "7.3.7",
          "targets": [
            {
              "format": "table",
              "group": [],
              "metricColumn": "none",
              "rawQuery": true,
              "rawSql": "SELECT\n percentage as \"$database\"\nFROM grafana.cache_hit_ratio\nWHERE host = '$host' and\ndatabase = $database\n",
              "refId": "A",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "column"
                  }
                ]
              ],
              "timeColumn": "time",
              "where": [
                {
                  "name": "$__timeFilter",
                  "params": [],
                  "type": "macro"
                }
              ]
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Cache Hit Ratio",
          "type": "stat"
        },
        {
          "cacheTimeout": null,
          "datasource": "${DS_POSTGRESQL}",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "decimals": 2,
              "mappings": [],
              "noValue": "\"select enable host value\"",
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-red",
                    "value": null
                  },
                  {
                    "color": "rgb(142, 11, 26)",
                    "value": 75
                  },
                  {
                    "color": "#EAB839",
                    "value": 85
                  },
                  {
                    "color": "rgb(72, 196, 57)",
                    "value": 95
                  }
                ]
              },
              "unit": "percent"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 7,
            "w": 2,
            "x": 9,
            "y": 2
          },
          "id": 75,
          "interval": null,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "background",
            "graphMode": "none",
            "justifyMode": "center",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value_and_name"
          },
          "pluginVersion": "7.3.7",
          "targets": [
            {
              "format": "table",
              "group": [],
              "metricColumn": "none",
              "rawQuery": true,
              "rawSql": "SELECT\n avg(percentage) AS \"cluster-based value\"\nFROM grafana.cache_hit_ratio\nWHERE host = '$host'\n\n",
              "refId": "A",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "column"
                  }
                ]
              ],
              "timeColumn": "time",
              "where": [
                {
                  "name": "$__timeFilter",
                  "params": [],
                  "type": "macro"
                }
              ]
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Cluster-Based Cache Hit Ratio ",
          "type": "stat"
        },
        {
          "cacheTimeout": null,
          "datasource": "${DS_ELASTICSEARCH}",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "rgb(12, 234, 212)",
                    "value": null
                  },
                  {
                    "color": "#EAB839",
                    "value": 1
                  },
                  {
                    "color": "red",
                    "value": 10
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 7,
            "w": 2,
            "x": 11,
            "y": 2
          },
          "id": 36,
          "interval": null,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "background",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "7.3.7",
          "targets": [
            {
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.database.deadlocks",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "sum"
                }
              ],
              "query": "host.hostname: $host AND postgresql.database.name: $database",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Dead Locks",
          "type": "stat"
        },
        {
          "cacheTimeout": null,
          "datasource": "${DS_ELASTICSEARCH}",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "mappings": [],
              "noValue": "No  Configuration ",
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "rgb(12, 131, 234)",
                    "value": null
                  }
                ]
              },
              "unit": "decbytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 7,
            "w": 2,
            "x": 13,
            "y": 2
          },
          "id": 57,
          "interval": null,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "background",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "7.3.7",
          "targets": [
            {
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "1m",
                    "min_doc_count": 0,
                    "offset": "-2m",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "system.filesystem.used.bytes",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "avg"
                }
              ],
              "query": "host.hostname: pg1 AND system.filesystem.mount_point: *pgdata*",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Cluster Size",
          "type": "stat"
        },
        {
          "cacheTimeout": null,
          "datasource": "${DS_POSTGRESQL}",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "mappings": [],
              "noValue": "No  Configuration ",
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "rgb(12, 131, 234)",
                    "value": null
                  }
                ]
              },
              "unit": "string"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 7,
            "w": 2,
            "x": 15,
            "y": 2
          },
          "id": 85,
          "interval": null,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "background",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "7.3.7",
          "targets": [
            {
              "format": "table",
              "group": [],
              "metricColumn": "none",
              "rawQuery": true,
              "rawSql": "SELECT\nversion as \"OKSIJEN\"\nFROM\n  grafana.server_version\nWHERE\nhost like 'oksijen%'",
              "refId": "A",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "column"
                  }
                ]
              ],
              "timeColumn": "time",
              "where": [
                {
                  "name": "$__timeFilter",
                  "params": [],
                  "type": "macro"
                }
              ]
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "PG Version",
          "type": "stat"
        },
        {
          "cacheTimeout": null,
          "colors": [
            "rgba(50, 172, 45, 0.97)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(245, 54, 54, 0.9)"
          ],
          "datasource": "${DS_ELASTICSEARCH}",
          "decimals": null,
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "fontSizes": [
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13,
            14,
            15,
            16,
            17,
            18,
            19,
            20,
            22,
            24,
            26,
            28,
            30,
            32,
            34,
            36,
            38,
            40,
            42,
            44,
            46,
            48,
            50,
            52,
            54,
            56,
            58,
            60,
            62,
            64,
            66,
            68,
            70
          ],
          "fontTypes": [
            "Arial",
            "Avant Garde",
            "Bookman",
            "Consolas",
            "Courier",
            "Courier New",
            "Garamond",
            "Helvetica",
            "Open Sans",
            "Palatino",
            "Times",
            "Times New Roman",
            "Verdana"
          ],
          "format": "none",
          "gauge": {
            "animateNeedleValueTransition": true,
            "animateNeedleValueTransitionSpeed": 100,
            "edgeWidth": 0.05,
            "gaugeRadius": 0,
            "gaugeUnits": "",
            "innerCol": "rgb(183, 178, 178)",
            "labelFontSize": 19,
            "maxNeedleAngle": 320,
            "maxTickAngle": 300,
            "maxValue": 5000,
            "minValue": 0,
            "needleCol": "#1F60C4",
            "needleLengthNeg": 0.2,
            "needleTickGap": 0.05,
            "needleWidth": 5,
            "outerEdgeCol": "rgb(106, 10, 21)",
            "padding": 0.05,
            "pivotCol": "#999",
            "pivotRadius": 0.1,
            "show": true,
            "showLowerThresholdRange": true,
            "showMiddleThresholdRange": true,
            "showThresholdColorOnValue": false,
            "showThresholdOnGauge": true,
            "showUpperThresholdRange": true,
            "tickColMaj": "#1F60C4",
            "tickColMin": "rgb(43, 0, 236)",
            "tickEdgeGap": 0.05,
            "tickFont": "Open Sans",
            "tickLabelCol": "rgb(20, 20, 20)",
            "tickLengthMaj": 0.15,
            "tickLengthMin": 0.05,
            "tickSpaceMajVal": 1000,
            "tickSpaceMinVal": 100,
            "tickWidthMaj": 5,
            "tickWidthMin": 1,
            "ticknessGaugeBasis": 200,
            "unitsFont": "Courier",
            "unitsLabelCol": "rgb(17, 17, 17)",
            "unitsLabelFontSize": 70,
            "valueYOffset": 0,
            "zeroNeedleAngle": 40,
            "zeroTickAngle": 60
          },
          "gaugeDivId": "d3gauge_svg_74",
          "gridPos": {
            "h": 7,
            "w": 3,
            "x": 18,
            "y": 2
          },
          "id": 74,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "operatorName": "current",
          "operatorNameOptions": [
            "min",
            "max",
            "avg",
            "current",
            "total",
            "name"
          ],
          "pluginVersion": "6.1.6",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "svgContainer": {},
          "targets": [
            {
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "15s",
                    "min_doc_count": 0,
                    "offset": "-17s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.activity.client.address",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "count"
                }
              ],
              "query": "host.hostname: $host AND postgresql.activity.database.name: $database AND postgresql.activity.user.name: $user AND postgresql.activity.state: *",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": "3000,4000",
          "tickMaps": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Database Client Connection",
          "transparent": true,
          "type": "briangann-gauge-panel",
          "unitFormats": [
            {
              "submenu": [
                {
                  "click": "menuItemSelected(0,0)",
                  "text": "none",
                  "value": "none"
                },
                {
                  "click": "menuItemSelected(0,1)",
                  "text": "String",
                  "value": "string"
                },
                {
                  "click": "menuItemSelected(0,2)",
                  "text": "short",
                  "value": "short"
                },
                {
                  "click": "menuItemSelected(0,3)",
                  "text": "Percent (0-100)",
                  "value": "percent"
                },
                {
                  "click": "menuItemSelected(0,4)",
                  "text": "Percent (0.0-1.0)",
                  "value": "percentunit"
                },
                {
                  "click": "menuItemSelected(0,5)",
                  "text": "Humidity (%H)",
                  "value": "humidity"
                },
                {
                  "click": "menuItemSelected(0,6)",
                  "text": "Decibel",
                  "value": "dB"
                },
                {
                  "click": "menuItemSelected(0,7)",
                  "text": "Hexadecimal (0x)",
                  "value": "hex0x"
                },
                {
                  "click": "menuItemSelected(0,8)",
                  "text": "Hexadecimal",
                  "value": "hex"
                },
                {
                  "click": "menuItemSelected(0,9)",
                  "text": "Scientific notation",
                  "value": "sci"
                },
                {
                  "click": "menuItemSelected(0,10)",
                  "text": "Locale format",
                  "value": "locale"
                },
                {
                  "click": "menuItemSelected(0,11)",
                  "text": "Pixels",
                  "value": "pixel"
                }
              ],
              "text": "Misc"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(1,0)",
                  "text": "Meters/sec²",
                  "value": "accMS2"
                },
                {
                  "click": "menuItemSelected(1,1)",
                  "text": "Feet/sec²",
                  "value": "accFS2"
                },
                {
                  "click": "menuItemSelected(1,2)",
                  "text": "G unit",
                  "value": "accG"
                }
              ],
              "text": "Acceleration"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(2,0)",
                  "text": "Degrees (°)",
                  "value": "degree"
                },
                {
                  "click": "menuItemSelected(2,1)",
                  "text": "Radians",
                  "value": "radian"
                },
                {
                  "click": "menuItemSelected(2,2)",
                  "text": "Gradian",
                  "value": "grad"
                },
                {
                  "click": "menuItemSelected(2,3)",
                  "text": "Arc Minutes",
                  "value": "arcmin"
                },
                {
                  "click": "menuItemSelected(2,4)",
                  "text": "Arc Seconds",
                  "value": "arcsec"
                }
              ],
              "text": "Angle"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(3,0)",
                  "text": "Square Meters (m²)",
                  "value": "areaM2"
                },
                {
                  "click": "menuItemSelected(3,1)",
                  "text": "Square Feet (ft²)",
                  "value": "areaF2"
                },
                {
                  "click": "menuItemSelected(3,2)",
                  "text": "Square Miles (mi²)",
                  "value": "areaMI2"
                }
              ],
              "text": "Area"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(4,0)",
                  "text": "FLOP/s",
                  "value": "flops"
                },
                {
                  "click": "menuItemSelected(4,1)",
                  "text": "MFLOP/s",
                  "value": "mflops"
                },
                {
                  "click": "menuItemSelected(4,2)",
                  "text": "GFLOP/s",
                  "value": "gflops"
                },
                {
                  "click": "menuItemSelected(4,3)",
                  "text": "TFLOP/s",
                  "value": "tflops"
                },
                {
                  "click": "menuItemSelected(4,4)",
                  "text": "PFLOP/s",
                  "value": "pflops"
                },
                {
                  "click": "menuItemSelected(4,5)",
                  "text": "EFLOP/s",
                  "value": "eflops"
                },
                {
                  "click": "menuItemSelected(4,6)",
                  "text": "ZFLOP/s",
                  "value": "zflops"
                },
                {
                  "click": "menuItemSelected(4,7)",
                  "text": "YFLOP/s",
                  "value": "yflops"
                }
              ],
              "text": "Computation"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(5,0)",
                  "text": "parts-per-million (ppm)",
                  "value": "ppm"
                },
                {
                  "click": "menuItemSelected(5,1)",
                  "text": "parts-per-billion (ppb)",
                  "value": "conppb"
                },
                {
                  "click": "menuItemSelected(5,2)",
                  "text": "nanogram per cubic meter (ng/m³)",
                  "value": "conngm3"
                },
                {
                  "click": "menuItemSelected(5,3)",
                  "text": "nanogram per normal cubic meter (ng/Nm³)",
                  "value": "conngNm3"
                },
                {
                  "click": "menuItemSelected(5,4)",
                  "text": "microgram per cubic meter (μg/m³)",
                  "value": "conμgm3"
                },
                {
                  "click": "menuItemSelected(5,5)",
                  "text": "microgram per normal cubic meter (μg/Nm³)",
                  "value": "conμgNm3"
                },
                {
                  "click": "menuItemSelected(5,6)",
                  "text": "milligram per cubic meter (mg/m³)",
                  "value": "conmgm3"
                },
                {
                  "click": "menuItemSelected(5,7)",
                  "text": "milligram per normal cubic meter (mg/Nm³)",
                  "value": "conmgNm3"
                },
                {
                  "click": "menuItemSelected(5,8)",
                  "text": "gram per cubic meter (g/m³)",
                  "value": "congm3"
                },
                {
                  "click": "menuItemSelected(5,9)",
                  "text": "gram per normal cubic meter (g/Nm³)",
                  "value": "congNm3"
                },
                {
                  "click": "menuItemSelected(5,10)",
                  "text": "milligrams per decilitre (mg/dL)",
                  "value": "conmgdL"
                },
                {
                  "click": "menuItemSelected(5,11)",
                  "text": "millimoles per litre (mmol/L)",
                  "value": "conmmolL"
                }
              ],
              "text": "Concentration"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(6,0)",
                  "text": "Dollars ($)",
                  "value": "currencyUSD"
                },
                {
                  "click": "menuItemSelected(6,1)",
                  "text": "Pounds (£)",
                  "value": "currencyGBP"
                },
                {
                  "click": "menuItemSelected(6,2)",
                  "text": "Euro (€)",
                  "value": "currencyEUR"
                },
                {
                  "click": "menuItemSelected(6,3)",
                  "text": "Yen (¥)",
                  "value": "currencyJPY"
                },
                {
                  "click": "menuItemSelected(6,4)",
                  "text": "Rubles (₽)",
                  "value": "currencyRUB"
                },
                {
                  "click": "menuItemSelected(6,5)",
                  "text": "Hryvnias (₴)",
                  "value": "currencyUAH"
                },
                {
                  "click": "menuItemSelected(6,6)",
                  "text": "Real (R$)",
                  "value": "currencyBRL"
                },
                {
                  "click": "menuItemSelected(6,7)",
                  "text": "Danish Krone (kr)",
                  "value": "currencyDKK"
                },
                {
                  "click": "menuItemSelected(6,8)",
                  "text": "Icelandic Króna (kr)",
                  "value": "currencyISK"
                },
                {
                  "click": "menuItemSelected(6,9)",
                  "text": "Norwegian Krone (kr)",
                  "value": "currencyNOK"
                },
                {
                  "click": "menuItemSelected(6,10)",
                  "text": "Swedish Krona (kr)",
                  "value": "currencySEK"
                },
                {
                  "click": "menuItemSelected(6,11)",
                  "text": "Czech koruna (czk)",
                  "value": "currencyCZK"
                },
                {
                  "click": "menuItemSelected(6,12)",
                  "text": "Swiss franc (CHF)",
                  "value": "currencyCHF"
                },
                {
                  "click": "menuItemSelected(6,13)",
                  "text": "Polish Złoty (PLN)",
                  "value": "currencyPLN"
                },
                {
                  "click": "menuItemSelected(6,14)",
                  "text": "Bitcoin (฿)",
                  "value": "currencyBTC"
                },
                {
                  "click": "menuItemSelected(6,15)",
                  "text": "Milli Bitcoin (฿)",
                  "value": "currencymBTC"
                },
                {
                  "click": "menuItemSelected(6,16)",
                  "text": "Micro Bitcoin (฿)",
                  "value": "currencyμBTC"
                },
                {
                  "click": "menuItemSelected(6,17)",
                  "text": "South African Rand (R)",
                  "value": "currencyZAR"
                },
                {
                  "click": "menuItemSelected(6,18)",
                  "text": "Indian Rupee (₹)",
                  "value": "currencyINR"
                },
                {
                  "click": "menuItemSelected(6,19)",
                  "text": "South Korean Won (₩)",
                  "value": "currencyKRW"
                }
              ],
              "text": "Currency"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(7,0)",
                  "text": "bytes(IEC)",
                  "value": "bytes"
                },
                {
                  "click": "menuItemSelected(7,1)",
                  "text": "bytes(SI)",
                  "value": "decbytes"
                },
                {
                  "click": "menuItemSelected(7,2)",
                  "text": "bits(IEC)",
                  "value": "bits"
                },
                {
                  "click": "menuItemSelected(7,3)",
                  "text": "bits(SI)",
                  "value": "decbits"
                },
                {
                  "click": "menuItemSelected(7,4)",
                  "text": "kibibytes",
                  "value": "kbytes"
                },
                {
                  "click": "menuItemSelected(7,5)",
                  "text": "kilobytes",
                  "value": "deckbytes"
                },
                {
                  "click": "menuItemSelected(7,6)",
                  "text": "mebibytes",
                  "value": "mbytes"
                },
                {
                  "click": "menuItemSelected(7,7)",
                  "text": "megabytes",
                  "value": "decmbytes"
                },
                {
                  "click": "menuItemSelected(7,8)",
                  "text": "gibibytes",
                  "value": "gbytes"
                },
                {
                  "click": "menuItemSelected(7,9)",
                  "text": "gigabytes",
                  "value": "decgbytes"
                },
                {
                  "click": "menuItemSelected(7,10)",
                  "text": "tebibytes",
                  "value": "tbytes"
                },
                {
                  "click": "menuItemSelected(7,11)",
                  "text": "terabytes",
                  "value": "dectbytes"
                },
                {
                  "click": "menuItemSelected(7,12)",
                  "text": "pebibytes",
                  "value": "pbytes"
                },
                {
                  "click": "menuItemSelected(7,13)",
                  "text": "petabytes",
                  "value": "decpbytes"
                }
              ],
              "text": "Data"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(8,0)",
                  "text": "packets/sec",
                  "value": "pps"
                },
                {
                  "click": "menuItemSelected(8,1)",
                  "text": "bytes/sec(IEC)",
                  "value": "binBps"
                },
                {
                  "click": "menuItemSelected(8,2)",
                  "text": "bytes/sec(SI)",
                  "value": "Bps"
                },
                {
                  "click": "menuItemSelected(8,3)",
                  "text": "bits/sec(IEC)",
                  "value": "binbps"
                },
                {
                  "click": "menuItemSelected(8,4)",
                  "text": "bits/sec(SI)",
                  "value": "bps"
                },
                {
                  "click": "menuItemSelected(8,5)",
                  "text": "kibibytes/sec",
                  "value": "KiBs"
                },
                {
                  "click": "menuItemSelected(8,6)",
                  "text": "kibibits/sec",
                  "value": "Kibits"
                },
                {
                  "click": "menuItemSelected(8,7)",
                  "text": "kilobytes/sec",
                  "value": "KBs"
                },
                {
                  "click": "menuItemSelected(8,8)",
                  "text": "kilobits/sec",
                  "value": "Kbits"
                },
                {
                  "click": "menuItemSelected(8,9)",
                  "text": "mibibytes/sec",
                  "value": "MiBs"
                },
                {
                  "click": "menuItemSelected(8,10)",
                  "text": "mibibits/sec",
                  "value": "Mibits"
                },
                {
                  "click": "menuItemSelected(8,11)",
                  "text": "megabytes/sec",
                  "value": "MBs"
                },
                {
                  "click": "menuItemSelected(8,12)",
                  "text": "megabits/sec",
                  "value": "Mbits"
                },
                {
                  "click": "menuItemSelected(8,13)",
                  "text": "gibibytes/sec",
                  "value": "GiBs"
                },
                {
                  "click": "menuItemSelected(8,14)",
                  "text": "gibibits/sec",
                  "value": "Gibits"
                },
                {
                  "click": "menuItemSelected(8,15)",
                  "text": "gigabytes/sec",
                  "value": "GBs"
                },
                {
                  "click": "menuItemSelected(8,16)",
                  "text": "gigabits/sec",
                  "value": "Gbits"
                },
                {
                  "click": "menuItemSelected(8,17)",
                  "text": "tebibytes/sec",
                  "value": "TiBs"
                },
                {
                  "click": "menuItemSelected(8,18)",
                  "text": "tebibits/sec",
                  "value": "Tibits"
                },
                {
                  "click": "menuItemSelected(8,19)",
                  "text": "terabytes/sec",
                  "value": "TBs"
                },
                {
                  "click": "menuItemSelected(8,20)",
                  "text": "terabits/sec",
                  "value": "Tbits"
                },
                {
                  "click": "menuItemSelected(8,21)",
                  "text": "petibytes/sec",
                  "value": "PiBs"
                },
                {
                  "click": "menuItemSelected(8,22)",
                  "text": "petibits/sec",
                  "value": "Pibits"
                },
                {
                  "click": "menuItemSelected(8,23)",
                  "text": "petabytes/sec",
                  "value": "PBs"
                },
                {
                  "click": "menuItemSelected(8,24)",
                  "text": "petabits/sec",
                  "value": "Pbits"
                }
              ],
              "text": "Data rate"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(9,0)",
                  "text": "Datetime ISO",
                  "value": "dateTimeAsIso"
                },
                {
                  "click": "menuItemSelected(9,1)",
                  "text": "Datetime ISO (No date if today)",
                  "value": "dateTimeAsIsoNoDateIfToday"
                },
                {
                  "click": "menuItemSelected(9,2)",
                  "text": "Datetime US",
                  "value": "dateTimeAsUS"
                },
                {
                  "click": "menuItemSelected(9,3)",
                  "text": "Datetime US (No date if today)",
                  "value": "dateTimeAsUSNoDateIfToday"
                },
                {
                  "click": "menuItemSelected(9,4)",
                  "text": "Datetime local",
                  "value": "dateTimeAsLocal"
                },
                {
                  "click": "menuItemSelected(9,5)",
                  "text": "Datetime default",
                  "value": "dateTimeAsSystem"
                },
                {
                  "click": "menuItemSelected(9,6)",
                  "text": "From Now",
                  "value": "dateTimeFromNow"
                }
              ],
              "text": "Date & time"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(10,0)",
                  "text": "Watt (W)",
                  "value": "watt"
                },
                {
                  "click": "menuItemSelected(10,1)",
                  "text": "Kilowatt (kW)",
                  "value": "kwatt"
                },
                {
                  "click": "menuItemSelected(10,2)",
                  "text": "Megawatt (MW)",
                  "value": "megwatt"
                },
                {
                  "click": "menuItemSelected(10,3)",
                  "text": "Gigawatt (GW)",
                  "value": "gwatt"
                },
                {
                  "click": "menuItemSelected(10,4)",
                  "text": "Milliwatt (mW)",
                  "value": "mwatt"
                },
                {
                  "click": "menuItemSelected(10,5)",
                  "text": "Watt per square meter (W/m²)",
                  "value": "Wm2"
                },
                {
                  "click": "menuItemSelected(10,6)",
                  "text": "Volt-ampere (VA)",
                  "value": "voltamp"
                },
                {
                  "click": "menuItemSelected(10,7)",
                  "text": "Kilovolt-ampere (kVA)",
                  "value": "kvoltamp"
                },
                {
                  "click": "menuItemSelected(10,8)",
                  "text": "Volt-ampere reactive (var)",
                  "value": "voltampreact"
                },
                {
                  "click": "menuItemSelected(10,9)",
                  "text": "Kilovolt-ampere reactive (kvar)",
                  "value": "kvoltampreact"
                },
                {
                  "click": "menuItemSelected(10,10)",
                  "text": "Watt-hour (Wh)",
                  "value": "watth"
                },
                {
                  "click": "menuItemSelected(10,11)",
                  "text": "Watt-hour per Kilogram (Wh/kg)",
                  "value": "watthperkg"
                },
                {
                  "click": "menuItemSelected(10,12)",
                  "text": "Kilowatt-hour (kWh)",
                  "value": "kwatth"
                },
                {
                  "click": "menuItemSelected(10,13)",
                  "text": "Kilowatt-min (kWm)",
                  "value": "kwattm"
                },
                {
                  "click": "menuItemSelected(10,14)",
                  "text": "Ampere-hour (Ah)",
                  "value": "amph"
                },
                {
                  "click": "menuItemSelected(10,15)",
                  "text": "Kiloampere-hour (kAh)",
                  "value": "kamph"
                },
                {
                  "click": "menuItemSelected(10,16)",
                  "text": "Milliampere-hour (mAh)",
                  "value": "mamph"
                },
                {
                  "click": "menuItemSelected(10,17)",
                  "text": "Joule (J)",
                  "value": "joule"
                },
                {
                  "click": "menuItemSelected(10,18)",
                  "text": "Electron volt (eV)",
                  "value": "ev"
                },
                {
                  "click": "menuItemSelected(10,19)",
                  "text": "Ampere (A)",
                  "value": "amp"
                },
                {
                  "click": "menuItemSelected(10,20)",
                  "text": "Kiloampere (kA)",
                  "value": "kamp"
                },
                {
                  "click": "menuItemSelected(10,21)",
                  "text": "Milliampere (mA)",
                  "value": "mamp"
                },
                {
                  "click": "menuItemSelected(10,22)",
                  "text": "Volt (V)",
                  "value": "volt"
                },
                {
                  "click": "menuItemSelected(10,23)",
                  "text": "Kilovolt (kV)",
                  "value": "kvolt"
                },
                {
                  "click": "menuItemSelected(10,24)",
                  "text": "Millivolt (mV)",
                  "value": "mvolt"
                },
                {
                  "click": "menuItemSelected(10,25)",
                  "text": "Decibel-milliwatt (dBm)",
                  "value": "dBm"
                },
                {
                  "click": "menuItemSelected(10,26)",
                  "text": "Ohm (Ω)",
                  "value": "ohm"
                },
                {
                  "click": "menuItemSelected(10,27)",
                  "text": "Kiloohm (kΩ)",
                  "value": "kohm"
                },
                {
                  "click": "menuItemSelected(10,28)",
                  "text": "Megaohm (MΩ)",
                  "value": "Mohm"
                },
                {
                  "click": "menuItemSelected(10,29)",
                  "text": "Farad (F)",
                  "value": "farad"
                },
                {
                  "click": "menuItemSelected(10,30)",
                  "text": "Microfarad (µF)",
                  "value": "µfarad"
                },
                {
                  "click": "menuItemSelected(10,31)",
                  "text": "Nanofarad (nF)",
                  "value": "nfarad"
                },
                {
                  "click": "menuItemSelected(10,32)",
                  "text": "Picofarad (pF)",
                  "value": "pfarad"
                },
                {
                  "click": "menuItemSelected(10,33)",
                  "text": "Femtofarad (fF)",
                  "value": "ffarad"
                },
                {
                  "click": "menuItemSelected(10,34)",
                  "text": "Henry (H)",
                  "value": "henry"
                },
                {
                  "click": "menuItemSelected(10,35)",
                  "text": "Millihenry (mH)",
                  "value": "mhenry"
                },
                {
                  "click": "menuItemSelected(10,36)",
                  "text": "Microhenry (µH)",
                  "value": "µhenry"
                },
                {
                  "click": "menuItemSelected(10,37)",
                  "text": "Lumens (Lm)",
                  "value": "lumens"
                }
              ],
              "text": "Energy"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(11,0)",
                  "text": "Gallons/min (gpm)",
                  "value": "flowgpm"
                },
                {
                  "click": "menuItemSelected(11,1)",
                  "text": "Cubic meters/sec (cms)",
                  "value": "flowcms"
                },
                {
                  "click": "menuItemSelected(11,2)",
                  "text": "Cubic feet/sec (cfs)",
                  "value": "flowcfs"
                },
                {
                  "click": "menuItemSelected(11,3)",
                  "text": "Cubic feet/min (cfm)",
                  "value": "flowcfm"
                },
                {
                  "click": "menuItemSelected(11,4)",
                  "text": "Litre/hour",
                  "value": "litreh"
                },
                {
                  "click": "menuItemSelected(11,5)",
                  "text": "Litre/min (L/min)",
                  "value": "flowlpm"
                },
                {
                  "click": "menuItemSelected(11,6)",
                  "text": "milliLitre/min (mL/min)",
                  "value": "flowmlpm"
                },
                {
                  "click": "menuItemSelected(11,7)",
                  "text": "Lux (lx)",
                  "value": "lux"
                }
              ],
              "text": "Flow"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(12,0)",
                  "text": "Newton-meters (Nm)",
                  "value": "forceNm"
                },
                {
                  "click": "menuItemSelected(12,1)",
                  "text": "Kilonewton-meters (kNm)",
                  "value": "forcekNm"
                },
                {
                  "click": "menuItemSelected(12,2)",
                  "text": "Newtons (N)",
                  "value": "forceN"
                },
                {
                  "click": "menuItemSelected(12,3)",
                  "text": "Kilonewtons (kN)",
                  "value": "forcekN"
                }
              ],
              "text": "Force"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(13,0)",
                  "text": "hashes/sec",
                  "value": "Hs"
                },
                {
                  "click": "menuItemSelected(13,1)",
                  "text": "kilohashes/sec",
                  "value": "KHs"
                },
                {
                  "click": "menuItemSelected(13,2)",
                  "text": "megahashes/sec",
                  "value": "MHs"
                },
                {
                  "click": "menuItemSelected(13,3)",
                  "text": "gigahashes/sec",
                  "value": "GHs"
                },
                {
                  "click": "menuItemSelected(13,4)",
                  "text": "terahashes/sec",
                  "value": "THs"
                },
                {
                  "click": "menuItemSelected(13,5)",
                  "text": "petahashes/sec",
                  "value": "PHs"
                },
                {
                  "click": "menuItemSelected(13,6)",
                  "text": "exahashes/sec",
                  "value": "EHs"
                }
              ],
              "text": "Hash rate"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(14,0)",
                  "text": "milligram (mg)",
                  "value": "massmg"
                },
                {
                  "click": "menuItemSelected(14,1)",
                  "text": "gram (g)",
                  "value": "massg"
                },
                {
                  "click": "menuItemSelected(14,2)",
                  "text": "kilogram (kg)",
                  "value": "masskg"
                },
                {
                  "click": "menuItemSelected(14,3)",
                  "text": "metric ton (t)",
                  "value": "masst"
                }
              ],
              "text": "Mass"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(15,0)",
                  "text": "millimeter (mm)",
                  "value": "lengthmm"
                },
                {
                  "click": "menuItemSelected(15,1)",
                  "text": "feet (ft)",
                  "value": "lengthft"
                },
                {
                  "click": "menuItemSelected(15,2)",
                  "text": "meter (m)",
                  "value": "lengthm"
                },
                {
                  "click": "menuItemSelected(15,3)",
                  "text": "kilometer (km)",
                  "value": "lengthkm"
                },
                {
                  "click": "menuItemSelected(15,4)",
                  "text": "mile (mi)",
                  "value": "lengthmi"
                }
              ],
              "text": "Length"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(16,0)",
                  "text": "Millibars",
                  "value": "pressurembar"
                },
                {
                  "click": "menuItemSelected(16,1)",
                  "text": "Bars",
                  "value": "pressurebar"
                },
                {
                  "click": "menuItemSelected(16,2)",
                  "text": "Kilobars",
                  "value": "pressurekbar"
                },
                {
                  "click": "menuItemSelected(16,3)",
                  "text": "Pascals",
                  "value": "pressurepa"
                },
                {
                  "click": "menuItemSelected(16,4)",
                  "text": "Hectopascals",
                  "value": "pressurehpa"
                },
                {
                  "click": "menuItemSelected(16,5)",
                  "text": "Kilopascals",
                  "value": "pressurekpa"
                },
                {
                  "click": "menuItemSelected(16,6)",
                  "text": "Inches of mercury",
                  "value": "pressurehg"
                },
                {
                  "click": "menuItemSelected(16,7)",
                  "text": "PSI",
                  "value": "pressurepsi"
                }
              ],
              "text": "Pressure"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(17,0)",
                  "text": "Becquerel (Bq)",
                  "value": "radbq"
                },
                {
                  "click": "menuItemSelected(17,1)",
                  "text": "curie (Ci)",
                  "value": "radci"
                },
                {
                  "click": "menuItemSelected(17,2)",
                  "text": "Gray (Gy)",
                  "value": "radgy"
                },
                {
                  "click": "menuItemSelected(17,3)",
                  "text": "rad",
                  "value": "radrad"
                },
                {
                  "click": "menuItemSelected(17,4)",
                  "text": "Sievert (Sv)",
                  "value": "radsv"
                },
                {
                  "click": "menuItemSelected(17,5)",
                  "text": "milliSievert (mSv)",
                  "value": "radmsv"
                },
                {
                  "click": "menuItemSelected(17,6)",
                  "text": "microSievert (µSv)",
                  "value": "radusv"
                },
                {
                  "click": "menuItemSelected(17,7)",
                  "text": "rem",
                  "value": "radrem"
                },
                {
                  "click": "menuItemSelected(17,8)",
                  "text": "Exposure (C/kg)",
                  "value": "radexpckg"
                },
                {
                  "click": "menuItemSelected(17,9)",
                  "text": "roentgen (R)",
                  "value": "radr"
                },
                {
                  "click": "menuItemSelected(17,10)",
                  "text": "Sievert/hour (Sv/h)",
                  "value": "radsvh"
                },
                {
                  "click": "menuItemSelected(17,11)",
                  "text": "milliSievert/hour (mSv/h)",
                  "value": "radmsvh"
                },
                {
                  "click": "menuItemSelected(17,12)",
                  "text": "microSievert/hour (µSv/h)",
                  "value": "radusvh"
                }
              ],
              "text": "Radiation"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(18,0)",
                  "text": "Revolutions per minute (rpm)",
                  "value": "rotrpm"
                },
                {
                  "click": "menuItemSelected(18,1)",
                  "text": "Hertz (Hz)",
                  "value": "rothz"
                },
                {
                  "click": "menuItemSelected(18,2)",
                  "text": "Radians per second (rad/s)",
                  "value": "rotrads"
                },
                {
                  "click": "menuItemSelected(18,3)",
                  "text": "Degrees per second (°/s)",
                  "value": "rotdegs"
                }
              ],
              "text": "Rotational Speed"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(19,0)",
                  "text": "Celsius (°C)",
                  "value": "celsius"
                },
                {
                  "click": "menuItemSelected(19,1)",
                  "text": "Fahrenheit (°F)",
                  "value": "fahrenheit"
                },
                {
                  "click": "menuItemSelected(19,2)",
                  "text": "Kelvin (K)",
                  "value": "kelvin"
                }
              ],
              "text": "Temperature"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(20,0)",
                  "text": "Hertz (1/s)",
                  "value": "hertz"
                },
                {
                  "click": "menuItemSelected(20,1)",
                  "text": "nanoseconds (ns)",
                  "value": "ns"
                },
                {
                  "click": "menuItemSelected(20,2)",
                  "text": "microseconds (µs)",
                  "value": "µs"
                },
                {
                  "click": "menuItemSelected(20,3)",
                  "text": "milliseconds (ms)",
                  "value": "ms"
                },
                {
                  "click": "menuItemSelected(20,4)",
                  "text": "seconds (s)",
                  "value": "s"
                },
                {
                  "click": "menuItemSelected(20,5)",
                  "text": "minutes (m)",
                  "value": "m"
                },
                {
                  "click": "menuItemSelected(20,6)",
                  "text": "hours (h)",
                  "value": "h"
                },
                {
                  "click": "menuItemSelected(20,7)",
                  "text": "days (d)",
                  "value": "d"
                },
                {
                  "click": "menuItemSelected(20,8)",
                  "text": "duration (ms)",
                  "value": "dtdurationms"
                },
                {
                  "click": "menuItemSelected(20,9)",
                  "text": "duration (s)",
                  "value": "dtdurations"
                },
                {
                  "click": "menuItemSelected(20,10)",
                  "text": "duration (hh:mm:ss)",
                  "value": "dthms"
                },
                {
                  "click": "menuItemSelected(20,11)",
                  "text": "duration (d hh:mm:ss)",
                  "value": "dtdhms"
                },
                {
                  "click": "menuItemSelected(20,12)",
                  "text": "Timeticks (s/100)",
                  "value": "timeticks"
                },
                {
                  "click": "menuItemSelected(20,13)",
                  "text": "clock (ms)",
                  "value": "clockms"
                },
                {
                  "click": "menuItemSelected(20,14)",
                  "text": "clock (s)",
                  "value": "clocks"
                }
              ],
              "text": "Time"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(21,0)",
                  "text": "counts/sec (cps)",
                  "value": "cps"
                },
                {
                  "click": "menuItemSelected(21,1)",
                  "text": "ops/sec (ops)",
                  "value": "ops"
                },
                {
                  "click": "menuItemSelected(21,2)",
                  "text": "requests/sec (rps)",
                  "value": "reqps"
                },
                {
                  "click": "menuItemSelected(21,3)",
                  "text": "reads/sec (rps)",
                  "value": "rps"
                },
                {
                  "click": "menuItemSelected(21,4)",
                  "text": "writes/sec (wps)",
                  "value": "wps"
                },
                {
                  "click": "menuItemSelected(21,5)",
                  "text": "I/O ops/sec (iops)",
                  "value": "iops"
                },
                {
                  "click": "menuItemSelected(21,6)",
                  "text": "counts/min (cpm)",
                  "value": "cpm"
                },
                {
                  "click": "menuItemSelected(21,7)",
                  "text": "ops/min (opm)",
                  "value": "opm"
                },
                {
                  "click": "menuItemSelected(21,8)",
                  "text": "reads/min (rpm)",
                  "value": "rpm"
                },
                {
                  "click": "menuItemSelected(21,9)",
                  "text": "writes/min (wpm)",
                  "value": "wpm"
                }
              ],
              "text": "Throughput"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(22,0)",
                  "text": "meters/second (m/s)",
                  "value": "velocityms"
                },
                {
                  "click": "menuItemSelected(22,1)",
                  "text": "kilometers/hour (km/h)",
                  "value": "velocitykmh"
                },
                {
                  "click": "menuItemSelected(22,2)",
                  "text": "miles/hour (mph)",
                  "value": "velocitymph"
                },
                {
                  "click": "menuItemSelected(22,3)",
                  "text": "knot (kn)",
                  "value": "velocityknot"
                }
              ],
              "text": "Velocity"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(23,0)",
                  "text": "millilitre (mL)",
                  "value": "mlitre"
                },
                {
                  "click": "menuItemSelected(23,1)",
                  "text": "litre (L)",
                  "value": "litre"
                },
                {
                  "click": "menuItemSelected(23,2)",
                  "text": "cubic meter",
                  "value": "m3"
                },
                {
                  "click": "menuItemSelected(23,3)",
                  "text": "Normal cubic meter",
                  "value": "Nm3"
                },
                {
                  "click": "menuItemSelected(23,4)",
                  "text": "cubic decimeter",
                  "value": "dm3"
                },
                {
                  "click": "menuItemSelected(23,5)",
                  "text": "gallons",
                  "value": "gallons"
                }
              ],
              "text": "Volume"
            }
          ],
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ]
        },
        {
          "cacheTimeout": null,
          "colors": [
            "rgba(50, 172, 45, 0.97)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(245, 54, 54, 0.9)"
          ],
          "datasource": "${DS_ELASTICSEARCH}",
          "decimals": null,
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "fontSizes": [
            4,
            5,
            6,
            7,
            8,
            9,
            10,
            11,
            12,
            13,
            14,
            15,
            16,
            17,
            18,
            19,
            20,
            22,
            24,
            26,
            28,
            30,
            32,
            34,
            36,
            38,
            40,
            42,
            44,
            46,
            48,
            50,
            52,
            54,
            56,
            58,
            60,
            62,
            64,
            66,
            68,
            70
          ],
          "fontTypes": [
            "Arial",
            "Avant Garde",
            "Bookman",
            "Consolas",
            "Courier",
            "Courier New",
            "Garamond",
            "Helvetica",
            "Open Sans",
            "Palatino",
            "Times",
            "Times New Roman",
            "Verdana"
          ],
          "format": "none",
          "gauge": {
            "animateNeedleValueTransition": true,
            "animateNeedleValueTransitionSpeed": 100,
            "edgeWidth": 0.05,
            "gaugeRadius": 0,
            "gaugeUnits": "",
            "innerCol": "rgb(219, 213, 213)",
            "labelFontSize": 18,
            "maxNeedleAngle": 320,
            "maxTickAngle": 300,
            "maxValue": 5000,
            "minValue": 0,
            "needleCol": "rgb(13, 14, 17)",
            "needleLengthNeg": 0.2,
            "needleTickGap": 0.05,
            "needleWidth": 5,
            "outerEdgeCol": "rgb(18, 88, 137)",
            "padding": 0.05,
            "pivotCol": "rgb(32, 25, 25)",
            "pivotRadius": 0.04,
            "show": true,
            "showLowerThresholdRange": true,
            "showMiddleThresholdRange": true,
            "showThresholdColorOnValue": false,
            "showThresholdOnGauge": true,
            "showUpperThresholdRange": true,
            "tickColMaj": "rgb(21, 24, 27)",
            "tickColMin": "rgb(43, 0, 236)",
            "tickEdgeGap": 0.05,
            "tickFont": "Courier",
            "tickLabelCol": "rgb(20, 20, 20)",
            "tickLengthMaj": 0.15,
            "tickLengthMin": 0.05,
            "tickSpaceMajVal": 1000,
            "tickSpaceMinVal": 100,
            "tickWidthMaj": 5,
            "tickWidthMin": 1,
            "ticknessGaugeBasis": 200,
            "unitsFont": "Courier",
            "unitsLabelCol": "rgb(17, 17, 17)",
            "unitsLabelFontSize": 60,
            "valueYOffset": 0,
            "zeroNeedleAngle": 40,
            "zeroTickAngle": 60
          },
          "gaugeDivId": "d3gauge_svg_8",
          "gridPos": {
            "h": 7,
            "w": 3,
            "x": 21,
            "y": 2
          },
          "id": 8,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "operatorName": "current",
          "operatorNameOptions": [
            "min",
            "max",
            "avg",
            "current",
            "total",
            "name"
          ],
          "pluginVersion": "6.1.6",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "svgContainer": {},
          "targets": [
            {
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-17s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.activity.client.address",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "count"
                }
              ],
              "query": "host.hostname: $host AND postgresql.activity.state: *",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": "3000,4000",
          "tickMaps": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Cluster Client Connection",
          "transparent": true,
          "type": "briangann-gauge-panel",
          "unitFormats": [
            {
              "submenu": [
                {
                  "click": "menuItemSelected(0,0)",
                  "text": "none",
                  "value": "none"
                },
                {
                  "click": "menuItemSelected(0,1)",
                  "text": "String",
                  "value": "string"
                },
                {
                  "click": "menuItemSelected(0,2)",
                  "text": "short",
                  "value": "short"
                },
                {
                  "click": "menuItemSelected(0,3)",
                  "text": "Percent (0-100)",
                  "value": "percent"
                },
                {
                  "click": "menuItemSelected(0,4)",
                  "text": "Percent (0.0-1.0)",
                  "value": "percentunit"
                },
                {
                  "click": "menuItemSelected(0,5)",
                  "text": "Humidity (%H)",
                  "value": "humidity"
                },
                {
                  "click": "menuItemSelected(0,6)",
                  "text": "Decibel",
                  "value": "dB"
                },
                {
                  "click": "menuItemSelected(0,7)",
                  "text": "Hexadecimal (0x)",
                  "value": "hex0x"
                },
                {
                  "click": "menuItemSelected(0,8)",
                  "text": "Hexadecimal",
                  "value": "hex"
                },
                {
                  "click": "menuItemSelected(0,9)",
                  "text": "Scientific notation",
                  "value": "sci"
                },
                {
                  "click": "menuItemSelected(0,10)",
                  "text": "Locale format",
                  "value": "locale"
                },
                {
                  "click": "menuItemSelected(0,11)",
                  "text": "Pixels",
                  "value": "pixel"
                }
              ],
              "text": "Misc"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(1,0)",
                  "text": "Meters/sec²",
                  "value": "accMS2"
                },
                {
                  "click": "menuItemSelected(1,1)",
                  "text": "Feet/sec²",
                  "value": "accFS2"
                },
                {
                  "click": "menuItemSelected(1,2)",
                  "text": "G unit",
                  "value": "accG"
                }
              ],
              "text": "Acceleration"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(2,0)",
                  "text": "Degrees (°)",
                  "value": "degree"
                },
                {
                  "click": "menuItemSelected(2,1)",
                  "text": "Radians",
                  "value": "radian"
                },
                {
                  "click": "menuItemSelected(2,2)",
                  "text": "Gradian",
                  "value": "grad"
                },
                {
                  "click": "menuItemSelected(2,3)",
                  "text": "Arc Minutes",
                  "value": "arcmin"
                },
                {
                  "click": "menuItemSelected(2,4)",
                  "text": "Arc Seconds",
                  "value": "arcsec"
                }
              ],
              "text": "Angle"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(3,0)",
                  "text": "Square Meters (m²)",
                  "value": "areaM2"
                },
                {
                  "click": "menuItemSelected(3,1)",
                  "text": "Square Feet (ft²)",
                  "value": "areaF2"
                },
                {
                  "click": "menuItemSelected(3,2)",
                  "text": "Square Miles (mi²)",
                  "value": "areaMI2"
                }
              ],
              "text": "Area"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(4,0)",
                  "text": "FLOP/s",
                  "value": "flops"
                },
                {
                  "click": "menuItemSelected(4,1)",
                  "text": "MFLOP/s",
                  "value": "mflops"
                },
                {
                  "click": "menuItemSelected(4,2)",
                  "text": "GFLOP/s",
                  "value": "gflops"
                },
                {
                  "click": "menuItemSelected(4,3)",
                  "text": "TFLOP/s",
                  "value": "tflops"
                },
                {
                  "click": "menuItemSelected(4,4)",
                  "text": "PFLOP/s",
                  "value": "pflops"
                },
                {
                  "click": "menuItemSelected(4,5)",
                  "text": "EFLOP/s",
                  "value": "eflops"
                },
                {
                  "click": "menuItemSelected(4,6)",
                  "text": "ZFLOP/s",
                  "value": "zflops"
                },
                {
                  "click": "menuItemSelected(4,7)",
                  "text": "YFLOP/s",
                  "value": "yflops"
                }
              ],
              "text": "Computation"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(5,0)",
                  "text": "parts-per-million (ppm)",
                  "value": "ppm"
                },
                {
                  "click": "menuItemSelected(5,1)",
                  "text": "parts-per-billion (ppb)",
                  "value": "conppb"
                },
                {
                  "click": "menuItemSelected(5,2)",
                  "text": "nanogram per cubic meter (ng/m³)",
                  "value": "conngm3"
                },
                {
                  "click": "menuItemSelected(5,3)",
                  "text": "nanogram per normal cubic meter (ng/Nm³)",
                  "value": "conngNm3"
                },
                {
                  "click": "menuItemSelected(5,4)",
                  "text": "microgram per cubic meter (μg/m³)",
                  "value": "conμgm3"
                },
                {
                  "click": "menuItemSelected(5,5)",
                  "text": "microgram per normal cubic meter (μg/Nm³)",
                  "value": "conμgNm3"
                },
                {
                  "click": "menuItemSelected(5,6)",
                  "text": "milligram per cubic meter (mg/m³)",
                  "value": "conmgm3"
                },
                {
                  "click": "menuItemSelected(5,7)",
                  "text": "milligram per normal cubic meter (mg/Nm³)",
                  "value": "conmgNm3"
                },
                {
                  "click": "menuItemSelected(5,8)",
                  "text": "gram per cubic meter (g/m³)",
                  "value": "congm3"
                },
                {
                  "click": "menuItemSelected(5,9)",
                  "text": "gram per normal cubic meter (g/Nm³)",
                  "value": "congNm3"
                },
                {
                  "click": "menuItemSelected(5,10)",
                  "text": "milligrams per decilitre (mg/dL)",
                  "value": "conmgdL"
                },
                {
                  "click": "menuItemSelected(5,11)",
                  "text": "millimoles per litre (mmol/L)",
                  "value": "conmmolL"
                }
              ],
              "text": "Concentration"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(6,0)",
                  "text": "Dollars ($)",
                  "value": "currencyUSD"
                },
                {
                  "click": "menuItemSelected(6,1)",
                  "text": "Pounds (£)",
                  "value": "currencyGBP"
                },
                {
                  "click": "menuItemSelected(6,2)",
                  "text": "Euro (€)",
                  "value": "currencyEUR"
                },
                {
                  "click": "menuItemSelected(6,3)",
                  "text": "Yen (¥)",
                  "value": "currencyJPY"
                },
                {
                  "click": "menuItemSelected(6,4)",
                  "text": "Rubles (₽)",
                  "value": "currencyRUB"
                },
                {
                  "click": "menuItemSelected(6,5)",
                  "text": "Hryvnias (₴)",
                  "value": "currencyUAH"
                },
                {
                  "click": "menuItemSelected(6,6)",
                  "text": "Real (R$)",
                  "value": "currencyBRL"
                },
                {
                  "click": "menuItemSelected(6,7)",
                  "text": "Danish Krone (kr)",
                  "value": "currencyDKK"
                },
                {
                  "click": "menuItemSelected(6,8)",
                  "text": "Icelandic Króna (kr)",
                  "value": "currencyISK"
                },
                {
                  "click": "menuItemSelected(6,9)",
                  "text": "Norwegian Krone (kr)",
                  "value": "currencyNOK"
                },
                {
                  "click": "menuItemSelected(6,10)",
                  "text": "Swedish Krona (kr)",
                  "value": "currencySEK"
                },
                {
                  "click": "menuItemSelected(6,11)",
                  "text": "Czech koruna (czk)",
                  "value": "currencyCZK"
                },
                {
                  "click": "menuItemSelected(6,12)",
                  "text": "Swiss franc (CHF)",
                  "value": "currencyCHF"
                },
                {
                  "click": "menuItemSelected(6,13)",
                  "text": "Polish Złoty (PLN)",
                  "value": "currencyPLN"
                },
                {
                  "click": "menuItemSelected(6,14)",
                  "text": "Bitcoin (฿)",
                  "value": "currencyBTC"
                },
                {
                  "click": "menuItemSelected(6,15)",
                  "text": "Milli Bitcoin (฿)",
                  "value": "currencymBTC"
                },
                {
                  "click": "menuItemSelected(6,16)",
                  "text": "Micro Bitcoin (฿)",
                  "value": "currencyμBTC"
                },
                {
                  "click": "menuItemSelected(6,17)",
                  "text": "South African Rand (R)",
                  "value": "currencyZAR"
                },
                {
                  "click": "menuItemSelected(6,18)",
                  "text": "Indian Rupee (₹)",
                  "value": "currencyINR"
                },
                {
                  "click": "menuItemSelected(6,19)",
                  "text": "South Korean Won (₩)",
                  "value": "currencyKRW"
                }
              ],
              "text": "Currency"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(7,0)",
                  "text": "bytes(IEC)",
                  "value": "bytes"
                },
                {
                  "click": "menuItemSelected(7,1)",
                  "text": "bytes(SI)",
                  "value": "decbytes"
                },
                {
                  "click": "menuItemSelected(7,2)",
                  "text": "bits(IEC)",
                  "value": "bits"
                },
                {
                  "click": "menuItemSelected(7,3)",
                  "text": "bits(SI)",
                  "value": "decbits"
                },
                {
                  "click": "menuItemSelected(7,4)",
                  "text": "kibibytes",
                  "value": "kbytes"
                },
                {
                  "click": "menuItemSelected(7,5)",
                  "text": "kilobytes",
                  "value": "deckbytes"
                },
                {
                  "click": "menuItemSelected(7,6)",
                  "text": "mebibytes",
                  "value": "mbytes"
                },
                {
                  "click": "menuItemSelected(7,7)",
                  "text": "megabytes",
                  "value": "decmbytes"
                },
                {
                  "click": "menuItemSelected(7,8)",
                  "text": "gibibytes",
                  "value": "gbytes"
                },
                {
                  "click": "menuItemSelected(7,9)",
                  "text": "gigabytes",
                  "value": "decgbytes"
                },
                {
                  "click": "menuItemSelected(7,10)",
                  "text": "tebibytes",
                  "value": "tbytes"
                },
                {
                  "click": "menuItemSelected(7,11)",
                  "text": "terabytes",
                  "value": "dectbytes"
                },
                {
                  "click": "menuItemSelected(7,12)",
                  "text": "pebibytes",
                  "value": "pbytes"
                },
                {
                  "click": "menuItemSelected(7,13)",
                  "text": "petabytes",
                  "value": "decpbytes"
                }
              ],
              "text": "Data"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(8,0)",
                  "text": "packets/sec",
                  "value": "pps"
                },
                {
                  "click": "menuItemSelected(8,1)",
                  "text": "bytes/sec(IEC)",
                  "value": "binBps"
                },
                {
                  "click": "menuItemSelected(8,2)",
                  "text": "bytes/sec(SI)",
                  "value": "Bps"
                },
                {
                  "click": "menuItemSelected(8,3)",
                  "text": "bits/sec(IEC)",
                  "value": "binbps"
                },
                {
                  "click": "menuItemSelected(8,4)",
                  "text": "bits/sec(SI)",
                  "value": "bps"
                },
                {
                  "click": "menuItemSelected(8,5)",
                  "text": "kibibytes/sec",
                  "value": "KiBs"
                },
                {
                  "click": "menuItemSelected(8,6)",
                  "text": "kibibits/sec",
                  "value": "Kibits"
                },
                {
                  "click": "menuItemSelected(8,7)",
                  "text": "kilobytes/sec",
                  "value": "KBs"
                },
                {
                  "click": "menuItemSelected(8,8)",
                  "text": "kilobits/sec",
                  "value": "Kbits"
                },
                {
                  "click": "menuItemSelected(8,9)",
                  "text": "mibibytes/sec",
                  "value": "MiBs"
                },
                {
                  "click": "menuItemSelected(8,10)",
                  "text": "mibibits/sec",
                  "value": "Mibits"
                },
                {
                  "click": "menuItemSelected(8,11)",
                  "text": "megabytes/sec",
                  "value": "MBs"
                },
                {
                  "click": "menuItemSelected(8,12)",
                  "text": "megabits/sec",
                  "value": "Mbits"
                },
                {
                  "click": "menuItemSelected(8,13)",
                  "text": "gibibytes/sec",
                  "value": "GiBs"
                },
                {
                  "click": "menuItemSelected(8,14)",
                  "text": "gibibits/sec",
                  "value": "Gibits"
                },
                {
                  "click": "menuItemSelected(8,15)",
                  "text": "gigabytes/sec",
                  "value": "GBs"
                },
                {
                  "click": "menuItemSelected(8,16)",
                  "text": "gigabits/sec",
                  "value": "Gbits"
                },
                {
                  "click": "menuItemSelected(8,17)",
                  "text": "tebibytes/sec",
                  "value": "TiBs"
                },
                {
                  "click": "menuItemSelected(8,18)",
                  "text": "tebibits/sec",
                  "value": "Tibits"
                },
                {
                  "click": "menuItemSelected(8,19)",
                  "text": "terabytes/sec",
                  "value": "TBs"
                },
                {
                  "click": "menuItemSelected(8,20)",
                  "text": "terabits/sec",
                  "value": "Tbits"
                },
                {
                  "click": "menuItemSelected(8,21)",
                  "text": "petibytes/sec",
                  "value": "PiBs"
                },
                {
                  "click": "menuItemSelected(8,22)",
                  "text": "petibits/sec",
                  "value": "Pibits"
                },
                {
                  "click": "menuItemSelected(8,23)",
                  "text": "petabytes/sec",
                  "value": "PBs"
                },
                {
                  "click": "menuItemSelected(8,24)",
                  "text": "petabits/sec",
                  "value": "Pbits"
                }
              ],
              "text": "Data rate"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(9,0)",
                  "text": "Datetime ISO",
                  "value": "dateTimeAsIso"
                },
                {
                  "click": "menuItemSelected(9,1)",
                  "text": "Datetime ISO (No date if today)",
                  "value": "dateTimeAsIsoNoDateIfToday"
                },
                {
                  "click": "menuItemSelected(9,2)",
                  "text": "Datetime US",
                  "value": "dateTimeAsUS"
                },
                {
                  "click": "menuItemSelected(9,3)",
                  "text": "Datetime US (No date if today)",
                  "value": "dateTimeAsUSNoDateIfToday"
                },
                {
                  "click": "menuItemSelected(9,4)",
                  "text": "Datetime local",
                  "value": "dateTimeAsLocal"
                },
                {
                  "click": "menuItemSelected(9,5)",
                  "text": "Datetime default",
                  "value": "dateTimeAsSystem"
                },
                {
                  "click": "menuItemSelected(9,6)",
                  "text": "From Now",
                  "value": "dateTimeFromNow"
                }
              ],
              "text": "Date & time"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(10,0)",
                  "text": "Watt (W)",
                  "value": "watt"
                },
                {
                  "click": "menuItemSelected(10,1)",
                  "text": "Kilowatt (kW)",
                  "value": "kwatt"
                },
                {
                  "click": "menuItemSelected(10,2)",
                  "text": "Megawatt (MW)",
                  "value": "megwatt"
                },
                {
                  "click": "menuItemSelected(10,3)",
                  "text": "Gigawatt (GW)",
                  "value": "gwatt"
                },
                {
                  "click": "menuItemSelected(10,4)",
                  "text": "Milliwatt (mW)",
                  "value": "mwatt"
                },
                {
                  "click": "menuItemSelected(10,5)",
                  "text": "Watt per square meter (W/m²)",
                  "value": "Wm2"
                },
                {
                  "click": "menuItemSelected(10,6)",
                  "text": "Volt-ampere (VA)",
                  "value": "voltamp"
                },
                {
                  "click": "menuItemSelected(10,7)",
                  "text": "Kilovolt-ampere (kVA)",
                  "value": "kvoltamp"
                },
                {
                  "click": "menuItemSelected(10,8)",
                  "text": "Volt-ampere reactive (var)",
                  "value": "voltampreact"
                },
                {
                  "click": "menuItemSelected(10,9)",
                  "text": "Kilovolt-ampere reactive (kvar)",
                  "value": "kvoltampreact"
                },
                {
                  "click": "menuItemSelected(10,10)",
                  "text": "Watt-hour (Wh)",
                  "value": "watth"
                },
                {
                  "click": "menuItemSelected(10,11)",
                  "text": "Watt-hour per Kilogram (Wh/kg)",
                  "value": "watthperkg"
                },
                {
                  "click": "menuItemSelected(10,12)",
                  "text": "Kilowatt-hour (kWh)",
                  "value": "kwatth"
                },
                {
                  "click": "menuItemSelected(10,13)",
                  "text": "Kilowatt-min (kWm)",
                  "value": "kwattm"
                },
                {
                  "click": "menuItemSelected(10,14)",
                  "text": "Ampere-hour (Ah)",
                  "value": "amph"
                },
                {
                  "click": "menuItemSelected(10,15)",
                  "text": "Kiloampere-hour (kAh)",
                  "value": "kamph"
                },
                {
                  "click": "menuItemSelected(10,16)",
                  "text": "Milliampere-hour (mAh)",
                  "value": "mamph"
                },
                {
                  "click": "menuItemSelected(10,17)",
                  "text": "Joule (J)",
                  "value": "joule"
                },
                {
                  "click": "menuItemSelected(10,18)",
                  "text": "Electron volt (eV)",
                  "value": "ev"
                },
                {
                  "click": "menuItemSelected(10,19)",
                  "text": "Ampere (A)",
                  "value": "amp"
                },
                {
                  "click": "menuItemSelected(10,20)",
                  "text": "Kiloampere (kA)",
                  "value": "kamp"
                },
                {
                  "click": "menuItemSelected(10,21)",
                  "text": "Milliampere (mA)",
                  "value": "mamp"
                },
                {
                  "click": "menuItemSelected(10,22)",
                  "text": "Volt (V)",
                  "value": "volt"
                },
                {
                  "click": "menuItemSelected(10,23)",
                  "text": "Kilovolt (kV)",
                  "value": "kvolt"
                },
                {
                  "click": "menuItemSelected(10,24)",
                  "text": "Millivolt (mV)",
                  "value": "mvolt"
                },
                {
                  "click": "menuItemSelected(10,25)",
                  "text": "Decibel-milliwatt (dBm)",
                  "value": "dBm"
                },
                {
                  "click": "menuItemSelected(10,26)",
                  "text": "Ohm (Ω)",
                  "value": "ohm"
                },
                {
                  "click": "menuItemSelected(10,27)",
                  "text": "Kiloohm (kΩ)",
                  "value": "kohm"
                },
                {
                  "click": "menuItemSelected(10,28)",
                  "text": "Megaohm (MΩ)",
                  "value": "Mohm"
                },
                {
                  "click": "menuItemSelected(10,29)",
                  "text": "Farad (F)",
                  "value": "farad"
                },
                {
                  "click": "menuItemSelected(10,30)",
                  "text": "Microfarad (µF)",
                  "value": "µfarad"
                },
                {
                  "click": "menuItemSelected(10,31)",
                  "text": "Nanofarad (nF)",
                  "value": "nfarad"
                },
                {
                  "click": "menuItemSelected(10,32)",
                  "text": "Picofarad (pF)",
                  "value": "pfarad"
                },
                {
                  "click": "menuItemSelected(10,33)",
                  "text": "Femtofarad (fF)",
                  "value": "ffarad"
                },
                {
                  "click": "menuItemSelected(10,34)",
                  "text": "Henry (H)",
                  "value": "henry"
                },
                {
                  "click": "menuItemSelected(10,35)",
                  "text": "Millihenry (mH)",
                  "value": "mhenry"
                },
                {
                  "click": "menuItemSelected(10,36)",
                  "text": "Microhenry (µH)",
                  "value": "µhenry"
                },
                {
                  "click": "menuItemSelected(10,37)",
                  "text": "Lumens (Lm)",
                  "value": "lumens"
                }
              ],
              "text": "Energy"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(11,0)",
                  "text": "Gallons/min (gpm)",
                  "value": "flowgpm"
                },
                {
                  "click": "menuItemSelected(11,1)",
                  "text": "Cubic meters/sec (cms)",
                  "value": "flowcms"
                },
                {
                  "click": "menuItemSelected(11,2)",
                  "text": "Cubic feet/sec (cfs)",
                  "value": "flowcfs"
                },
                {
                  "click": "menuItemSelected(11,3)",
                  "text": "Cubic feet/min (cfm)",
                  "value": "flowcfm"
                },
                {
                  "click": "menuItemSelected(11,4)",
                  "text": "Litre/hour",
                  "value": "litreh"
                },
                {
                  "click": "menuItemSelected(11,5)",
                  "text": "Litre/min (L/min)",
                  "value": "flowlpm"
                },
                {
                  "click": "menuItemSelected(11,6)",
                  "text": "milliLitre/min (mL/min)",
                  "value": "flowmlpm"
                },
                {
                  "click": "menuItemSelected(11,7)",
                  "text": "Lux (lx)",
                  "value": "lux"
                }
              ],
              "text": "Flow"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(12,0)",
                  "text": "Newton-meters (Nm)",
                  "value": "forceNm"
                },
                {
                  "click": "menuItemSelected(12,1)",
                  "text": "Kilonewton-meters (kNm)",
                  "value": "forcekNm"
                },
                {
                  "click": "menuItemSelected(12,2)",
                  "text": "Newtons (N)",
                  "value": "forceN"
                },
                {
                  "click": "menuItemSelected(12,3)",
                  "text": "Kilonewtons (kN)",
                  "value": "forcekN"
                }
              ],
              "text": "Force"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(13,0)",
                  "text": "hashes/sec",
                  "value": "Hs"
                },
                {
                  "click": "menuItemSelected(13,1)",
                  "text": "kilohashes/sec",
                  "value": "KHs"
                },
                {
                  "click": "menuItemSelected(13,2)",
                  "text": "megahashes/sec",
                  "value": "MHs"
                },
                {
                  "click": "menuItemSelected(13,3)",
                  "text": "gigahashes/sec",
                  "value": "GHs"
                },
                {
                  "click": "menuItemSelected(13,4)",
                  "text": "terahashes/sec",
                  "value": "THs"
                },
                {
                  "click": "menuItemSelected(13,5)",
                  "text": "petahashes/sec",
                  "value": "PHs"
                },
                {
                  "click": "menuItemSelected(13,6)",
                  "text": "exahashes/sec",
                  "value": "EHs"
                }
              ],
              "text": "Hash rate"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(14,0)",
                  "text": "milligram (mg)",
                  "value": "massmg"
                },
                {
                  "click": "menuItemSelected(14,1)",
                  "text": "gram (g)",
                  "value": "massg"
                },
                {
                  "click": "menuItemSelected(14,2)",
                  "text": "kilogram (kg)",
                  "value": "masskg"
                },
                {
                  "click": "menuItemSelected(14,3)",
                  "text": "metric ton (t)",
                  "value": "masst"
                }
              ],
              "text": "Mass"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(15,0)",
                  "text": "millimeter (mm)",
                  "value": "lengthmm"
                },
                {
                  "click": "menuItemSelected(15,1)",
                  "text": "feet (ft)",
                  "value": "lengthft"
                },
                {
                  "click": "menuItemSelected(15,2)",
                  "text": "meter (m)",
                  "value": "lengthm"
                },
                {
                  "click": "menuItemSelected(15,3)",
                  "text": "kilometer (km)",
                  "value": "lengthkm"
                },
                {
                  "click": "menuItemSelected(15,4)",
                  "text": "mile (mi)",
                  "value": "lengthmi"
                }
              ],
              "text": "Length"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(16,0)",
                  "text": "Millibars",
                  "value": "pressurembar"
                },
                {
                  "click": "menuItemSelected(16,1)",
                  "text": "Bars",
                  "value": "pressurebar"
                },
                {
                  "click": "menuItemSelected(16,2)",
                  "text": "Kilobars",
                  "value": "pressurekbar"
                },
                {
                  "click": "menuItemSelected(16,3)",
                  "text": "Pascals",
                  "value": "pressurepa"
                },
                {
                  "click": "menuItemSelected(16,4)",
                  "text": "Hectopascals",
                  "value": "pressurehpa"
                },
                {
                  "click": "menuItemSelected(16,5)",
                  "text": "Kilopascals",
                  "value": "pressurekpa"
                },
                {
                  "click": "menuItemSelected(16,6)",
                  "text": "Inches of mercury",
                  "value": "pressurehg"
                },
                {
                  "click": "menuItemSelected(16,7)",
                  "text": "PSI",
                  "value": "pressurepsi"
                }
              ],
              "text": "Pressure"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(17,0)",
                  "text": "Becquerel (Bq)",
                  "value": "radbq"
                },
                {
                  "click": "menuItemSelected(17,1)",
                  "text": "curie (Ci)",
                  "value": "radci"
                },
                {
                  "click": "menuItemSelected(17,2)",
                  "text": "Gray (Gy)",
                  "value": "radgy"
                },
                {
                  "click": "menuItemSelected(17,3)",
                  "text": "rad",
                  "value": "radrad"
                },
                {
                  "click": "menuItemSelected(17,4)",
                  "text": "Sievert (Sv)",
                  "value": "radsv"
                },
                {
                  "click": "menuItemSelected(17,5)",
                  "text": "milliSievert (mSv)",
                  "value": "radmsv"
                },
                {
                  "click": "menuItemSelected(17,6)",
                  "text": "microSievert (µSv)",
                  "value": "radusv"
                },
                {
                  "click": "menuItemSelected(17,7)",
                  "text": "rem",
                  "value": "radrem"
                },
                {
                  "click": "menuItemSelected(17,8)",
                  "text": "Exposure (C/kg)",
                  "value": "radexpckg"
                },
                {
                  "click": "menuItemSelected(17,9)",
                  "text": "roentgen (R)",
                  "value": "radr"
                },
                {
                  "click": "menuItemSelected(17,10)",
                  "text": "Sievert/hour (Sv/h)",
                  "value": "radsvh"
                },
                {
                  "click": "menuItemSelected(17,11)",
                  "text": "milliSievert/hour (mSv/h)",
                  "value": "radmsvh"
                },
                {
                  "click": "menuItemSelected(17,12)",
                  "text": "microSievert/hour (µSv/h)",
                  "value": "radusvh"
                }
              ],
              "text": "Radiation"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(18,0)",
                  "text": "Revolutions per minute (rpm)",
                  "value": "rotrpm"
                },
                {
                  "click": "menuItemSelected(18,1)",
                  "text": "Hertz (Hz)",
                  "value": "rothz"
                },
                {
                  "click": "menuItemSelected(18,2)",
                  "text": "Radians per second (rad/s)",
                  "value": "rotrads"
                },
                {
                  "click": "menuItemSelected(18,3)",
                  "text": "Degrees per second (°/s)",
                  "value": "rotdegs"
                }
              ],
              "text": "Rotational Speed"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(19,0)",
                  "text": "Celsius (°C)",
                  "value": "celsius"
                },
                {
                  "click": "menuItemSelected(19,1)",
                  "text": "Fahrenheit (°F)",
                  "value": "fahrenheit"
                },
                {
                  "click": "menuItemSelected(19,2)",
                  "text": "Kelvin (K)",
                  "value": "kelvin"
                }
              ],
              "text": "Temperature"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(20,0)",
                  "text": "Hertz (1/s)",
                  "value": "hertz"
                },
                {
                  "click": "menuItemSelected(20,1)",
                  "text": "nanoseconds (ns)",
                  "value": "ns"
                },
                {
                  "click": "menuItemSelected(20,2)",
                  "text": "microseconds (µs)",
                  "value": "µs"
                },
                {
                  "click": "menuItemSelected(20,3)",
                  "text": "milliseconds (ms)",
                  "value": "ms"
                },
                {
                  "click": "menuItemSelected(20,4)",
                  "text": "seconds (s)",
                  "value": "s"
                },
                {
                  "click": "menuItemSelected(20,5)",
                  "text": "minutes (m)",
                  "value": "m"
                },
                {
                  "click": "menuItemSelected(20,6)",
                  "text": "hours (h)",
                  "value": "h"
                },
                {
                  "click": "menuItemSelected(20,7)",
                  "text": "days (d)",
                  "value": "d"
                },
                {
                  "click": "menuItemSelected(20,8)",
                  "text": "duration (ms)",
                  "value": "dtdurationms"
                },
                {
                  "click": "menuItemSelected(20,9)",
                  "text": "duration (s)",
                  "value": "dtdurations"
                },
                {
                  "click": "menuItemSelected(20,10)",
                  "text": "duration (hh:mm:ss)",
                  "value": "dthms"
                },
                {
                  "click": "menuItemSelected(20,11)",
                  "text": "duration (d hh:mm:ss)",
                  "value": "dtdhms"
                },
                {
                  "click": "menuItemSelected(20,12)",
                  "text": "Timeticks (s/100)",
                  "value": "timeticks"
                },
                {
                  "click": "menuItemSelected(20,13)",
                  "text": "clock (ms)",
                  "value": "clockms"
                },
                {
                  "click": "menuItemSelected(20,14)",
                  "text": "clock (s)",
                  "value": "clocks"
                }
              ],
              "text": "Time"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(21,0)",
                  "text": "counts/sec (cps)",
                  "value": "cps"
                },
                {
                  "click": "menuItemSelected(21,1)",
                  "text": "ops/sec (ops)",
                  "value": "ops"
                },
                {
                  "click": "menuItemSelected(21,2)",
                  "text": "requests/sec (rps)",
                  "value": "reqps"
                },
                {
                  "click": "menuItemSelected(21,3)",
                  "text": "reads/sec (rps)",
                  "value": "rps"
                },
                {
                  "click": "menuItemSelected(21,4)",
                  "text": "writes/sec (wps)",
                  "value": "wps"
                },
                {
                  "click": "menuItemSelected(21,5)",
                  "text": "I/O ops/sec (iops)",
                  "value": "iops"
                },
                {
                  "click": "menuItemSelected(21,6)",
                  "text": "counts/min (cpm)",
                  "value": "cpm"
                },
                {
                  "click": "menuItemSelected(21,7)",
                  "text": "ops/min (opm)",
                  "value": "opm"
                },
                {
                  "click": "menuItemSelected(21,8)",
                  "text": "reads/min (rpm)",
                  "value": "rpm"
                },
                {
                  "click": "menuItemSelected(21,9)",
                  "text": "writes/min (wpm)",
                  "value": "wpm"
                }
              ],
              "text": "Throughput"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(22,0)",
                  "text": "meters/second (m/s)",
                  "value": "velocityms"
                },
                {
                  "click": "menuItemSelected(22,1)",
                  "text": "kilometers/hour (km/h)",
                  "value": "velocitykmh"
                },
                {
                  "click": "menuItemSelected(22,2)",
                  "text": "miles/hour (mph)",
                  "value": "velocitymph"
                },
                {
                  "click": "menuItemSelected(22,3)",
                  "text": "knot (kn)",
                  "value": "velocityknot"
                }
              ],
              "text": "Velocity"
            },
            {
              "submenu": [
                {
                  "click": "menuItemSelected(23,0)",
                  "text": "millilitre (mL)",
                  "value": "mlitre"
                },
                {
                  "click": "menuItemSelected(23,1)",
                  "text": "litre (L)",
                  "value": "litre"
                },
                {
                  "click": "menuItemSelected(23,2)",
                  "text": "cubic meter",
                  "value": "m3"
                },
                {
                  "click": "menuItemSelected(23,3)",
                  "text": "Normal cubic meter",
                  "value": "Nm3"
                },
                {
                  "click": "menuItemSelected(23,4)",
                  "text": "cubic decimeter",
                  "value": "dm3"
                },
                {
                  "click": "menuItemSelected(23,5)",
                  "text": "gallons",
                  "value": "gallons"
                }
              ],
              "text": "Volume"
            }
          ],
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ]
        },
        {
          "aliasColors": {
            "Average Event Duration": "rgb(30, 139, 234)"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ELASTICSEARCH}",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 8,
            "w": 11,
            "x": 0,
            "y": 9
          },
          "hiddenSeries": false,
          "id": 2,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 3,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.3.7",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "Average Event Duration",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "event.duration",
                  "id": "1",
                  "inlineScript": "_value / 100000",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value / 100000"
                    }
                  },
                  "type": "avg"
                }
              ],
              "query": "service.type: postgresql AND host.hostname: $host AND postgresql.activity.database.name: $database AND postgresql.activity.user.name: $user",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Postgresql Event Duration Average",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "µs",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {
            "Active Connection": "dark-red",
            "Disabled Connection": "rgb(9, 137, 242)",
            "Empty Connection": "dark-green",
            "Idle Connection": "dark-orange",
            "Idle in Transaction (Aborted) Connection": "rgb(252, 110, 15)",
            "Idle in Transaction Connection": "rgb(9, 200, 231)",
            "fastpath function call": "light-purple"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ELASTICSEARCH}",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 8,
            "w": 13,
            "x": 11,
            "y": 9
          },
          "hiddenSeries": false,
          "id": 19,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sort": "avg",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 3,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.3.7",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "Active Connection",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "select field",
                  "id": "1",
                  "type": "count"
                }
              ],
              "query": "host.hostname: $host AND postgresql.activity.database.name: $database AND postgresql.activity.user.name: $user AND postgresql.activity.state: \"active\"",
              "refId": "A",
              "timeField": "@timestamp"
            },
            {
              "alias": "Idle Connection",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "hide": false,
              "metrics": [
                {
                  "field": "select field",
                  "id": "1",
                  "type": "count"
                }
              ],
              "query": "host.hostname: $host AND postgresql.activity.database.name: $database AND postgresql.activity.user.name: $user AND postgresql.activity.state: \"idle\"",
              "refId": "B",
              "timeField": "@timestamp"
            },
            {
              "alias": "Idle in Transaction Connection",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "select field",
                  "id": "1",
                  "type": "count"
                }
              ],
              "query": "host.hostname: $host AND postgresql.activity.database.name: $database AND postgresql.activity.user.name: $user AND postgresql.activity.state: \"idle in transaction\"",
              "refId": "C",
              "timeField": "@timestamp"
            },
            {
              "alias": "Idle in Transaction (Aborted) Connection",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "select field",
                  "id": "1",
                  "type": "count"
                }
              ],
              "query": "host.hostname: $host AND postgresql.activity.database.name: $database AND postgresql.activity.user.name: $user AND postgresql.activity.state: \"idle in transaction (aborted)\"",
              "refId": "D",
              "timeField": "@timestamp"
            },
            {
              "alias": "Empty Connection",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "select field",
                  "id": "1",
                  "type": "count"
                }
              ],
              "query": "host.hostname: $host AND postgresql.activity.database.name: $database AND postgresql.activity.user.name: $user AND postgresql.activity.state: \"\"",
              "refId": "E",
              "timeField": "@timestamp"
            },
            {
              "alias": "Disabled Connection",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "select field",
                  "id": "1",
                  "type": "count"
                }
              ],
              "query": "host.hostname: $host AND postgresql.activity.database.name: $database AND postgresql.activity.user.name: $user AND postgresql.activity.state: \"disabled\"",
              "refId": "F",
              "timeField": "@timestamp"
            },
            {
              "alias": "fastpath function call",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "select field",
                  "id": "1",
                  "type": "count"
                }
              ],
              "query": "host.hostname: $host AND postgresql.activity.database.name: $database AND postgresql.activity.user.name: $user AND postgresql.activity.state: \"fastpath function call\"",
              "refId": "G",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Connections",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {
            "DELETE": "rgb(239, 174, 7)",
            "Derivative Average postgresql.database.rows.deleted": "dark-yellow",
            "Derivative Average postgresql.database.rows.inserted": "dark-green",
            "Derivative Average postgresql.database.rows.updated": "dark-blue",
            "INSERT": "rgb(244, 11, 38)",
            "UPDATE": "rgb(10, 207, 239)"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ELASTICSEARCH}",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 0,
            "y": 17
          },
          "hiddenSeries": false,
          "id": 32,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 3,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.3.7",
          "pointradius": 3,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "INSERT",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.database.rows.inserted",
                  "hide": true,
                  "id": "1",
                  "inlineScript": "_value/10",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value/10"
                    }
                  },
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host AND postgresql.database.name: $database",
              "refId": "A",
              "timeField": "@timestamp"
            },
            {
              "alias": "DELETE",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.database.rows.deleted",
                  "hide": true,
                  "id": "1",
                  "inlineScript": "_value/10",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value/10"
                    }
                  },
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host AND postgresql.database.name: $database",
              "refId": "B",
              "timeField": "@timestamp"
            },
            {
              "alias": "UPDATE",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.database.rows.updated",
                  "hide": true,
                  "id": "1",
                  "inlineScript": "_value/10",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value/10"
                    }
                  },
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host AND postgresql.database.name: $database",
              "refId": "C",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "UPDATE - DELETE - INSERT OPERATIONS",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {
            "Average postgresql.database.blocks.hit": "dark-purple",
            "Block Hit": "rgb(58, 216, 39)",
            "Block Read": "dark-red"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ELASTICSEARCH}",
          "decimals": null,
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 12,
            "y": 17
          },
          "hiddenSeries": false,
          "id": 34,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": false,
            "hideEmpty": false,
            "hideZero": false,
            "max": true,
            "min": true,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.3.7",
          "pointradius": 3,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "Block Hit",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.database.blocks.hit",
                  "hide": true,
                  "id": "1",
                  "inlineScript": "_value / 8192",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value / 8192"
                    }
                  },
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host AND postgresql.database.name: $database",
              "refId": "A",
              "timeField": "@timestamp"
            },
            {
              "alias": "Block Read",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.database.blocks.read",
                  "hide": true,
                  "id": "1",
                  "inlineScript": "_value / 8192",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value / 8192"
                    }
                  },
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host AND postgresql.database.name: $database",
              "refId": "B",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Blocks Hit / Read",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 2,
              "format": "decmbytes",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {
            "Average postgresql.database.rows.fetched": "dark-orange",
            "Derivative Average postgresql.database.rows.fetched": "dark-yellow",
            "Rows Fetched": "rgb(165, 12, 242)"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ELASTICSEARCH}",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 2,
          "fillGradient": 10,
          "gridPos": {
            "h": 7,
            "w": 12,
            "x": 0,
            "y": 25
          },
          "hiddenSeries": false,
          "id": 27,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": false,
            "max": true,
            "min": true,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.3.7",
          "pointradius": 1,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "Rows Fetched",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "hide": false,
              "metrics": [
                {
                  "field": "postgresql.database.rows.fetched",
                  "hide": true,
                  "id": "1",
                  "inlineScript": "_value",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value"
                    }
                  },
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host AND postgresql.database.name: $database",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Database Rows Fetched",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {
            "Commit Transactions": "rgb(247, 180, 11)",
            "Rollback Transactions": "semi-dark-green"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ELASTICSEARCH}",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 0,
          "fillGradient": 7,
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 12,
            "y": 25
          },
          "hiddenSeries": false,
          "id": 49,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": false,
            "max": true,
            "min": true,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.3.7",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "Rollback Transactions",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.database.transactions.rollback",
                  "hide": true,
                  "id": "1",
                  "inlineScript": "_value/10",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value/10"
                    }
                  },
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host AND postgresql.database.name: $database",
              "refId": "A",
              "timeField": "@timestamp"
            },
            {
              "alias": "Commit Transactions",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.database.transactions.commit",
                  "hide": true,
                  "id": "1",
                  "inlineScript": "_value/10",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value/10"
                    }
                  },
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host AND postgresql.database.name: $database",
              "refId": "B",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Commit / Rollback Transactions",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {
            "Average postgresql.database.rows.fetched": "dark-orange",
            "Average postgresql.database.rows.returned": "dark-yellow",
            "Derivative Average postgresql.database.rows.returned": "dark-orange",
            "Rows Returned": "semi-dark-orange"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ELASTICSEARCH}",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 0,
            "y": 32
          },
          "hiddenSeries": false,
          "id": 28,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 2,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.3.7",
          "pointradius": 3,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "Rows Returned",
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "@timestamp",
                  "id": "3",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "hide": false,
              "metrics": [
                {
                  "field": "postgresql.database.rows.returned",
                  "hide": true,
                  "id": "1",
                  "inlineScript": null,
                  "meta": {},
                  "pipelineAgg": "select metric",
                  "settings": {},
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "4",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host AND postgresql.database.name: $database",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Database Rows Returned",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {
            "Average postgresql.database.blocks.hit": "dark-purple",
            "Derivative Average postgresql.database.temporary.bytes": "super-light-purple",
            "Temp files size": "semi-dark-blue"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ELASTICSEARCH}",
          "decimals": null,
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": [],
              "unit": "none"
            },
            "overrides": []
          },
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 12,
            "y": 33
          },
          "hiddenSeries": false,
          "id": 80,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "hideEmpty": false,
            "hideZero": false,
            "max": true,
            "min": false,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.3.7",
          "pointradius": 3,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "Temp file count",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.database.temporary.files",
                  "hide": true,
                  "id": "1",
                  "inlineScript": null,
                  "meta": {},
                  "pipelineAgg": "select metric",
                  "settings": {},
                  "type": "sum"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host AND postgresql.database.name: $database",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Number of Temp Files",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": null,
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {
            "Average postgresql.database.blocks.hit": "dark-purple",
            "Derivative Average postgresql.database.temporary.bytes": "super-light-purple",
            "Temp files size": "rgb(7, 244, 155)"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ELASTICSEARCH}",
          "decimals": null,
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 0,
            "y": 40
          },
          "hiddenSeries": false,
          "id": 45,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "hideEmpty": false,
            "hideZero": false,
            "max": true,
            "min": false,
            "rightSide": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.3.7",
          "pointradius": 3,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "Temp files size",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.database.temporary.bytes",
                  "hide": true,
                  "id": "1",
                  "inlineScript": "_value / 1073741824",
                  "meta": {},
                  "pipelineAgg": "select metric",
                  "settings": {
                    "script": {
                      "inline": "_value / 1073741824"
                    }
                  },
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host AND postgresql.database.name: $database",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Size of Temp Files",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 2,
              "format": "decgbytes",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {
            "Fsync calls by a backend": "rgb(229, 149, 142)",
            "Witten during checkpoint": "dark-purple",
            "Written during checkpoint": "rgb(29, 14, 239)",
            "bgwriter.buffers.clean": "rgb(252, 112, 18)",
            "written directly by a backend.": "rgb(13, 205, 236)"
          },
          "bars": false,
          "cacheTimeout": null,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ELASTICSEARCH}",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 7,
            "w": 24,
            "x": 0,
            "y": 49
          },
          "hiddenSeries": false,
          "id": 47,
          "interval": "",
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": false,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.3.7",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "h",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "Written during checkpoint",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "hide": false,
              "metrics": [
                {
                  "field": "postgresql.bgwriter.buffers.checkpoints",
                  "hide": true,
                  "id": "1",
                  "inlineScript": "_value * 8192",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value * 8192"
                    }
                  },
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host",
              "refId": "A",
              "timeField": "@timestamp"
            },
            {
              "alias": "Allocated",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "hide": false,
              "metrics": [
                {
                  "field": "postgresql.bgwriter.buffers.allocated",
                  "hide": true,
                  "id": "1",
                  "inlineScript": "_value * 8192",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value * 8192"
                    }
                  },
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host",
              "refId": "B",
              "timeField": "@timestamp"
            },
            {
              "alias": "written directly by a backend.",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.bgwriter.buffers.backend",
                  "hide": true,
                  "id": "1",
                  "inlineScript": "_value * 8192",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value * 8192"
                    }
                  },
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host",
              "refId": "C",
              "timeField": "@timestamp"
            },
            {
              "alias": "bgwriter.buffers.clean",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.bgwriter.buffers.clean",
                  "hide": true,
                  "id": "1",
                  "inlineScript": "_value * 8192",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value * 8192"
                    }
                  },
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host",
              "refId": "D",
              "timeField": "@timestamp"
            },
            {
              "alias": "Fsync calls by a backend",
              "bucketAggs": [
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "metrics": [
                {
                  "field": "postgresql.bgwriter.buffers.backend_fsync",
                  "hide": true,
                  "id": "1",
                  "inlineScript": "_value * 8192",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value * 8192"
                    }
                  },
                  "type": "avg"
                },
                {
                  "field": "1",
                  "id": "3",
                  "meta": {},
                  "pipelineAgg": "1",
                  "settings": {},
                  "type": "derivative"
                }
              ],
              "query": "host.hostname: $host",
              "refId": "E",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Buffers",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "transparent": true,
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "bytes",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {
            "PostgreSQL JDBC Driver": "dark-red",
            "r2dbc-postgresql": "rgb(83, 216, 39)"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ELASTICSEARCH}",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 8,
            "w": 24,
            "x": 0,
            "y": 56
          },
          "hiddenSeries": false,
          "hideTimeOverride": true,
          "id": 4,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": false,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "sort": "avg",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 2,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.3.7",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": true,
          "steppedLine": false,
          "targets": [
            {
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "postgresql.activity.application_name",
                  "id": "3",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_term",
                    "size": "0"
                  },
                  "type": "terms"
                },
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "10s",
                    "min_doc_count": 0,
                    "offset": "-15s",
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "hide": false,
              "metrics": [
                {
                  "field": "select field",
                  "id": "1",
                  "type": "count"
                }
              ],
              "query": "service.type: postgresql AND host.hostname: oksijen* AND postgresql.activity.database.name: $database AND postgresql.activity.user.name: $user",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Postgresql with Application Activity",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "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": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "title": "DB General Statistics",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": "${DS_ELASTICSEARCH}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 49
      },
      "id": 72,
      "panels": [
        {
          "datasource": "${DS_POSTGRESQL}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "align": "center",
                "displayMode": "color-background",
                "filterable": true
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 8,
            "w": 23,
            "x": 0,
            "y": 1
          },
          "id": 61,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": false,
                "displayName": "Hostname"
              }
            ]
          },
          "pluginVersion": "7.3.7",
          "targets": [
            {
              "format": "table",
              "group": [],
              "metricColumn": "none",
              "rawQuery": true,
              "rawSql": "SELECT\n--host AS \"Hostname\",\ndatabase AS \"Database\",\nschemaname AS \"Schema\",\ntablename AS \"Table\",\nlive_tuple AS \"Live Tuples\",\ndead_tuple AS \"Dead Tuples\",\n((dead_tuple/(live_tuple+dead_tuple)::float)*100)::int AS \"Dead Percentage%\",\nto_char(last_autovacuum, 'YYYY-MM-DD HH24:MI:SS' ) AS \"Last Autovacuum Date\"\nFROM\n  grafana.deadtuplestat\nWHERE \nhost like 'oksijen%'\n--database = $database \nAND \nschemaname NOT LIKE 'pg%' ",
              "refId": "A",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "column"
                  }
                ]
              ],
              "timeColumn": "time",
              "where": [
                {
                  "name": "$__timeFilter",
                  "params": [],
                  "type": "macro"
                }
              ]
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Table Vacuum Status",
          "type": "table"
        },
        {
          "datasource": "${DS_POSTGRESQL}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "align": "center",
                "displayMode": "color-background",
                "filterable": true
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 8,
            "w": 23,
            "x": 0,
            "y": 9
          },
          "id": 70,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": false,
                "displayName": "Hostname"
              }
            ]
          },
          "pluginVersion": "7.3.7",
          "targets": [
            {
              "format": "table",
              "group": [],
              "metricColumn": "none",
              "rawQuery": true,
              "rawSql": "SELECT\ndatabase AS \"Database\",\nschema_name AS \"Schema\",\ntable_name AS \"Table\",\npg_size_pretty(table_size) AS \"Size in GB\"\n\nFROM\n  grafana.table_size\nWHERE \nhost like 'oksijen%'\nAND\n--database = $database \n--AND \nschema_name NOT LIKE 'pg%' \nORDER BY table_size DESC",
              "refId": "A",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "column"
                  }
                ]
              ],
              "timeColumn": "time",
              "where": [
                {
                  "name": "$__timeFilter",
                  "params": [],
                  "type": "macro"
                }
              ]
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Table Size Info",
          "transparent": true,
          "type": "table"
        }
      ],
      "title": "Table Statistics",
      "type": "row"
    }
  ],
  "refresh": "1m",
  "schemaVersion": 26,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_ELASTICSEARCH}",
        "definition": "{\"find\": \"terms\", \"field\": \"agent.hostname\"}",
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Host",
        "multi": false,
        "name": "host",
        "options": [],
        "query": "{\"find\": \"terms\", \"field\": \"agent.hostname\"}",
        "refresh": 2,
        "regex": "/.*pg1|pg2|pg3/",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": "",
        "current": {},
        "datasource": "${DS_ELASTICSEARCH}",
        "definition": "{\"find\": \"terms\", \"field\": \"postgresql.database.name\",\"query\": \"host.hostname:$host\" , \"postgresql.database.name\":\"a* to z*\" }",
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Database",
        "multi": false,
        "name": "database",
        "options": [],
        "query": "{\"find\": \"terms\", \"field\": \"postgresql.database.name\",\"query\": \"host.hostname:$host\" , \"postgresql.database.name\":\"a* to z*\" }",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_ELASTICSEARCH}",
        "definition": "{\"find\": \"terms\", \"field\": \"postgresql.activity.user.name\", \"query\": \"host.hostname:$host\"}",
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "User",
        "multi": true,
        "name": "user",
        "options": [],
        "query": "{\"find\": \"terms\", \"field\": \"postgresql.activity.user.name\", \"query\": \"host.hostname:$host\"}",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-15m",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "dash Copy",
  "uid": "gHDJ1C8Mk",
  "version": 1
}