apiVersion: v1
data:
  engine.json: |
    {
        "annotations": {
          "list": [
            {
              "builtIn": 1,
              "datasource": {
                "type": "grafana",
                "uid": "-- Grafana --"
              },
              "enable": true,
              "hide": true,
              "iconColor": "rgba(0, 211, 255, 1)",
              "name": "Annotations & Alerts",
              "type": "dashboard"
            }
          ]
        },
        "description": "System metrics dashboard for engine",
        "editable": true,
        "fiscalYearStartMonth": 0,
        "gnetId": 12315,
        "graphTooltip": 0,
        "links": [],
        "liveNow": false,
        "panels": [
          {
            "collapse": false,
            "collapsed": false,
            "datasource": {
              "type": "datasource",
              "uid": "grafana"
            },
            "gridPos": {
              "h": 1,
              "w": 24,
              "x": 0,
              "y": 0
            },
            "id": 2,
            "panels": [],
            "showTitle": true,
            "targets": [
              {
                "datasource": {
                  "type": "datasource",
                  "uid": "grafana"
                },
                "refId": "A"
              }
            ],
            "title": "Overview",
            "titleSize": "h6",
            "type": "row"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "description": "System resources usage",
            "fieldConfig": {
              "defaults": {
                "decimals": 2,
                "mappings": [],
                "max": 1,
                "min": 0,
                "thresholds": {
                  "mode": "percentage",
                  "steps": [
                    {
                      "color": "rgb(224, 180, 0)",
                      "value": null
                    },
                    {
                      "color": "rgb(55, 135, 45)",
                      "value": 50
                    },
                    {
                      "color": "rgb(196, 22, 42)",
                      "value": 80
                    }
                  ]
                },
                "unit": "percentunit"
              },
              "overrides": [
                {
                  "matcher": {
                    "id": "byName",
                    "options": "CPU usage"
                  },
                  "properties": [
                    {
                      "id": "unit",
                      "value": "percent"
                    },
                    {
                      "id": "min",
                      "value": 0
                    },
                    {
                      "id": "max",
                      "value": 100
                    }
                  ]
                }
              ]
            },
            "gridPos": {
              "h": 3,
              "w": 7,
              "x": 0,
              "y": 1
            },
            "id": 3,
            "options": {
              "displayMode": "lcd",
              "minVizHeight": 10,
              "minVizWidth": 0,
              "namePlacement": "auto",
              "orientation": "horizontal",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showUnfilled": true,
              "valueMode": "color"
            },
            "pluginVersion": "10.1.5",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "sum(host_cpu_usage_sum{mode=\"combined\"}) / sum(host_cpu_usage_count{mode=\"combined\"})",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "CPU usage",
                "range": true,
                "refId": "A",
                "useBackend": false
              },
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "code",
                "expr": "host_memory_used_bytes{} / host_memory_total_bytes{}",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "Memory utilization",
                "range": true,
                "refId": "B",
                "useBackend": false
              }
            ],
            "title": "System resources overview",
            "type": "bargauge"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "description": "Tracks the current time the CPU is busy on user mode.",
            "fieldConfig": {
              "defaults": {
                "mappings": [],
                "max": 100,
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgba(31, 96, 196, 1)",
                      "value": null
                    },
                    {
                      "color": "rgba(140, 44, 186, 1)",
                      "value": 50
                    },
                    {
                      "color": "rgba(196, 22, 42, 1)",
                      "value": 80
                    }
                  ]
                },
                "unit": "percent"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 3,
              "w": 2,
              "x": 7,
              "y": 1
            },
            "id": 4,
            "links": [],
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "auto",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "textMode": "auto"
            },
            "pluginVersion": "10.1.5",
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "host_cpu_usage_sum{mode=\"user\"} / host_cpu_usage_count{mode=\"user\"}",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "",
                "range": true,
                "refId": "A",
                "useBackend": false
              }
            ],
            "title": "CPU %usr",
            "type": "stat"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "description": "Tracks the current time the CPU is busy on system mode.",
            "fieldConfig": {
              "defaults": {
                "mappings": [],
                "max": 100,
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgba(31, 96, 196, 1)",
                      "value": null
                    },
                    {
                      "color": "rgba(140, 44, 186, 1)",
                      "value": 50
                    },
                    {
                      "color": "rgba(196, 22, 42, 1)",
                      "value": 80
                    }
                  ]
                },
                "unit": "percent"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 3,
              "w": 2,
              "x": 9,
              "y": 1
            },
            "id": 5,
            "links": [],
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "auto",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "textMode": "auto"
            },
            "pluginVersion": "10.1.5",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "host_cpu_usage_sum{mode=\"system\"} / host_cpu_usage_count{mode=\"system\"}",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "",
                "range": true,
                "refId": "A",
                "useBackend": false
              }
            ],
            "title": "CPU %system",
            "type": "stat"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "description": "Tracks the current time the CPU is stuck waiting for IO.\n\nIf this value is high, the disk might be the bottleneck.",
            "fieldConfig": {
              "defaults": {
                "mappings": [],
                "max": 100,
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgba(31, 96, 196, 1)",
                      "value": null
                    },
                    {
                      "color": "rgba(140, 44, 186, 1)",
                      "value": 50
                    },
                    {
                      "color": "rgba(196, 22, 42, 1)",
                      "value": 80
                    }
                  ]
                },
                "unit": "percent"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 3,
              "w": 2,
              "x": 11,
              "y": 1
            },
            "id": 6,
            "links": [],
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "auto",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "textMode": "auto"
            },
            "pluginVersion": "10.1.5",
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "host_cpu_usage_sum{mode=\"wait\"} / host_cpu_usage_count{mode=\"wait\"}",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "",
                "range": true,
                "refId": "A",
                "useBackend": false
              }
            ],
            "title": "CPU %wait",
            "type": "stat"
          },
          {
            "datasource": {
              "type": "datasource",
              "uid": "-- Mixed --"
            },
            "description": "Tracks the number of file descriptors in used by the process.",
            "fieldConfig": {
              "defaults": {
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "dark-blue",
                      "value": null
                    }
                  ]
                },
                "unit": "short"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 6,
              "w": 3,
              "x": 13,
              "y": 1
            },
            "id": 15,
            "links": [],
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "auto",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "textMode": "auto"
            },
            "pluginVersion": "10.1.5",
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "process_ulimit_file_descriptors_used{}",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "",
                "range": true,
                "refId": "A",
                "useBackend": false
              }
            ],
            "title": "# FDs",
            "type": "stat"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "description": "Tracks usage of space on Disk",
            "fieldConfig": {
              "defaults": {
                "mappings": [],
                "max": 1,
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgb(55, 135, 45)",
                      "value": null
                    },
                    {
                      "color": "rgb(224, 180, 0)",
                      "value": 0.5
                    },
                    {
                      "color": "rgb(196, 22, 42)",
                      "value": 0.8
                    }
                  ]
                },
                "unit": "percentunit"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 6,
              "w": 3,
              "x": 16,
              "y": 1
            },
            "id": 9,
            "links": [],
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "horizontal",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "textMode": "auto"
            },
            "pluginVersion": "10.1.5",
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "topk(2, sum by(mount) (host_storage_mount_space_used_bytes{})) / sum by(mount) (host_storage_mount_space_total_bytes{})",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "instant": true,
                "intervalFactor": 2,
                "legendFormat": "{{mount}}",
                "refId": "A",
                "useBackend": false
              }
            ],
            "title": "Top 2 Disk usage",
            "type": "stat"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "description": "Tracks the system load average in 1m / 5m / 15m.\n\nThey indicate the average number of tasks (processes) wanting to run in the last 1m / 5m / 15m.\n\nOn Linux systems, these numbers is approximated and include processes wanting to run on the CPUs, as well as processes blocked in uninterruptible I/O (usually disk I/O).\nThis gives a high-level idea of resource load (or demand).\n\nThe three numbers give some idea of how load is changing over time.\n\nExcellent post on the subject: http://www.brendangregg.com/blog/2017-08-08/linux-load-averages.html",
            "fieldConfig": {
              "defaults": {
                "decimals": 2,
                "mappings": [],
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgb(50, 116, 217)",
                      "value": null
                    }
                  ]
                },
                "unit": "short"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 3,
              "w": 7,
              "x": 0,
              "y": 4
            },
            "id": 10,
            "options": {
              "displayMode": "lcd",
              "minVizHeight": 10,
              "minVizWidth": 0,
              "namePlacement": "auto",
              "orientation": "horizontal",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showUnfilled": true,
              "valueMode": "color"
            },
            "pluginVersion": "10.1.5",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "host_load_average{period=\"1m\"}",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "Avg. 1m",
                "range": true,
                "refId": "A",
                "useBackend": false
              },
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "host_load_average{period=\"5m\"}",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "Avg. 5m",
                "range": true,
                "refId": "B",
                "useBackend": false
              },
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "host_load_average{period=\"15m\"}",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "Avg. 15m",
                "range": true,
                "refId": "C",
                "useBackend": false
              }
            ],
            "title": "System load average",
            "type": "bargauge"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "description": "Tracks the current time the CPU is busy by the process in user mode.",
            "fieldConfig": {
              "defaults": {
                "mappings": [],
                "max": 100,
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgba(31, 96, 196, 1)",
                      "value": null
                    },
                    {
                      "color": "rgba(140, 44, 186, 1)",
                      "value": 50
                    },
                    {
                      "color": "rgba(196, 22, 42, 1)",
                      "value": 80
                    }
                  ]
                },
                "unit": "percent"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 3,
              "w": 2,
              "x": 7,
              "y": 4
            },
            "id": 11,
            "links": [],
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "auto",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "textMode": "auto"
            },
            "pluginVersion": "10.1.5",
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "code",
                "expr": "process_cpu_usage_sum{mode=\"user\"} / process_cpu_usage_count{mode=\"user\"}",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "",
                "range": true,
                "refId": "A",
                "useBackend": false
              }
            ],
            "title": "Proc %usr",
            "type": "stat"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "description": "Tracks the current time the CPU is busy by the process in kernel mode.",
            "fieldConfig": {
              "defaults": {
                "mappings": [],
                "max": 100,
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgba(31, 96, 196, 1)",
                      "value": null
                    },
                    {
                      "color": "rgba(140, 44, 186, 1)",
                      "value": 50
                    },
                    {
                      "color": "rgba(196, 22, 42, 1)",
                      "value": 80
                    }
                  ]
                },
                "unit": "percent"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 3,
              "w": 2,
              "x": 9,
              "y": 4
            },
            "id": 12,
            "links": [],
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "auto",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "textMode": "auto"
            },
            "pluginVersion": "10.1.5",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "process_cpu_usage_sum{mode=\"system\"} / process_cpu_usage_count{mode=\"system\"}",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "",
                "range": true,
                "refId": "A",
                "useBackend": false
              }
            ],
            "title": "Proc %system",
            "type": "stat"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "description": "Tracks the current time the CPU is stolen by some process outside the VM.\n\nIf this value is high, it could be caused either by the supervisor is very busy, by a noisy neighbor or by some limitation on the quota assigned by the virtualization service.",
            "fieldConfig": {
              "defaults": {
                "mappings": [],
                "max": 100,
                "min": 0,
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgba(31, 96, 196, 1)",
                      "value": null
                    },
                    {
                      "color": "rgba(140, 44, 186, 1)",
                      "value": 50
                    },
                    {
                      "color": "rgba(196, 22, 42, 1)",
                      "value": 80
                    }
                  ]
                },
                "unit": "percent"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 3,
              "w": 2,
              "x": 11,
              "y": 4
            },
            "id": 13,
            "links": [],
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "auto",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "textMode": "auto"
            },
            "pluginVersion": "10.1.5",
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "host_cpu_usage_sum{mode=\"stolen\"} / host_cpu_usage_count{mode=\"stolen\"}",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "",
                "range": true,
                "refId": "A",
                "useBackend": false
              }
            ],
            "title": "CPU %steal",
            "type": "stat"
          },
          {
            "collapse": false,
            "collapsed": false,
            "datasource": {
              "type": "datasource",
              "uid": "grafana"
            },
            "gridPos": {
              "h": 1,
              "w": 24,
              "x": 0,
              "y": 7
            },
            "id": 16,
            "panels": [],
            "showTitle": true,
            "targets": [
              {
                "datasource": {
                  "type": "datasource",
                  "uid": "grafana"
                },
                "refId": "A"
              }
            ],
            "title": "Load / Health",
            "titleSize": "h6",
            "type": "row"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "description": "Tracks the system load average in 1m / 5m / 15m.\n\nThey indicate the average number of tasks (processes) wanting to run in the last 1m / 5m / 15m.\n\nOn Linux systems, these numbers is approximated and include processes wanting to run on the CPUs, as well as processes blocked in uninterruptible I/O (usually disk I/O).\nThis gives a high-level idea of resource load (or demand).\n\nThe three numbers give some idea of how load is changing over time.\n\nExcellent post on the subject: http://www.brendangregg.com/blog/2017-08-08/linux-load-averages.html",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "axisCenteredZero": false,
                  "axisColorMode": "text",
                  "axisLabel": "",
                  "axisPlacement": "auto",
                  "barAlignment": 0,
                  "drawStyle": "line",
                  "fillOpacity": 10,
                  "gradientMode": "none",
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  },
                  "insertNulls": false,
                  "lineInterpolation": "linear",
                  "lineWidth": 1,
                  "pointSize": 5,
                  "scaleDistribution": {
                    "type": "linear"
                  },
                  "showPoints": "never",
                  "spanNulls": false,
                  "stacking": {
                    "group": "A",
                    "mode": "none"
                  },
                  "thresholdsStyle": {
                    "mode": "off"
                  }
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                },
                "unit": "short"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 6,
              "w": 24,
              "x": 0,
              "y": 8
            },
            "id": 17,
            "links": [],
            "options": {
              "legend": {
                "calcs": [
                  "mean",
                  "lastNotNull",
                  "max",
                  "min"
                ],
                "displayMode": "table",
                "placement": "bottom",
                "showLegend": true
              },
              "tooltip": {
                "mode": "multi",
                "sort": "none"
              }
            },
            "pluginVersion": "10.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "host_load_average{period=\"1m\"}",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "Avg 1m",
                "range": true,
                "refId": "A",
                "useBackend": false
              },
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "host_load_average{period=\"5m\"}",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "Avg 5m",
                "range": true,
                "refId": "B",
                "useBackend": false
              },
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "host_load_average{period=\"15m\"}",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "Avg 15m",
                "range": true,
                "refId": "C",
                "useBackend": false
              }
            ],
            "title": "System load average in 1m / 5m / 15m",
            "type": "timeseries"
          },
          {
            "cards": {},
            "color": {
              "cardColor": "#b4ff00",
              "colorScale": "sqrt",
              "colorScheme": "interpolateBlues",
              "exponent": 0.5,
              "mode": "spectrum"
            },
            "dataFormat": "timeseries",
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "description": "Tracks the hiccups detected in the VM (also known as idle jitters) measured in nanoseconds. The 90ht percentile is presented.\n\nFor more info: https://www.azul.com/jhiccup/",
            "fieldConfig": {
              "defaults": {
                "custom": {
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  },
                  "scaleDistribution": {
                    "type": "linear"
                  }
                }
              },
              "overrides": []
            },
            "gridPos": {
              "h": 6,
              "w": 24,
              "x": 0,
              "y": 14
            },
            "heatmap": {},
            "hideZeroBuckets": false,
            "highlightCards": true,
            "id": 18,
            "legend": {
              "show": true
            },
            "options": {
              "calculate": true,
              "calculation": {},
              "cellGap": 2,
              "cellValues": {},
              "color": {
                "exponent": 0.5,
                "fill": "#b4ff00",
                "mode": "scheme",
                "reverse": false,
                "scale": "exponential",
                "scheme": "Blues",
                "steps": 128
              },
              "exemplars": {
                "color": "rgba(255,0,255,0.7)"
              },
              "filterValues": {
                "le": 1e-9
              },
              "legend": {
                "show": true
              },
              "rowsFrame": {
                "layout": "auto"
              },
              "showValue": "never",
              "tooltip": {
                "show": true,
                "yHistogram": false
              },
              "yAxis": {
                "axisPlacement": "left",
                "reverse": false,
                "unit": "ns"
              }
            },
            "pluginVersion": "10.1.5",
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "histogram_quantile(0.9, sum by(le, instance) (rate(process_hiccups_seconds_bucket{}[5m])))",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "p90",
                "range": true,
                "refId": "A",
                "useBackend": false
              }
            ],
            "title": "VM Hiccups (or idle jitters) in nanoseconds (p90)",
            "tooltip": {
              "show": true,
              "showHistogram": false
            },
            "transformations": [
              {
                "id": "filterByValue",
                "options": {
                  "filters": [
                    {
                      "config": {
                        "id": "regex",
                        "options": {
                          "value": "NaN"
                        }
                      },
                      "fieldName": "p90"
                    }
                  ],
                  "match": "all",
                  "type": "exclude"
                }
              }
            ],
            "type": "heatmap",
            "xAxis": {
              "show": true
            },
            "yAxis": {
              "format": "ns",
              "logBase": 1,
              "show": true
            },
            "yBucketBound": "auto"
          },
          {
            "collapse": false,
            "collapsed": false,
            "datasource": {
              "type": "datasource",
              "uid": "grafana"
            },
            "gridPos": {
              "h": 1,
              "w": 24,
              "x": 0,
              "y": 20
            },
            "id": 19,
            "panels": [],
            "showTitle": true,
            "targets": [
              {
                "datasource": {
                  "type": "datasource",
                  "uid": "grafana"
                },
                "refId": "A"
              }
            ],
            "title": "CPU",
            "titleSize": "h6",
            "type": "row"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "description": "Tracks the usage of CPU by the VM in the different typical views.",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "axisCenteredZero": false,
                  "axisColorMode": "text",
                  "axisLabel": "",
                  "axisPlacement": "auto",
                  "barAlignment": 0,
                  "drawStyle": "line",
                  "fillOpacity": 10,
                  "gradientMode": "none",
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  },
                  "insertNulls": false,
                  "lineInterpolation": "linear",
                  "lineWidth": 1,
                  "pointSize": 5,
                  "scaleDistribution": {
                    "type": "linear"
                  },
                  "showPoints": "never",
                  "spanNulls": false,
                  "stacking": {
                    "group": "A",
                    "mode": "none"
                  },
                  "thresholdsStyle": {
                    "mode": "off"
                  }
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                },
                "unit": "percent"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 6,
              "w": 24,
              "x": 0,
              "y": 21
            },
            "id": 20,
            "links": [],
            "options": {
              "legend": {
                "calcs": [
                  "mean",
                  "lastNotNull",
                  "max",
                  "min"
                ],
                "displayMode": "table",
                "placement": "bottom",
                "showLegend": true
              },
              "tooltip": {
                "mode": "multi",
                "sort": "none"
              }
            },
            "pluginVersion": "10.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "rate(host_cpu_usage_sum{mode=\"user\"}[5m]) / rate(host_cpu_usage_count{mode=\"user\"}[5m])",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "User mode",
                "range": true,
                "refId": "A",
                "useBackend": false
              },
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "rate(host_cpu_usage_sum{mode=\"system\"}[5m]) / rate(host_cpu_usage_count{mode=\"system\"}[5m])",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "Kernel mode",
                "range": true,
                "refId": "B",
                "useBackend": false
              },
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "rate(host_cpu_usage_sum{mode=\"wait\"}[5m]) / rate(host_cpu_usage_count{mode=\"wait\"}[5m])",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "IO wait",
                "range": true,
                "refId": "C",
                "useBackend": false
              },
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "$DS_PROM"
                },
                "disableTextWrap": false,
                "editorMode": "builder",
                "expr": "rate(host_cpu_usage_sum{mode=\"stolen\"}[5m]) / rate(host_cpu_usage_count{mode=\"stolen\"}[5m])",
                "format": "time_series",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "intervalFactor": 2,
                "legendFormat": "Stolen",
                "range": true,
                "refId": "D",
                "useBackend": false
              }
            ],
            "title": "VM CPU usage",
            "type": "timeseries"
          },
          {
            "aliasColors": {},
            "bars": false,
            "dashLength": 10,
            "dashes": false,
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "description": "Tracks the usage of CPU by the app in the different typical views.",
            "fill": 1,
            "fillGradient": 0,
            "gridPos": {
              "h": 6,
              "w": 24,
              "x": 0,
              "y": 27
            },
            "hiddenSeries": false,
            "id": 21,
            "legend": {
              "alignAsTable": true,
              "avg": true,
              "current": true,
              "max": true,
              "min": true,
              "rightSide": false,
              "show": true,
              "sort": "max",
              "sortDesc": true,
              "total": false,
              "values": true
            },
            "lines": true,
            "linewidth": 1,
            "links": [],
            "nullPointMode": "null",
            "options": {
              "alertThreshold": true
            },
            "percentage": false,
            "pluginVersion": "10.1.5",
            "pointradius": 2,
            "points": false,
            "renderer": "flot",
            "seriesOverrides": [],
            "spaceLength": 10,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "editorMode": "code",
                "expr": "rate(process_cpu_usage_sum{mode=\"user\"}[5m])\n/\nrate(process_cpu_usage_count{mode=\"user\"}[5m])",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "User mode",
                "range": true,
                "refId": "A"
              },
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "editorMode": "code",
                "expr": "rate(process_cpu_usage_sum{mode=\"system\"}[5m])\n/\nrate(process_cpu_usage_count{mode=\"system\"}[5m])",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "Kernel mode",
                "range": true,
                "refId": "B"
              }
            ],
            "thresholds": [],
            "timeRegions": [],
            "title": "Process CPU usage",
            "tooltip": {
              "shared": true,
              "sort": 0,
              "value_type": "individual"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "percent",
                "logBase": 1,
                "show": true
              },
              {
                "format": "percent",
                "logBase": 1,
                "show": true
              }
            ],
            "yaxis": {
              "align": false
            }
          },
          {
            "collapse": false,
            "collapsed": false,
            "datasource": {
              "type": "datasource",
              "uid": "grafana"
            },
            "gridPos": {
              "h": 1,
              "w": 24,
              "x": 0,
              "y": 33
            },
            "id": 22,
            "panels": [],
            "showTitle": true,
            "targets": [
              {
                "datasource": {
                  "type": "datasource",
                  "uid": "grafana"
                },
                "refId": "A"
              }
            ],
            "title": "Memory",
            "titleSize": "h6",
            "type": "row"
          },
          {
            "datasource": {
              "uid": "$DS_PROM"
            },
            "description": "Tracks the total memory available Vs. the amount of used memory.",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "palette-classic"
                },
                "custom": {
                  "axisBorderShow": false,
                  "axisCenteredZero": false,
                  "axisColorMode": "text",
                  "axisLabel": "",
                  "axisPlacement": "auto",
                  "barAlignment": 0,
                  "drawStyle": "line",
                  "fillOpacity": 8,
                  "gradientMode": "none",
                  "hideFrom": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  },
                  "insertNulls": false,
                  "lineInterpolation": "linear",
                  "lineWidth": 3,
                  "pointSize": 5,
                  "scaleDistribution": {
                    "type": "linear"
                  },
                  "showPoints": "never",
                  "spanNulls": false,
                  "stacking": {
                    "group": "A",
                    "mode": "none"
                  },
                  "thresholdsStyle": {
                    "mode": "off"
                  }
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green"
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                },
                "unit": "decbytes"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 6,
              "w": 24,
              "x": 0,
              "y": 34
            },
            "id": 23,
            "links": [],
            "options": {
              "legend": {
                "calcs": [
                  "mean",
                  "lastNotNull",
                  "max",
                  "min"
                ],
                "displayMode": "table",
                "placement": "bottom",
                "showLegend": true
              },
              "tooltip": {
                "mode": "multi",
                "sort": "none"
              }
            },
            "pluginVersion": "10.2.0",
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "host_memory_used_bytes{}",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "Used Memory",
                "refId": "A"
              },
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "host_memory_total_bytes{}",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "Total Memory",
                "refId": "B"
              }
            ],
            "title": "Host Memory",
            "type": "timeseries"
          },
          {
            "collapse": false,
            "collapsed": false,
            "datasource": {
              "type": "datasource",
              "uid": "grafana"
            },
            "gridPos": {
              "h": 1,
              "w": 24,
              "x": 0,
              "y": 40
            },
            "id": 32,
            "panels": [],
            "showTitle": true,
            "targets": [
              {
                "datasource": {
                  "type": "datasource",
                  "uid": "grafana"
                },
                "refId": "A"
              }
            ],
            "title": "JVM Metrics",
            "titleSize": "h6",
            "type": "row"
          },
          {
            "aliasColors": {},
            "bars": false,
            "dashLength": 10,
            "dashes": false,
            "datasource": {
              "uid": "$DS_PROM"
            },
            "description": "Tracks the amount of memory used by the JVM heap.",
            "fill": 1,
            "fillGradient": 0,
            "gridPos": {
              "h": 6,
              "w": 12,
              "x": 0,
              "y": 41
            },
            "hiddenSeries": false,
            "id": 33,
            "legend": {
              "alignAsTable": true,
              "avg": true,
              "current": true,
              "max": true,
              "min": true,
              "rightSide": false,
              "show": true,
              "sort": "max",
              "sortDesc": true,
              "total": false,
              "values": true
            },
            "lines": true,
            "linewidth": 1,
            "links": [],
            "nullPointMode": "null",
            "options": {
              "alertThreshold": true
            },
            "percentage": false,
            "pluginVersion": "10.2.0",
            "pointradius": 2,
            "points": false,
            "renderer": "flot",
            "seriesOverrides": [],
            "spaceLength": 10,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "jvm_memory_max_bytes{region=\"heap\"}",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "max",
                "refId": "A"
              },
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "jvm_memory_committed_bytes{region=\"heap\"}",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "committed",
                "refId": "B"
              },
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "jvm_memory_used_bytes_sum{region=\"heap\"}\n/\njvm_memory_used_bytes_count{region=\"heap\"}",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "used",
                "refId": "C"
              }
            ],
            "thresholds": [],
            "timeRegions": [],
            "title": "Heap",
            "tooltip": {
              "shared": true,
              "sort": 0,
              "value_type": "individual"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "decbytes",
                "logBase": 1,
                "show": true
              },
              {
                "format": "decbytes",
                "logBase": 1,
                "show": true
              }
            ],
            "yaxis": {
              "align": false
            }
          },
          {
            "aliasColors": {},
            "bars": false,
            "dashLength": 10,
            "dashes": false,
            "datasource": {
              "uid": "$DS_PROM"
            },
            "description": "Tracks the amount of memory used by the JVM outside the heap.",
            "fill": 1,
            "fillGradient": 0,
            "gridPos": {
              "h": 6,
              "w": 12,
              "x": 12,
              "y": 41
            },
            "hiddenSeries": false,
            "id": 34,
            "legend": {
              "alignAsTable": true,
              "avg": true,
              "current": true,
              "max": true,
              "min": true,
              "rightSide": false,
              "show": true,
              "sort": "max",
              "sortDesc": true,
              "total": false,
              "values": true
            },
            "lines": true,
            "linewidth": 1,
            "links": [],
            "nullPointMode": "null",
            "options": {
              "alertThreshold": true
            },
            "percentage": false,
            "pluginVersion": "10.2.0",
            "pointradius": 2,
            "points": false,
            "renderer": "flot",
            "seriesOverrides": [],
            "spaceLength": 10,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "jvm_memory_max_bytes{region=\"non-heap\"}",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "max",
                "refId": "A"
              },
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "jvm_memory_committed_bytes{region=\"non-heap\"}",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "committed",
                "refId": "B"
              },
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "jvm_memory_used_bytes_sum{region=\"non-heap\"}\n/\njvm_memory_used_bytes_count{region=\"non-heap\"}",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "used",
                "refId": "C"
              },
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "jvm_memory_free_bytes_sum{region=\"non-heap\"}\n/\njvm_memory_free_bytes_count{region=\"non-heap\"}",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "free",
                "refId": "D"
              }
            ],
            "thresholds": [],
            "timeRegions": [],
            "title": "Off-Heap",
            "tooltip": {
              "shared": true,
              "sort": 0,
              "value_type": "individual"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "decbytes",
                "logBase": 1,
                "show": true
              },
              {
                "format": "decbytes",
                "logBase": 1,
                "show": true
              }
            ],
            "yaxis": {
              "align": false
            }
          },
          {
            "aliasColors": {},
            "bars": false,
            "dashLength": 10,
            "dashes": false,
            "datasource": {
              "uid": "$DS_PROM"
            },
            "description": "Tracks the distribution of GC events duration",
            "fill": 1,
            "fillGradient": 0,
            "gridPos": {
              "h": 6,
              "w": 24,
              "x": 0,
              "y": 47
            },
            "hiddenSeries": false,
            "id": 35,
            "legend": {
              "alignAsTable": true,
              "avg": true,
              "current": true,
              "max": true,
              "min": true,
              "rightSide": false,
              "show": true,
              "sort": "max",
              "sortDesc": true,
              "total": false,
              "values": true
            },
            "lines": false,
            "linewidth": 1,
            "links": [],
            "nullPointMode": "null",
            "options": {
              "alertThreshold": true
            },
            "percentage": false,
            "pluginVersion": "10.2.0",
            "pointradius": 2,
            "points": true,
            "renderer": "flot",
            "seriesOverrides": [],
            "spaceLength": 10,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "rate(jvm_gc_seconds_sum{}[5m])\n/\nrate(jvm_gc_seconds_count{}[5m])",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "GC count: {{collector}}",
                "refId": "A"
              }
            ],
            "thresholds": [],
            "timeRegions": [],
            "title": "Garbage Collection",
            "tooltip": {
              "shared": true,
              "sort": 0,
              "value_type": "individual"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "s",
                "logBase": 1,
                "show": true
              },
              {
                "format": "s",
                "logBase": 1,
                "show": true
              }
            ],
            "yaxis": {
              "align": false
            }
          },
          {
            "collapse": false,
            "collapsed": false,
            "datasource": {
              "type": "datasource",
              "uid": "grafana"
            },
            "gridPos": {
              "h": 1,
              "w": 24,
              "x": 0,
              "y": 53
            },
            "id": 36,
            "panels": [],
            "showTitle": true,
            "targets": [
              {
                "datasource": {
                  "type": "datasource",
                  "uid": "grafana"
                },
                "refId": "A"
              }
            ],
            "title": "Executor Metrics",
            "titleSize": "h6",
            "type": "row"
          },
          {
            "aliasColors": {},
            "bars": false,
            "dashLength": 10,
            "dashes": false,
            "datasource": {
              "uid": "$DS_PROM"
            },
            "description": "Tracks the number of threads in use.",
            "fill": 1,
            "fillGradient": 0,
            "gridPos": {
              "h": 6,
              "w": 8,
              "x": 0,
              "y": 54
            },
            "hiddenSeries": false,
            "id": 37,
            "legend": {
              "alignAsTable": true,
              "avg": true,
              "current": true,
              "max": true,
              "min": true,
              "rightSide": false,
              "show": true,
              "sort": "max",
              "sortDesc": true,
              "total": false,
              "values": true
            },
            "lines": true,
            "linewidth": 1,
            "links": [],
            "nullPointMode": "null",
            "options": {
              "alertThreshold": true
            },
            "percentage": false,
            "pluginVersion": "10.2.0",
            "pointradius": 2,
            "points": false,
            "renderer": "flot",
            "seriesOverrides": [],
            "spaceLength": 10,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "rate(executor_threads_total_count{}[5m])\n/\nrate(executor_threads_total_sum{}[5m])",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "{{ name }} ({{ type }})",
                "refId": "A"
              }
            ],
            "thresholds": [],
            "timeRegions": [],
            "title": "Number Of Threads",
            "tooltip": {
              "shared": true,
              "sort": 0,
              "value_type": "individual"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "decbytes",
                "logBase": 1,
                "show": true
              },
              {
                "format": "decbytes",
                "logBase": 1,
                "show": true
              }
            ],
            "yaxis": {
              "align": false
            }
          },
          {
            "aliasColors": {},
            "bars": false,
            "dashLength": 10,
            "dashes": false,
            "datasource": {
              "uid": "$DS_PROM"
            },
            "fill": 1,
            "fillGradient": 0,
            "gridPos": {
              "h": 6,
              "w": 8,
              "x": 8,
              "y": 54
            },
            "hiddenSeries": false,
            "id": 38,
            "legend": {
              "alignAsTable": true,
              "avg": true,
              "current": true,
              "max": true,
              "min": true,
              "rightSide": false,
              "show": true,
              "sort": "max",
              "sortDesc": true,
              "total": false,
              "values": true
            },
            "lines": true,
            "linewidth": 1,
            "links": [],
            "nullPointMode": "null",
            "options": {
              "alertThreshold": true
            },
            "percentage": false,
            "pluginVersion": "10.2.0",
            "pointradius": 2,
            "points": false,
            "renderer": "flot",
            "seriesOverrides": [],
            "spaceLength": 10,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "rate(executor_tasks_completed_total{}[5m])",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "{{ name }} ({{ type }})",
                "refId": "A"
              }
            ],
            "thresholds": [],
            "timeRegions": [],
            "title": "Number Of Tasks Completed",
            "tooltip": {
              "shared": true,
              "sort": 0,
              "value_type": "individual"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "short",
                "logBase": 1,
                "show": true
              },
              {
                "format": "short",
                "logBase": 1,
                "show": true
              }
            ],
            "yaxis": {
              "align": false
            }
          },
          {
            "aliasColors": {},
            "bars": false,
            "dashLength": 10,
            "dashes": false,
            "datasource": {
              "uid": "$DS_PROM"
            },
            "fill": 1,
            "fillGradient": 0,
            "gridPos": {
              "h": 6,
              "w": 8,
              "x": 16,
              "y": 54
            },
            "hiddenSeries": false,
            "id": 39,
            "legend": {
              "alignAsTable": true,
              "avg": true,
              "current": true,
              "max": true,
              "min": true,
              "rightSide": false,
              "show": true,
              "sort": "max",
              "sortDesc": true,
              "total": false,
              "values": true
            },
            "lines": true,
            "linewidth": 1,
            "links": [],
            "nullPointMode": "null",
            "options": {
              "alertThreshold": true
            },
            "percentage": false,
            "pluginVersion": "10.2.0",
            "pointradius": 2,
            "points": false,
            "renderer": "flot",
            "seriesOverrides": [],
            "spaceLength": 10,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "rate(executor_queue_size_bucket{le=\"+Inf\"}[5m])",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "{{ name }} ({{ type }})",
                "refId": "A"
              }
            ],
            "thresholds": [],
            "timeRegions": [],
            "title": "Queue Size",
            "tooltip": {
              "shared": true,
              "sort": 0,
              "value_type": "individual"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "short",
                "logBase": 1,
                "show": true
              },
              {
                "format": "short",
                "logBase": 1,
                "show": true
              }
            ],
            "yaxis": {
              "align": false
            }
          },
          {
            "aliasColors": {},
            "bars": false,
            "dashLength": 10,
            "dashes": false,
            "datasource": {
              "uid": "$DS_PROM"
            },
            "description": "Tracks maximum number of Threads of the executors.",
            "fill": 1,
            "fillGradient": 0,
            "gridPos": {
              "h": 6,
              "w": 8,
              "x": 0,
              "y": 60
            },
            "hiddenSeries": false,
            "id": 40,
            "legend": {
              "alignAsTable": true,
              "avg": true,
              "current": true,
              "max": true,
              "min": true,
              "rightSide": false,
              "show": true,
              "sort": "max",
              "sortDesc": true,
              "total": false,
              "values": true
            },
            "lines": true,
            "linewidth": 1,
            "links": [],
            "nullPointMode": "null",
            "options": {
              "alertThreshold": true
            },
            "percentage": false,
            "pluginVersion": "10.2.0",
            "pointradius": 2,
            "points": false,
            "renderer": "flot",
            "seriesOverrides": [],
            "spaceLength": 10,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "executor_threads_max{}",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "{{ name }} ({{ type }})",
                "refId": "A"
              }
            ],
            "thresholds": [],
            "timeRegions": [],
            "title": "Maximum Number of Threads",
            "tooltip": {
              "shared": true,
              "sort": 0,
              "value_type": "individual"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "short",
                "logBase": 1,
                "show": true
              },
              {
                "format": "short",
                "logBase": 1,
                "show": true
              }
            ],
            "yaxis": {
              "align": false
            }
          },
          {
            "aliasColors": {},
            "bars": false,
            "dashLength": 10,
            "dashes": false,
            "datasource": {
              "uid": "$DS_PROM"
            },
            "description": "Tracks minimum number of Threads of the executors.",
            "fill": 1,
            "fillGradient": 0,
            "gridPos": {
              "h": 6,
              "w": 8,
              "x": 8,
              "y": 60
            },
            "hiddenSeries": false,
            "id": 41,
            "legend": {
              "alignAsTable": true,
              "avg": true,
              "current": true,
              "max": true,
              "min": true,
              "rightSide": false,
              "show": true,
              "sort": "max",
              "sortDesc": true,
              "total": false,
              "values": true
            },
            "lines": true,
            "linewidth": 1,
            "links": [],
            "nullPointMode": "null",
            "options": {
              "alertThreshold": true
            },
            "percentage": false,
            "pluginVersion": "10.2.0",
            "pointradius": 2,
            "points": false,
            "renderer": "flot",
            "seriesOverrides": [],
            "spaceLength": 10,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "executor_threads_min{}",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "{{ name }} ({{ type }})",
                "refId": "A"
              }
            ],
            "thresholds": [],
            "timeRegions": [],
            "title": "Minimum Number of Threads",
            "tooltip": {
              "shared": true,
              "sort": 0,
              "value_type": "individual"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "short",
                "logBase": 1,
                "show": true
              },
              {
                "format": "short",
                "logBase": 1,
                "show": true
              }
            ],
            "yaxis": {
              "align": false
            }
          },
          {
            "aliasColors": {},
            "bars": false,
            "dashLength": 10,
            "dashes": false,
            "datasource": {
              "uid": "$DS_PROM"
            },
            "description": "Tracks executor parallelism.",
            "fill": 1,
            "fillGradient": 0,
            "gridPos": {
              "h": 6,
              "w": 8,
              "x": 16,
              "y": 60
            },
            "hiddenSeries": false,
            "id": 42,
            "legend": {
              "alignAsTable": true,
              "avg": true,
              "current": true,
              "max": true,
              "min": true,
              "rightSide": false,
              "show": true,
              "sort": "max",
              "sortDesc": true,
              "total": false,
              "values": true
            },
            "lines": true,
            "linewidth": 1,
            "links": [],
            "nullPointMode": "null",
            "options": {
              "alertThreshold": true
            },
            "percentage": false,
            "pluginVersion": "10.2.0",
            "pointradius": 2,
            "points": false,
            "renderer": "flot",
            "seriesOverrides": [],
            "spaceLength": 10,
            "stack": false,
            "steppedLine": false,
            "targets": [
              {
                "datasource": {
                  "uid": "$DS_PROM"
                },
                "expr": "executor_parallelism{}",
                "format": "time_series",
                "intervalFactor": 2,
                "legendFormat": "{{ name }} ({{ type }})",
                "refId": "A"
              }
            ],
            "thresholds": [],
            "timeRegions": [],
            "title": "Executor parallelism",
            "tooltip": {
              "shared": true,
              "sort": 0,
              "value_type": "individual"
            },
            "type": "graph",
            "xaxis": {
              "mode": "time",
              "show": true,
              "values": []
            },
            "yaxes": [
              {
                "format": "short",
                "logBase": 1,
                "show": true
              },
              {
                "format": "short",
                "logBase": 1,
                "show": true
              }
            ],
            "yaxis": {
              "align": false
            }
          }
        ],
        "refresh": "1m",
        "schemaVersion": 38,
        "style": "dark",
        "tags": [
          "prometheus",
          "system-metrics",
          "engine"
        ],
        "templating": {
          "list": [
            {
              "name": "DS_PROM",
              "type": "datasource",
              "query": "prometheus",
              "refresh": 1,
              "hide": 0,
              "label": "Metrics",
              "current": {
                "text": "Mimir",
                "value": "Mimir"
              }
            }
          ]
        },
        "time": {
          "from": "now-1h",
          "to": "now"
        },
        "timepicker": {
          "refresh_intervals": [
            "5s",
            "10s",
            "30s",
            "1m",
            "5m",
            "15m",
            "30m",
            "1h",
            "2h",
            "1d"
          ],
          "time_options": [
            "5m",
            "15m",
            "1h",
            "6h",
            "12h",
            "24h",
            "2d",
            "7d",
            "30d"
          ]
        },
        "timezone": "browser",
        "title": "Engine",
        "uid": "dcbd76c2-c503-44be-b513-55656591ff43",
        "version": 1,
        "weekStart": ""
      }
  home.json: |
    {
      "annotations": {
        "list": [
          {
            "builtIn": 1,
            "datasource": {
              "type": "grafana",
              "uid": "-- Grafana --"
            },
            "enable": true,
            "hide": true,
            "iconColor": "rgba(0, 211, 255, 1)",
            "name": "Annotations & Alerts",
            "type": "dashboard"
          }
        ]
      },
      "editable": true,
      "fiscalYearStartMonth": 0,
      "graphTooltip": 0,
      "id": 1,
      "links": [],
      "liveNow": false,
      "panels": [
        {
          "datasource": {
            "type": "datasource",
            "uid": "grafana"
          },
          "gridPos": {
            "h": 7,
            "w": 24,
            "x": 0,
            "y": 0
          },
          "id": 1,
          "options": {
            "code": {
              "language": "plaintext",
              "showLineNumbers": false,
              "showMiniMap": false
            },
            "content": "<img width=\"150px\" src=\"/monitoring/public/img/grafana_icon.svg\"></img>\n<br>\n<br>\n<h1>Welcome to AtScale Monitoring Services</h1>\nPlease view the below dashboards for information on running services:\n",
            "mode": "html"
          },
          "pluginVersion": "10.1.5",
          "transparent": true,
          "type": "text"
        },
        {
          "datasource": {
            "type": "datasource",
            "uid": "grafana"
          },
          "gridPos": {
            "h": 7,
            "w": 24,
            "x": 0,
            "y": 7
          },
          "id": 2,
          "options": {
            "includeVars": false,
            "keepTime": false,
            "maxItems": 10,
            "query": "",
            "showHeadings": true,
            "showRecentlyViewed": false,
            "showSearch": true,
            "showStarred": false,
            "tags": []
          },
          "pluginVersion": "10.1.5",
          "type": "dashlist"
        }
      ],
      "refresh": "",
      "schemaVersion": 38,
      "style": "dark",
      "tags": [],
      "templating": {
        "list": []
      },
      "time": {
        "from": "now-6h",
        "to": "now"
      },
      "timepicker": {},
      "timezone": "",
      "title": "Home",
      "version": 5,
      "weekStart": ""
    }
  logging.json: |
    {
      "annotations": {
        "list": [
          {
            "builtIn": 1,
            "datasource": {
              "type": "grafana",
              "uid": "-- Grafana --"
            },
            "enable": true,
            "hide": true,
            "iconColor": "rgba(0, 211, 255, 1)",
            "name": "Annotations & Alerts",
            "type": "dashboard"
          }
        ]
      },
      "editable": true,
      "fiscalYearStartMonth": 0,
      "graphTooltip": 0,
      "id": 7,
      "links": [],
      "liveNow": false,
      "panels": [
        {
          "datasource": {
            "type": "loki",
            "uid": "$DS_LOKI"
          },
          "gridPos": {
            "h": 16,
            "w": 24,
            "x": 0,
            "y": 0
          },
          "id": 2,
          "options": {
            "dedupStrategy": "none",
            "enableLogDetails": true,
            "prettifyLogMessage": false,
            "showCommonLabels": false,
            "showLabels": false,
            "showTime": false,
            "sortOrder": "Descending",
            "wrapLogMessage": false
          },
          "targets": [
            {
              "datasource": {
                "type": "loki",
                "uid": "$DS_LOKI"
              },
              "editorMode": "builder",
              "expr": "{exporter=\"OTLP\"} |~ `.*engine.*` | json | line_format `{{.body}}` | pattern `<date> <time> <level> <message>`",
              "legendFormat": "",
              "queryType": "range",
              "refId": "A"
            }
          ],
          "title": "Engine Logs",
          "transformations": [],
          "type": "logs"
        },
        {
          "datasource": {
            "type": "loki",
            "uid": "$DS_LOKI"
          },
          "gridPos": {
            "h": 16,
            "w": 24,
            "x": 0,
            "y": 16
          },
          "id": 3,
          "options": {
            "dedupStrategy": "none",
            "enableLogDetails": true,
            "prettifyLogMessage": false,
            "showCommonLabels": false,
            "showLabels": false,
            "showTime": true,
            "sortOrder": "Descending",
            "wrapLogMessage": false
          },
          "targets": [
            {
              "datasource": {
                "type": "loki",
                "uid": "$DS_LOKI"
              },
              "editorMode": "builder",
              "expr": "{exporter=\"OTLP\"} |~ `.*postgresql.*` | json | line_format `{{.body}}` | pattern `<date> <time> <level> <message>`",
              "queryType": "range",
              "refId": "A"
            }
          ],
          "title": "Application DB Logs",
          "transformations": [],
          "type": "logs"
        },
        {
          "datasource": {
            "type": "loki",
            "uid": "$DS_LOKI"
          },
          "gridPos": {
            "h": 16,
            "w": 24,
            "x": 0,
            "y": 32
          },
          "id": 5,
          "options": {
            "dedupStrategy": "none",
            "enableLogDetails": true,
            "prettifyLogMessage": false,
            "showCommonLabels": false,
            "showLabels": false,
            "showTime": true,
            "sortOrder": "Descending",
            "wrapLogMessage": false
          },
          "targets": [
            {
              "datasource": {
                "type": "loki",
                "uid": "$DS_LOKI"
              },
              "editorMode": "builder",
              "expr": "{exporter=\"OTLP\"} |~ `.*sml.*` | json | line_format `{{.body}}` | pattern `<date> <time> <level> <message>`",
              "queryType": "range",
              "refId": "A"
            }
          ],
          "title": "Modeler Logs",
          "transformations": [],
          "type": "logs"
        },
        {
          "datasource": {
            "type": "loki",
            "uid": "$DS_LOKI"
          },
          "gridPos": {
            "h": 16,
            "w": 24,
            "x": 0,
            "y": 48
          },
          "id": 1,
          "options": {
            "dedupStrategy": "none",
            "enableLogDetails": true,
            "prettifyLogMessage": false,
            "showCommonLabels": false,
            "showLabels": false,
            "showTime": true,
            "sortOrder": "Descending",
            "wrapLogMessage": false
          },
          "targets": [
            {
              "datasource": {
                "type": "loki",
                "uid": "$DS_LOKI"
              },
              "editorMode": "builder",
              "expr": "{exporter=\"OTLP\"} |~ `.*keycloak.*` | json | line_format `{{.body}}` | pattern `<date> <time> <level> <message>`",
              "queryType": "range",
              "refId": "A"
            }
          ],
          "title": "KeyCloak Logs",
          "transformations": [],
          "type": "logs"
        },
        {
          "datasource": {
            "type": "loki",
            "uid": "$DS_LOKI"
          },
          "gridPos": {
            "h": 16,
            "w": 24,
            "x": 0,
            "y": 64
          },
          "id": 4,
          "options": {
            "dedupStrategy": "none",
            "enableLogDetails": true,
            "prettifyLogMessage": false,
            "showCommonLabels": false,
            "showLabels": false,
            "showTime": true,
            "sortOrder": "Descending",
            "wrapLogMessage": false
          },
          "targets": [
            {
              "datasource": {
                "type": "loki",
                "uid": "$DS_LOKI"
              },
              "editorMode": "builder",
              "expr": "{exporter=\"OTLP\"} |~ `.*postgresql.*` | json | line_format `{{.body}}` | pattern `<date> <time> <level> <message>`",
              "queryType": "range",
              "refId": "A"
            }
          ],
          "title": "KeyCloak DB Logs",
          "transformations": [],
          "type": "logs"
        }
      ],
      "refresh": "5s",
      "schemaVersion": 38,
      "tags": [
        "logs",
        "service-logs"
      ],
      "templating": {
        "list": [
          {
            "name": "DS_LOKI",
            "type": "datasource",
            "query": "loki",
            "refresh": 1,
            "hide": 0,
            "label": "Logs",
            "current": {
              "text": "Loki",
              "value": "Loki"
            }
          }
        ]
      },
      "time": {
        "from": "now-6h",
        "to": "now"
      },
      "timepicker": {},
      "timezone": "",
      "title": "Logging OTLP",
      "version": 1,
      "weekStart": ""
    }
  postgres.json: |
    {
      "annotations": {
        "list": [
          {
            "builtIn": 1,
            "datasource": {
              "type": "datasource",
              "uid": "grafana"
            },
            "enable": true,
            "hide": true,
            "iconColor": "rgba(0, 211, 255, 1)",
            "name": "Annotations & Alerts",
            "type": "dashboard"
          }
        ]
      },
      "description": "This dashboard works with postgres_exporter for prometheus",
      "editable": true,
      "fiscalYearStartMonth": 0,
      "gnetId": 9628,
      "graphTooltip": 0,
      "id": 6,
      "links": [],
      "liveNow": false,
      "panels": [
        {
          "collapsed": false,
          "datasource": {
            "type": "datasource",
            "uid": "grafana"
          },
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 0
          },
          "id": 34,
          "panels": [],
          "targets": [
            {
              "datasource": {
                "type": "datasource",
                "uid": "grafana"
              },
              "refId": "A"
            }
          ],
          "title": "General Counters, CPU, Memory and File Descriptor Stats",
          "type": "row"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 2,
            "w": 4,
            "x": 0,
            "y": 1
          },
          "id": 36,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "mean"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "name"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_static{release=\"$release\", instance=\"$instance\"}",
              "format": "time_series",
              "instant": true,
              "intervalFactor": 1,
              "legendFormat": "{{short_version}}",
              "refId": "A"
            }
          ],
          "title": "Version",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "description": "start time of the process",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "dateTimeFromNow"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 2,
            "w": 4,
            "x": 4,
            "y": 1
          },
          "id": 28,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "mean"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_postmaster_start_time_seconds{release=\"$release\", instance=\"$instance\"} * 1000",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Start Time",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "decbytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 2,
            "w": 4,
            "x": 8,
            "y": 1
          },
          "id": 10,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "SUM(pg_stat_database_tup_fetched{datname=~\"$datname\", instance=~\"$instance\"})",
              "format": "time_series",
              "intervalFactor": 2,
              "refId": "A",
              "step": 4
            }
          ],
          "title": "Current fetch data",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "decbytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 2,
            "w": 4,
            "x": 12,
            "y": 1
          },
          "id": 11,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "SUM(pg_stat_database_tup_inserted{release=\"$release\", datname=~\"$datname\", instance=~\"$instance\"})",
              "format": "time_series",
              "intervalFactor": 2,
              "refId": "A",
              "step": 4
            }
          ],
          "title": "Current insert data",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "decbytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 2,
            "w": 4,
            "x": 16,
            "y": 1
          },
          "id": 12,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "SUM(pg_stat_database_tup_updated{datname=~\"$datname\", instance=~\"$instance\"})",
              "format": "time_series",
              "intervalFactor": 2,
              "refId": "A",
              "step": 4
            }
          ],
          "title": "Current update data",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 2,
            "w": 4,
            "x": 20,
            "y": 1
          },
          "id": 38,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "mean"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_settings_max_connections{release=\"$release\", instance=\"$instance\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "title": "Max Connections",
          "type": "stat"
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "description": "Average user and system CPU time spent in seconds.",
          "fieldConfig": {
            "defaults": {
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 0,
            "y": 3
          },
          "hiddenSeries": false,
          "id": 22,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "10.1.5",
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "avg(rate(process_cpu_seconds_total{release=\"$release\", instance=\"$instance\"}[5m]) * 1000)",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "CPU Time",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Average CPU Usage",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "s",
              "logBase": 1,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "description": "Virtual and Resident memory size in bytes, averages over 5 min interval",
          "fieldConfig": {
            "defaults": {
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 8,
            "y": 3
          },
          "hiddenSeries": false,
          "id": 24,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "10.1.5",
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "avg(rate(process_resident_memory_bytes{release=\"$release\", instance=\"$instance\"}[5m]))",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "Resident Mem",
              "refId": "A"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "avg(rate(process_virtual_memory_bytes{release=\"$release\", instance=\"$instance\"}[5m]))",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "Virtual Mem",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Average Memory Usage",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "decbytes",
              "logBase": 1,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "description": "Number of open file descriptors",
          "fieldConfig": {
            "defaults": {
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 16,
            "y": 3
          },
          "hiddenSeries": false,
          "id": 26,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "10.1.5",
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "process_open_fds{release=\"$release\", instance=\"$instance\"}",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "Open FD",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Open File Descriptors",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "logBase": 1,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "collapsed": false,
          "datasource": {
            "type": "datasource",
            "uid": "grafana"
          },
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 10
          },
          "id": 32,
          "panels": [],
          "targets": [
            {
              "datasource": {
                "type": "datasource",
                "uid": "grafana"
              },
              "refId": "A"
            }
          ],
          "title": "Settings",
          "type": "row"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "bytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 3,
            "x": 0,
            "y": 11
          },
          "id": 40,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_settings_shared_buffers_bytes{instance=\"$instance\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "title": "Shared Buffers",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "bytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 3,
            "x": 3,
            "y": 11
          },
          "id": 42,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_settings_effective_cache_size_bytes{instance=\"$instance\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "title": "Effective Cache",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "bytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 3,
            "x": 6,
            "y": 11
          },
          "id": 44,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_settings_maintenance_work_mem_bytes{instance=\"$instance\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "title": "Maintenance Work Mem",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "bytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 3,
            "x": 9,
            "y": 11
          },
          "id": 46,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_settings_work_mem_bytes{instance=\"$instance\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Work Mem",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 1,
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "bytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 3,
            "x": 12,
            "y": 11
          },
          "id": 48,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_settings_max_wal_size_bytes{instance=\"$instance\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "title": "Max WAL Size",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 3,
            "x": 15,
            "y": 11
          },
          "id": 50,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_settings_random_page_cost{instance=\"$instance\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "title": "Random Page Cost",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 2,
            "x": 18,
            "y": 11
          },
          "id": 52,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_settings_seq_page_cost",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "title": "Seq Page Cost",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 2,
            "x": 20,
            "y": 11
          },
          "id": 54,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "mean"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_settings_max_worker_processes{instance=\"$instance\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "title": "Max Worker Processes",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "match": "null",
                    "result": {
                      "text": "N/A"
                    }
                  },
                  "type": "special"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 2,
            "x": 22,
            "y": 11
          },
          "id": 56,
          "links": [],
          "maxDataPoints": 100,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "10.1.5",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_settings_max_parallel_workers{instance=\"$instance\"}",
              "format": "time_series",
              "intervalFactor": 1,
              "refId": "A"
            }
          ],
          "title": "Max Parallel Workers",
          "type": "stat"
        },
        {
          "collapsed": false,
          "datasource": {
            "type": "datasource",
            "uid": "grafana"
          },
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 14
          },
          "id": 30,
          "panels": [],
          "targets": [
            {
              "datasource": {
                "type": "datasource",
                "uid": "grafana"
              },
              "refId": "A"
            }
          ],
          "title": "Database Stats",
          "type": "row"
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 0,
            "y": 15
          },
          "hiddenSeries": false,
          "id": 1,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": false,
            "rightSide": true,
            "show": true,
            "sort": "current",
            "sortDesc": true,
            "total": false,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "connected",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "10.1.5",
          "pointradius": 3,
          "points": true,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_stat_activity_count{datname=~\"$datname\", instance=~\"$instance\", state=\"active\"} !=0",
              "format": "time_series",
              "interval": "",
              "intervalFactor": 2,
              "legendFormat": "{{datname}}, s: {{state}}",
              "refId": "A",
              "step": 2
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Active sessions",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "none",
              "logBase": 1,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 8,
            "y": 15
          },
          "hiddenSeries": false,
          "id": 60,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "10.1.5",
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "irate(pg_stat_database_xact_commit{instance=\"$instance\", datname=~\"$datname\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{datname}} commits",
              "refId": "A"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "irate(pg_stat_database_xact_rollback{instance=\"$instance\", datname=~\"$datname\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{datname}} rollbacks",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Transactions",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "logBase": 1,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fieldConfig": {
            "defaults": {
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 16,
            "y": 15
          },
          "hiddenSeries": false,
          "id": 8,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "sort": "current",
            "sortDesc": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "10.1.5",
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_stat_database_tup_updated{datname=~\"$datname\", instance=~\"$instance\"} != 0",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "{{datname}}",
              "refId": "A",
              "step": 2
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Update data",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "bytes",
              "logBase": 1,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 0,
            "y": 22
          },
          "id": 5,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "sort": "current",
            "sortDesc": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_stat_database_tup_fetched{datname=~\"$datname\", instance=~\"$instance\"} != 0",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "{{datname}}",
              "refId": "A",
              "step": 2
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Fetch data (SELECT)",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "bytes",
              "logBase": 1,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 8,
            "y": 22
          },
          "id": 6,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "sort": "current",
            "sortDesc": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_stat_database_tup_inserted{datname=~\"$datname\", instance=~\"$instance\"} != 0",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "{{datname}}",
              "refId": "A",
              "step": 2
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Insert data",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "bytes",
              "logBase": 1,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "decimals": 0,
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 16,
            "y": 22
          },
          "id": 3,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "hideEmpty": false,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "sort": "current",
            "sortDesc": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_locks_count{datname=~\"$datname\", instance=~\"$instance\", mode=~\"$mode\"} != 0",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "{{datname}},{{mode}}",
              "refId": "A",
              "step": 2
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Lock tables",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 0,
              "format": "short",
              "logBase": 1,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 0,
            "y": 29
          },
          "id": 14,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "sort": "total",
            "sortDesc": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_stat_database_tup_returned{datname=~\"$datname\", instance=~\"$instance\"} != 0",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "{{datname}}",
              "refId": "A",
              "step": 2
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Return data",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "bytes",
              "logBase": 1,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 8,
            "y": 29
          },
          "id": 4,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": false,
            "rightSide": true,
            "show": true,
            "sort": "current",
            "sortDesc": false,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_stat_activity_count{datname=~\"$datname\", instance=~\"$instance\", state=~\"idle|idle in transaction|idle in transaction (aborted)\"}",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "{{datname}}, s: {{state}}",
              "refId": "A",
              "step": 2
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Idle sessions",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "logBase": 1,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 16,
            "y": 29
          },
          "id": 7,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "sort": "current",
            "sortDesc": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_stat_database_tup_deleted{datname=~\"$datname\", instance=~\"$instance\"} != 0",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "{{datname}}",
              "refId": "A",
              "step": 2
            }
          ],
          "thresholds": [],
          "timeRegions": [],
          "title": "Delete data",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "bytes",
              "logBase": 1,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "decimals": 2,
          "fill": 1,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 0,
            "y": 36
          },
          "id": 62,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "pg_stat_database_blks_hit{instance=\"$instance\", datname=~\"$datname\"} / (pg_stat_database_blks_read{instance=\"$instance\", datname=~\"$datname\"} + pg_stat_database_blks_hit{instance=\"$instance\", datname=~\"$datname\"})",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{ datname }}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "title": "Cache Hit Rate",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": 4,
              "format": "percentunit",
              "label": "",
              "logBase": 1,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fill": 1,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 8,
            "y": 36
          },
          "id": 64,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "irate(pg_stat_bgwriter_buffers_backend{instance=\"$instance\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "buffers_backend",
              "refId": "A"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "irate(pg_stat_bgwriter_buffers_alloc{instance=\"$instance\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "buffers_alloc",
              "refId": "B"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "irate(pg_stat_bgwriter_buffers_backend_fsync{instance=\"$instance\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "backend_fsync",
              "refId": "C"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "irate(pg_stat_bgwriter_buffers_checkpoint{instance=\"$instance\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "buffers_checkpoint",
              "refId": "D"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "irate(pg_stat_bgwriter_buffers_clean{instance=\"$instance\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "buffers_clean",
              "refId": "E"
            }
          ],
          "thresholds": [],
          "title": "Buffers (bgwriter)",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "logBase": 1,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "decimals": 0,
          "fill": 1,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 16,
            "y": 36
          },
          "id": 66,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "irate(pg_stat_database_conflicts{instance=\"$instance\", datname=~\"$datname\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{datname}} conflicts",
              "refId": "B"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "irate(pg_stat_database_deadlocks{instance=\"$instance\", datname=~\"$datname\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{datname}} deadlocks",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "title": "Conflicts/Deadlocks",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "logBase": 1,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "description": "Total amount of data written to temporary files by queries in this database. All temporary files are counted, regardless of why the temporary file was created, and regardless of the log_temp_files setting.",
          "fill": 1,
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 0,
            "y": 43
          },
          "id": 68,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "irate(pg_stat_database_temp_bytes{instance=\"$instance\", datname=~\"$datname\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "{{datname}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "title": "Temp File (Bytes)",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "bytes",
              "logBase": 1,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": {
            "type": "prometheus",
            "uid": "$DS_PROM"
          },
          "fill": 1,
          "gridPos": {
            "h": 7,
            "w": 16,
            "x": 8,
            "y": 43
          },
          "id": 70,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "irate(pg_stat_bgwriter_checkpoint_write_time{instance=\"$instance\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "write_time - Total amount of time that has been spent in the portion of checkpoint processing where files are written to disk.",
              "refId": "B"
            },
            {
              "datasource": {
                "type": "prometheus",
                "uid": "$DS_PROM"
              },
              "expr": "irate(pg_stat_bgwriter_checkpoint_sync_time{instance=\"$instance\"}[5m])",
              "format": "time_series",
              "intervalFactor": 1,
              "legendFormat": "sync_time - Total amount of time that has been spent in the portion of checkpoint processing where files are synchronized to disk.",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "title": "Checkpoint Stats",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "ms",
              "logBase": 1,
              "show": true
            },
            {
              "format": "short",
              "logBase": 1,
              "show": true
            }
          ],
          "yaxis": {
            "align": false
          }
        }
      ],
      "refresh": "10s",
      "schemaVersion": 38,
      "style": "dark",
      "tags": [
        "postgres",
        "db",
        "stats"
      ],
      "templating": {
        "list": [
          {
            "current": {
              "text": "Mimir",
              "value": "Mimir"
            },
            "hide": 0,
            "includeAll": false,
            "label": "datasource",
            "multi": false,
            "name": "DS_PROM",
            "query": "prometheus",
            "refresh": 1,
            "skipUrlSync": false,
            "type": "datasource"
          },
          {
            "auto": true,
            "auto_count": 200,
            "auto_min": "1s",
            "current": {
              "selected": false,
              "text": "auto",
              "value": "$__auto_interval_interval"
            },
            "hide": 0,
            "label": "Interval",
            "name": "interval",
            "options": [
              {
                "selected": true,
                "text": "auto",
                "value": "$__auto_interval_interval"
              },
              {
                "selected": false,
                "text": "1s",
                "value": "1s"
              },
              {
                "selected": false,
                "text": "5s",
                "value": "5s"
              },
              {
                "selected": false,
                "text": "1m",
                "value": "1m"
              },
              {
                "selected": false,
                "text": "5m",
                "value": "5m"
              },
              {
                "selected": false,
                "text": "1h",
                "value": "1h"
              },
              {
                "selected": false,
                "text": "6h",
                "value": "6h"
              },
              {
                "selected": false,
                "text": "1d",
                "value": "1d"
              }
            ],
            "query": "1s,5s,1m,5m,1h,6h,1d",
            "refresh": 2,
            "skipUrlSync": false,
            "type": "interval"
          },
          {
            "current": {
              "isNone": true,
              "selected": false,
              "text": "None",
              "value": ""
            },
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "definition": "",
            "hide": 0,
            "includeAll": false,
            "label": "Namespace",
            "multi": false,
            "name": "namespace",
            "options": [],
            "query": "query_result(pg_exporter_last_scrape_duration_seconds)",
            "refresh": 2,
            "regex": "/.*kubernetes_namespace=\"([^\"]+).*/",
            "skipUrlSync": false,
            "sort": 1,
            "tagValuesQuery": "",
            "tagsQuery": "",
            "type": "query",
            "useTags": false
          },
          {
            "current": {
              "isNone": true,
              "selected": false,
              "text": "None",
              "value": ""
            },
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "definition": "",
            "hide": 0,
            "includeAll": false,
            "label": "Release",
            "multi": false,
            "name": "release",
            "options": [],
            "query": "query_result(pg_exporter_last_scrape_duration_seconds{kubernetes_namespace=\"$namespace\"})",
            "refresh": 2,
            "regex": "/.*release=\"([^\"]+)/",
            "skipUrlSync": false,
            "sort": 1,
            "tagValuesQuery": "",
            "tagsQuery": "",
            "type": "query",
            "useTags": false
          },
          {
            "current": {
              "selected": false,
              "text": "postgres-postgresql-metrics.atscale.svc:9187",
              "value": "postgres-postgresql-metrics.atscale.svc:9187"
            },
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "definition": "",
            "hide": 0,
            "includeAll": false,
            "label": "Instance",
            "multi": false,
            "name": "instance",
            "options": [],
            "query": "query_result(pg_up{release=\"$release\"})",
            "refresh": 1,
            "regex": "/.*instance=\"([^\"]+).*/",
            "skipUrlSync": false,
            "sort": 1,
            "tagValuesQuery": "",
            "tagsQuery": "",
            "type": "query",
            "useTags": false
          },
          {
            "current": {
              "selected": false,
              "text": "All",
              "value": "$__all"
            },
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "definition": "",
            "hide": 0,
            "includeAll": true,
            "label": "Database",
            "multi": true,
            "name": "datname",
            "options": [],
            "query": "label_values(datname)",
            "refresh": 1,
            "regex": "",
            "skipUrlSync": false,
            "sort": 1,
            "tagValuesQuery": "",
            "tagsQuery": "",
            "type": "query",
            "useTags": false
          },
          {
            "current": {
              "selected": false,
              "text": "All",
              "value": "$__all"
            },
            "datasource": {
              "type": "prometheus",
              "uid": "$DS_PROM"
            },
            "definition": "",
            "hide": 0,
            "includeAll": true,
            "label": "Lock table",
            "multi": true,
            "name": "mode",
            "options": [],
            "query": "label_values({mode=~\"accessexclusivelock|accesssharelock|exclusivelock|rowexclusivelock|rowsharelock|sharelock|sharerowexclusivelock|shareupdateexclusivelock\"}, mode)",
            "refresh": 1,
            "regex": "",
            "skipUrlSync": false,
            "sort": 0,
            "tagValuesQuery": "",
            "tagsQuery": "",
            "type": "query",
            "useTags": false
          }
        ]
      },
      "time": {
        "from": "now-6h",
        "to": "now"
      },
      "timepicker": {
        "refresh_intervals": [
          "5s",
          "10s",
          "30s",
          "1m",
          "5m",
          "15m",
          "30m",
          "1h",
          "2h",
          "1d"
        ],
        "time_options": [
          "5m",
          "15m",
          "1h",
          "6h",
          "12h",
          "24h",
          "2d",
          "7d",
          "30d"
        ]
      },
      "timezone": "",
      "title": "PostgreSQL Database",
      "uid": "000000039",
      "version": 1,
      "weekStart": ""
    }
kind: ConfigMap
metadata:
  labels:
    app.kubernetes.io/managed-by: Helm
    grafana_dashboard: "1"
  name: atscale-custom-dashboards
  namespace: monitoring
