{
    "__inputs": [
      {
        "name": "DS_PROMETHEUS",
        "label": "Prometheus",
        "description": "",
        "type": "datasource",
        "pluginId": "prometheus",
        "pluginName": "Prometheus"
      }
    ],
    "__elements": {},
    "__requires": [
      {
        "type": "grafana",
        "id": "grafana",
        "name": "Grafana",
        "version": "9.4.3"
      },
      {
        "type": "datasource",
        "id": "prometheus",
        "name": "Prometheus",
        "version": "1.0.0"
      }
    ],
    "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": 3,
    "links": [],
    "panels": [
      {
        "collapsed": false,
        "gridPos": {
          "h": 1,
          "w": 24,
          "x": 0,
          "y": 0
        },
        "id": 21,
        "panels": [],
        "title": "System Overview",
        "type": "row"
      },
      {
        "datasource": {
          "default": true,
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "description": "Displays the name of the operating system running on the server.",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "text"
                }
              ]
            }
          },
          "overrides": []
        },
        "gridPos": {
          "h": 4,
          "w": 5,
          "x": 0,
          "y": 1
        },
        "id": 34,
        "options": {
          "colorMode": "value",
          "graphMode": "area",
          "justifyMode": "auto",
          "orientation": "auto",
          "percentChangeColorMode": "standard",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "/^os$/",
            "values": false
          },
          "showPercentChange": false,
          "textMode": "value",
          "wideLayout": true
        },
        "pluginVersion": "11.2.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "disableTextWrap": false,
            "editorMode": "code",
            "exemplar": false,
            "expr": "max(system_info{instance=\"$instance\"}) by (os)",
            "format": "table",
            "fullMetaSearch": false,
            "includeNullMetadata": true,
            "instant": true,
            "legendFormat": "",
            "range": false,
            "refId": "A",
            "useBackend": false
          }
        ],
        "title": "Operating System",
        "transformations": [
          {
            "id": "organize",
            "options": {
              "excludeByName": {
                "Time": true,
                "Value": true,
                "os": false
              },
              "includeByName": {},
              "indexByName": {},
              "renameByName": {
                "os": "",
                "os_version": "Version",
                "virtualization": "Virtualization Type"
              }
            }
          }
        ],
        "type": "stat"
      },
      {
        "datasource": {
          "default": true,
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "description": "Displays the version of the operating system running on the server.",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "text"
                }
              ]
            }
          },
          "overrides": [
            {
              "matcher": {
                "id": "byName",
                "options": "os"
              },
              "properties": []
            },
            {
              "matcher": {
                "id": "byName",
                "options": "os_version"
              },
              "properties": []
            },
            {
              "matcher": {
                "id": "byName",
                "options": "virtualization"
              },
              "properties": []
            }
          ]
        },
        "gridPos": {
          "h": 4,
          "w": 3,
          "x": 5,
          "y": 1
        },
        "id": 36,
        "options": {
          "colorMode": "value",
          "graphMode": "area",
          "justifyMode": "auto",
          "orientation": "auto",
          "percentChangeColorMode": "standard",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "/^Version$/",
            "values": false
          },
          "showPercentChange": false,
          "textMode": "auto",
          "wideLayout": true
        },
        "pluginVersion": "11.2.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "disableTextWrap": false,
            "editorMode": "code",
            "exemplar": false,
            "expr": "max(system_info{instance=\"$instance\"}) by (os, os_version, virtualization)",
            "format": "table",
            "fullMetaSearch": false,
            "includeNullMetadata": true,
            "instant": true,
            "legendFormat": "",
            "range": false,
            "refId": "A",
            "useBackend": false
          }
        ],
        "title": "OS Version",
        "transformations": [
          {
            "id": "organize",
            "options": {
              "excludeByName": {
                "Time": true,
                "Value": true,
                "os": true,
                "virtualization": true
              },
              "includeByName": {},
              "indexByName": {},
              "renameByName": {
                "os": "Operating System",
                "os_version": "Version",
                "virtualization": "Virtualization Type"
              }
            }
          }
        ],
        "type": "stat"
      },
      {
        "datasource": {
          "default": true,
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "description": "Displays the type of virtualization technology used on the server (e.g., KVM, OpenVZ, VMware).",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "text"
                }
              ]
            }
          },
          "overrides": []
        },
        "gridPos": {
          "h": 4,
          "w": 4,
          "x": 8,
          "y": 1
        },
        "id": 35,
        "options": {
          "colorMode": "value",
          "graphMode": "area",
          "justifyMode": "auto",
          "orientation": "auto",
          "percentChangeColorMode": "standard",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "/^Virtualization Type$/",
            "values": false
          },
          "showPercentChange": false,
          "textMode": "auto",
          "wideLayout": true
        },
        "pluginVersion": "11.2.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "disableTextWrap": false,
            "editorMode": "code",
            "exemplar": false,
            "expr": "max(system_info{instance=\"$instance\"}) by (virtualization)",
            "format": "table",
            "fullMetaSearch": false,
            "includeNullMetadata": true,
            "instant": true,
            "legendFormat": "",
            "range": false,
            "refId": "A",
            "useBackend": false
          }
        ],
        "title": "Virtualization",
        "transformations": [
          {
            "id": "organize",
            "options": {
              "excludeByName": {
                "Time": true,
                "Value": true,
                "os": true,
                "os_version": true
              },
              "includeByName": {},
              "indexByName": {},
              "renameByName": {
                "os": "Operating System",
                "os_version": "Version",
                "virtualization": "Virtualization Type"
              }
            }
          }
        ],
        "type": "stat"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 12,
          "y": 1
        },
        "id": 18,
        "options": {
          "code": {
            "language": "plaintext",
            "showLineNumbers": false,
            "showMiniMap": false
          },
          "content": "### Welcome to the FASTPANEL Monitoring Dashboard!\n\nThis dashboard provides a comprehensive view of your server's health, including real-time data on CPU usage, memory, disk space, databases, and other system resources. All data is updated in real-time, helping you monitor server performance and respond quickly to any issues.\n\nAdditional resources:\n\n- Official FASTPANEL site: https://fastpanel.direct  \n- Knowledge base: https://kb.fastpanel.direct  \n \nIf you have any questions, suggestions for improvements, or encounter issues while using the panel, feel free to contact our technical support. We’re always here to help!",
          "mode": "markdown"
        },
        "pluginVersion": "11.2.0",
        "type": "text"
      },
      {
        "datasource": {
          "default": true,
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "text"
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            },
            "unit": "cores"
          },
          "overrides": [
            {
              "matcher": {
                "id": "byName",
                "options": "model"
              },
              "properties": []
            }
          ]
        },
        "gridPos": {
          "h": 4,
          "w": 4,
          "x": 0,
          "y": 5
        },
        "id": 8,
        "options": {
          "colorMode": "value",
          "graphMode": "area",
          "justifyMode": "auto",
          "orientation": "auto",
          "percentChangeColorMode": "standard",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "/^model$/",
            "values": false
          },
          "showPercentChange": false,
          "textMode": "auto",
          "wideLayout": true
        },
        "pluginVersion": "11.2.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "disableTextWrap": false,
            "editorMode": "code",
            "exemplar": false,
            "expr": "max(system_cpu{instance=\"$instance\"}) by (model, core_count)",
            "format": "table",
            "fullMetaSearch": false,
            "includeNullMetadata": true,
            "instant": true,
            "legendFormat": "",
            "range": false,
            "refId": "A",
            "useBackend": false
          }
        ],
        "title": "CPU",
        "transformations": [
          {
            "id": "organize",
            "options": {
              "excludeByName": {
                "Time": true,
                "Value": true,
                "core_count": true
              },
              "includeByName": {},
              "indexByName": {
                "Time": 0,
                "Value": 3,
                "core_count": 2,
                "model": 1
              },
              "renameByName": {}
            }
          }
        ],
        "type": "stat"
      },
      {
        "datasource": {
          "default": true,
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "description": "Displays the total number of CPU cores available on the server",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "text"
                }
              ]
            },
            "unit": "none"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 4,
          "w": 2,
          "x": 4,
          "y": 5
        },
        "id": 30,
        "options": {
          "colorMode": "value",
          "graphMode": "area",
          "justifyMode": "auto",
          "orientation": "auto",
          "percentChangeColorMode": "standard",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "/.*/",
            "values": false
          },
          "showPercentChange": false,
          "textMode": "auto",
          "wideLayout": true
        },
        "pluginVersion": "11.2.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "disableTextWrap": false,
            "editorMode": "code",
            "exemplar": false,
            "expr": "max(system_cpu{instance=\"$instance\"}) by (model, core_count)",
            "format": "table",
            "fullMetaSearch": false,
            "includeNullMetadata": true,
            "instant": true,
            "legendFormat": "",
            "range": false,
            "refId": "A",
            "useBackend": false
          }
        ],
        "title": "Cores",
        "transformations": [
          {
            "id": "organize",
            "options": {
              "excludeByName": {
                "Time": true,
                "Value": true,
                "core_count": false,
                "model": true
              },
              "includeByName": {},
              "indexByName": {
                "Time": 0,
                "Value": 3,
                "core_count": 2,
                "model": 1
              },
              "renameByName": {}
            }
          }
        ],
        "type": "stat"
      },
      {
        "datasource": {
          "default": true,
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "description": "Displays the total amount of storage capacity available on the server. ",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "text"
                }
              ]
            },
            "unit": "decgbytes"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 4,
          "w": 3,
          "x": 6,
          "y": 5
        },
        "id": 5,
        "options": {
          "colorMode": "value",
          "graphMode": "none",
          "justifyMode": "auto",
          "orientation": "auto",
          "percentChangeColorMode": "standard",
          "reduceOptions": {
            "calcs": [
              "last"
            ],
            "fields": "",
            "values": false
          },
          "showPercentChange": false,
          "text": {},
          "textMode": "auto",
          "wideLayout": true
        },
        "pluginVersion": "11.2.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "editorMode": "code",
            "expr": "sum (system_disk_total{instance=\"$instance\"}) / 1024 / 1024 / 1024 ",
            "instant": false,
            "legendFormat": "__auto",
            "range": true,
            "refId": "A"
          }
        ],
        "title": "Total disk space",
        "type": "stat"
      },
      {
        "datasource": {
          "default": true,
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "description": "Displays the total amount of physical memory (RAM) available on the server.",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "text"
                }
              ]
            },
            "unit": "decgbytes"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 4,
          "w": 3,
          "x": 9,
          "y": 5
        },
        "id": 6,
        "options": {
          "colorMode": "value",
          "graphMode": "none",
          "justifyMode": "auto",
          "orientation": "auto",
          "percentChangeColorMode": "standard",
          "reduceOptions": {
            "calcs": [
              "last"
            ],
            "fields": "",
            "values": false
          },
          "showPercentChange": false,
          "textMode": "auto",
          "wideLayout": true
        },
        "pluginVersion": "11.2.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "editorMode": "code",
            "expr": "system_memory_total{instance=\"$instance\"} / 1024 / 1024 / 1024",
            "instant": false,
            "legendFormat": "__auto",
            "range": true,
            "refId": "A"
          }
        ],
        "title": "Total RAM",
        "type": "stat"
      },
      {
        "collapsed": true,
        "gridPos": {
          "h": 1,
          "w": 24,
          "x": 0,
          "y": 9
        },
        "id": 31,
        "panels": [
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "This graph shows the Uptime of your server, which represents the total time the system has been running continuously without any reboots or shutdowns. ",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "mappings": [
                  {
                    "options": {
                      "match": "null+nan",
                      "result": {
                        "color": "text",
                        "index": 0,
                        "text": "-"
                      }
                    },
                    "type": "special"
                  }
                ],
                "thresholds": {
                  "mode": "percentage",
                  "steps": [
                    {
                      "color": "light-green"
                    }
                  ]
                },
                "unit": "s"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 3,
              "w": 3,
              "x": 0,
              "y": 10
            },
            "id": 25,
            "options": {
              "colorMode": "value",
              "graphMode": "none",
              "justifyMode": "auto",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "textMode": "auto",
              "wideLayout": true
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "editorMode": "code",
                "expr": "system_uptime{instance=\"$instance\"}",
                "instant": false,
                "legendFormat": "__auto",
                "range": true,
                "refId": "A"
              }
            ],
            "title": "Uptime",
            "type": "stat"
          },
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "This graph displays the Load Average (LA) of your system, which represents the average number of processes that are either running or waiting for CPU resources over different time periods (1 minute). It's a key indicator of how well your server is handling its current workload.",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "decimals": 2,
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "light-green"
                    }
                  ]
                }
              },
              "overrides": []
            },
            "gridPos": {
              "h": 3,
              "w": 3,
              "x": 3,
              "y": 10
            },
            "id": 13,
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "textMode": "auto",
              "wideLayout": true
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "editorMode": "code",
                "exemplar": false,
                "expr": "system_la1{instance=\"$instance\"}",
                "instant": true,
                "legendFormat": "__auto",
                "range": false,
                "refId": "A"
              }
            ],
            "title": "Load Average 1",
            "type": "stat"
          },
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "This graph displays the Load Average (LA) of your system, which represents the average number of processes that are either running or waiting for CPU resources over different time periods (5 minutes). It's a key indicator of how well your server is handling its current workload.",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "decimals": 2,
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "light-green"
                    }
                  ]
                }
              },
              "overrides": []
            },
            "gridPos": {
              "h": 3,
              "w": 3,
              "x": 6,
              "y": 10
            },
            "id": 14,
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "textMode": "auto",
              "wideLayout": true
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "editorMode": "code",
                "exemplar": false,
                "expr": "system_la5{instance=\"$instance\"}",
                "instant": true,
                "legendFormat": "__auto",
                "range": false,
                "refId": "A"
              }
            ],
            "title": "Load Average 5",
            "type": "stat"
          },
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "This graph displays the Load Average (LA) of your system, which represents the average number of processes that are either running or waiting for CPU resources over different time periods (15 minutes). It's a key indicator of how well your server is handling its current workload.",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "decimals": 2,
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "light-green"
                    }
                  ]
                }
              },
              "overrides": []
            },
            "gridPos": {
              "h": 3,
              "w": 3,
              "x": 9,
              "y": 10
            },
            "id": 15,
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "textMode": "auto",
              "wideLayout": true
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "editorMode": "code",
                "exemplar": false,
                "expr": "system_la15{instance=\"$instance\"}",
                "instant": true,
                "legendFormat": "__auto",
                "range": false,
                "refId": "A"
              }
            ],
            "title": "Load Average 15",
            "type": "stat"
          },
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "Shows the current number of processes running or waiting. An increase may indicate higher system load and resource demand.",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "light-green"
                    }
                  ]
                }
              },
              "overrides": []
            },
            "gridPos": {
              "h": 5,
              "w": 3,
              "x": 0,
              "y": 13
            },
            "id": 27,
            "options": {
              "colorMode": "value",
              "graphMode": "area",
              "justifyMode": "auto",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "textMode": "auto",
              "wideLayout": true
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "editorMode": "code",
                "expr": "system_num_of_process{instance=\"$instance\"}",
                "instant": false,
                "legendFormat": "__auto",
                "range": true,
                "refId": "A"
              }
            ],
            "title": "Number of processes",
            "type": "stat"
          },
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "Displays the amount of used disk space. Monitoring it helps prevent disk full errors, which can cause performance issues or data loss.",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "light-green"
                    },
                    {
                      "color": "#EAB839",
                      "value": 70
                    },
                    {
                      "color": "red",
                      "value": 90
                    }
                  ]
                },
                "unit": "percent"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 5,
              "w": 3,
              "x": 3,
              "y": 13
            },
            "id": 12,
            "options": {
              "minVizHeight": 75,
              "minVizWidth": 75,
              "orientation": "auto",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showThresholdLabels": false,
              "showThresholdMarkers": true,
              "sizing": "auto"
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "editorMode": "code",
                "expr": "sum(system_disk_usage{instance=\"$instance\"}) * 100 / sum(system_disk_total{instance=\"$instance\"})",
                "instant": false,
                "legendFormat": "__auto",
                "range": true,
                "refId": "A"
              }
            ],
            "title": "Disk space used",
            "type": "gauge"
          },
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "Displays the amount of RAM currently in use. Monitoring memory usage helps ensure the system has enough resources for smooth performance and prevents issues caused by running out of memory.",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "light-green"
                    },
                    {
                      "color": "#EAB839",
                      "value": 70
                    },
                    {
                      "color": "red",
                      "value": 90
                    }
                  ]
                },
                "unit": "percent"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 5,
              "w": 3,
              "x": 6,
              "y": 13
            },
            "id": 26,
            "options": {
              "minVizHeight": 75,
              "minVizWidth": 75,
              "orientation": "auto",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showThresholdLabels": false,
              "showThresholdMarkers": true,
              "sizing": "auto"
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "editorMode": "code",
                "expr": "(system_memory_cached{instance=\"$instance\"} + system_memory_used{instance=\"$instance\"}) * 100 / system_memory_total{instance=\"$instance\"}",
                "instant": false,
                "legendFormat": "__auto",
                "range": true,
                "refId": "A"
              }
            ],
            "title": "Memory used",
            "type": "gauge"
          },
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "Displays the number of inodes currently in use. Inodes track files and directories on the disk. Monitoring inode usage helps prevent the system from running out of inodes, which can occur even if there is free disk space, leading to file creation failures.",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "fieldMinMax": false,
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "light-green"
                    },
                    {
                      "color": "#EAB839",
                      "value": 70
                    },
                    {
                      "color": "red",
                      "value": 90
                    }
                  ]
                },
                "unit": "percent"
              },
              "overrides": []
            },
            "gridPos": {
              "h": 5,
              "w": 3,
              "x": 9,
              "y": 13
            },
            "id": 11,
            "options": {
              "minVizHeight": 75,
              "minVizWidth": 75,
              "orientation": "auto",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showThresholdLabels": false,
              "showThresholdMarkers": true,
              "sizing": "auto"
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "editorMode": "code",
                "expr": "sum(system_disk_inode_used{instance=\"$instance\"}) * 100 / sum(system_disk_inode_total)",
                "instant": false,
                "legendFormat": "__auto",
                "range": true,
                "refId": "A"
              }
            ],
            "title": "Inodes used",
            "type": "gauge"
          }
        ],
        "title": "System Metrics",
        "type": "row"
      },
      {
        "collapsed": true,
        "gridPos": {
          "h": 1,
          "w": 24,
          "x": 0,
          "y": 10
        },
        "id": 32,
        "panels": [
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "Shows the total number of users created in FASTPANEL. ",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "#07357c"
                    }
                  ]
                }
              },
              "overrides": []
            },
            "gridPos": {
              "h": 4,
              "w": 3,
              "x": 0,
              "y": 11
            },
            "id": 2,
            "options": {
              "colorMode": "value",
              "graphMode": "none",
              "justifyMode": "auto",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "textMode": "auto",
              "wideLayout": true
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "disableTextWrap": false,
                "editorMode": "code",
                "expr": "users_count{instance=\"$instance\"}",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "instant": false,
                "legendFormat": "__auto",
                "range": true,
                "refId": "A",
                "useBackend": false
              }
            ],
            "title": "Users",
            "type": "stat"
          },
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "Shows the total number of websites created in FASTPANEL. ",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "#07357c"
                    }
                  ]
                }
              },
              "overrides": []
            },
            "gridPos": {
              "h": 4,
              "w": 3,
              "x": 3,
              "y": 11
            },
            "id": 3,
            "options": {
              "colorMode": "value",
              "graphMode": "none",
              "justifyMode": "auto",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "textMode": "auto",
              "wideLayout": true
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "disableTextWrap": false,
                "editorMode": "code",
                "expr": "websites_count{instance=\"$instance\"}",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "instant": false,
                "legendFormat": "__auto",
                "range": true,
                "refId": "A",
                "useBackend": false
              }
            ],
            "title": "Websites",
            "type": "stat"
          },
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "Shows the total number of mailboxes created in FASTPANEL. ",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "mappings": [
                  {
                    "options": {
                      "match": "null+nan",
                      "result": {
                        "color": "text",
                        "index": 0,
                        "text": "-"
                      }
                    },
                    "type": "special"
                  }
                ],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "#07357c"
                    }
                  ]
                }
              },
              "overrides": []
            },
            "gridPos": {
              "h": 4,
              "w": 3,
              "x": 6,
              "y": 11
            },
            "id": 23,
            "options": {
              "colorMode": "value",
              "graphMode": "none",
              "justifyMode": "auto",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "textMode": "auto",
              "wideLayout": true
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "editorMode": "code",
                "expr": "sum(emails_count{instance=\"$instance\"})",
                "instant": false,
                "legendFormat": "__auto",
                "range": true,
                "refId": "A"
              }
            ],
            "title": "Mailboxes",
            "type": "stat"
          },
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "Shows the total number of databases created in FASTPANEL. ",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "mappings": [
                  {
                    "options": {
                      "0": {
                        "color": "text",
                        "index": 0,
                        "text": "-"
                      }
                    },
                    "type": "value"
                  }
                ],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "#07357c"
                    }
                  ]
                }
              },
              "overrides": []
            },
            "gridPos": {
              "h": 4,
              "w": 3,
              "x": 9,
              "y": 11
            },
            "id": 19,
            "options": {
              "colorMode": "value",
              "graphMode": "none",
              "justifyMode": "auto",
              "orientation": "auto",
              "percentChangeColorMode": "standard",
              "reduceOptions": {
                "calcs": [
                  "lastNotNull"
                ],
                "fields": "",
                "values": false
              },
              "showPercentChange": false,
              "textMode": "auto",
              "wideLayout": true
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "editorMode": "code",
                "expr": "databases_count{instance=\"$instance\"}",
                "instant": false,
                "legendFormat": "__auto",
                "range": true,
                "refId": "A"
              }
            ],
            "title": "Databases",
            "type": "stat"
          }
        ],
        "title": "FASTPANEL Metrics",
        "type": "row"
      },
      {
        "collapsed": true,
        "gridPos": {
          "h": 1,
          "w": 24,
          "x": 0,
          "y": 11
        },
        "id": 17,
        "panels": [
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "Displays a list of websites hosted on the server along with their respective sizes.",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "custom": {
                  "align": "auto",
                  "cellOptions": {
                    "type": "auto"
                  },
                  "inspect": false
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green"
                    }
                  ]
                },
                "unit": "bytes"
              },
              "overrides": [
                {
                  "matcher": {
                    "id": "byName",
                    "options": "Value"
                  },
                  "properties": [
                    {
                      "id": "custom.width",
                      "value": 120
                    }
                  ]
                },
                {
                  "matcher": {
                    "id": "byName",
                    "options": "hostname"
                  },
                  "properties": [
                    {
                      "id": "custom.width",
                      "value": 275
                    }
                  ]
                }
              ]
            },
            "gridPos": {
              "h": 6,
              "w": 6,
              "x": 0,
              "y": 12
            },
            "id": 9,
            "options": {
              "cellHeight": "sm",
              "footer": {
                "countRows": false,
                "fields": "",
                "reducer": [
                  "sum"
                ],
                "show": false
              },
              "showHeader": true,
              "sortBy": []
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "disableTextWrap": false,
                "editorMode": "code",
                "exemplar": false,
                "expr": "websites_size{instance=\"$instance\"}",
                "format": "table",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "instant": true,
                "legendFormat": "",
                "range": false,
                "refId": "A",
                "useBackend": false
              }
            ],
            "title": "Websites",
            "transformations": [
              {
                "id": "organize",
                "options": {
                  "excludeByName": {
                    "Time": true,
                    "Value": false,
                    "__name__": true,
                    "instance": true,
                    "job": true
                  },
                  "includeByName": {},
                  "indexByName": {
                    "Time": 0,
                    "Value": 3,
                    "__name__": 1,
                    "hostname": 2,
                    "instance": 4,
                    "job": 5
                  },
                  "renameByName": {
                    "Value": "Size",
                    "hostname": "Website"
                  }
                }
              }
            ],
            "type": "table"
          },
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "Displays a list of mailboxes hosted on the server along with their respective sizes.",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "custom": {
                  "align": "auto",
                  "cellOptions": {
                    "type": "auto"
                  },
                  "inspect": false
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green"
                    }
                  ]
                },
                "unit": "bytes"
              },
              "overrides": [
                {
                  "matcher": {
                    "id": "byName",
                    "options": "name"
                  },
                  "properties": [
                    {
                      "id": "custom.width",
                      "value": 275
                    }
                  ]
                },
                {
                  "matcher": {
                    "id": "byName",
                    "options": "Value"
                  },
                  "properties": [
                    {
                      "id": "custom.width",
                      "value": 120
                    }
                  ]
                }
              ]
            },
            "gridPos": {
              "h": 6,
              "w": 4,
              "x": 6,
              "y": 12
            },
            "id": 10,
            "options": {
              "cellHeight": "sm",
              "footer": {
                "countRows": false,
                "fields": "",
                "reducer": [
                  "sum"
                ],
                "show": false
              },
              "showHeader": true,
              "sortBy": []
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "disableTextWrap": false,
                "editorMode": "code",
                "exemplar": false,
                "expr": "emails_size{instance=\"$instance\"} ",
                "format": "table",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "instant": true,
                "legendFormat": "",
                "range": false,
                "refId": "A",
                "useBackend": false
              }
            ],
            "title": "Mailboxes",
            "transformations": [
              {
                "id": "organize",
                "options": {
                  "excludeByName": {
                    "Time": true,
                    "__name__": true,
                    "instance": true,
                    "job": true
                  },
                  "includeByName": {},
                  "indexByName": {},
                  "renameByName": {
                    "Value": "Size",
                    "address": "Email"
                  }
                }
              }
            ],
            "type": "table"
          },
          {
            "datasource": {
              "default": true,
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "description": "Displays a list of databases hosted on the server along with their type (e.g., MySQL, PostgreSQL) and respective sizes. ",
            "fieldConfig": {
              "defaults": {
                "color": {
                  "mode": "thresholds"
                },
                "custom": {
                  "align": "auto",
                  "cellOptions": {
                    "type": "auto"
                  },
                  "inspect": false
                },
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green"
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                },
                "unit": "bytes"
              },
              "overrides": [
                {
                  "matcher": {
                    "id": "byName",
                    "options": "model"
                  },
                  "properties": [
                    {
                      "id": "custom.width",
                      "value": 354
                    }
                  ]
                },
                {
                  "matcher": {
                    "id": "byName",
                    "options": "name"
                  },
                  "properties": [
                    {
                      "id": "custom.width",
                      "value": 250
                    }
                  ]
                },
                {
                  "matcher": {
                    "id": "byName",
                    "options": "type"
                  },
                  "properties": [
                    {
                      "id": "custom.width",
                      "value": 120
                    }
                  ]
                },
                {
                  "matcher": {
                    "id": "byName",
                    "options": "Value"
                  },
                  "properties": [
                    {
                      "id": "custom.width",
                      "value": 120
                    }
                  ]
                }
              ]
            },
            "gridPos": {
              "h": 6,
              "w": 7,
              "x": 10,
              "y": 12
            },
            "id": 24,
            "options": {
              "cellHeight": "sm",
              "footer": {
                "countRows": false,
                "fields": "",
                "reducer": [
                  "sum"
                ],
                "show": false
              },
              "showHeader": true,
              "sortBy": []
            },
            "pluginVersion": "11.2.0",
            "targets": [
              {
                "datasource": {
                  "type": "prometheus",
                  "uid": "${DS_PROMETHEUS}"
                },
                "disableTextWrap": false,
                "editorMode": "code",
                "exemplar": false,
                "expr": "databases_size{instance=\"$instance\"}",
                "format": "table",
                "fullMetaSearch": false,
                "includeNullMetadata": true,
                "instant": true,
                "legendFormat": "",
                "range": false,
                "refId": "A",
                "useBackend": false
              }
            ],
            "title": "Databases",
            "transformations": [
              {
                "id": "organize",
                "options": {
                  "excludeByName": {
                    "Time": true,
                    "__name__": true,
                    "instance": true,
                    "job": true
                  },
                  "includeByName": {},
                  "indexByName": {},
                  "renameByName": {
                    "Value": "Size",
                    "name": "Database",
                    "type": "Type"
                  }
                }
              }
            ],
            "type": "table"
          }
        ],
        "title": "Detailed FASTPANEL Metrics",
        "type": "row"
      },
      {
        "collapsed": false,
        "gridPos": {
          "h": 1,
          "w": 24,
          "x": 0,
          "y": 12
        },
        "id": 22,
        "panels": [],
        "title": "Resource Utilization",
        "type": "row"
      },
      {
        "datasource": {
          "default": true,
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "palette-classic"
            },
            "custom": {
              "axisBorderShow": false,
              "axisCenteredZero": false,
              "axisColorMode": "text",
              "axisLabel": "",
              "axisPlacement": "auto",
              "barAlignment": 0,
              "barWidthFactor": 0.6,
              "drawStyle": "line",
              "fillOpacity": 0,
              "gradientMode": "none",
              "hideFrom": {
                "legend": false,
                "tooltip": false,
                "viz": false
              },
              "insertNulls": false,
              "lineInterpolation": "linear",
              "lineWidth": 1,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "auto",
              "spanNulls": false,
              "stacking": {
                "group": "A",
                "mode": "none"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green"
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            }
          },
          "overrides": [
            {
              "__systemRef": "hideSeriesFrom",
              "matcher": {
                "id": "byNames",
                "options": {
                  "mode": "exclude",
                  "names": [
                    "{__name__=\"system_cpu_percentage\", instance=\"127.0.0.1:8888\", job=\"fastpanel\"}"
                  ],
                  "prefix": "All except:",
                  "readOnly": true
                }
              },
              "properties": [
                {
                  "id": "custom.hideFrom",
                  "value": {
                    "legend": false,
                    "tooltip": false,
                    "viz": false
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "{__name__=\"system_cpu_percentage\", instance=\"127.0.0.1:8888\", job=\"fastpanel\"}"
              },
              "properties": [
                {
                  "id": "displayName",
                  "value": "CPU Load in %"
                }
              ]
            }
          ]
        },
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 0,
          "y": 13
        },
        "id": 33,
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom",
            "showLegend": true
          },
          "tooltip": {
            "mode": "single",
            "sort": "none"
          }
        },
        "pluginVersion": "11.2.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "disableTextWrap": false,
            "editorMode": "code",
            "expr": "system_cpu_percentage{instance=\"$instance\"}",
            "fullMetaSearch": false,
            "includeNullMetadata": true,
            "instant": false,
            "legendFormat": "__auto",
            "range": true,
            "refId": "A",
            "useBackend": false
          }
        ],
        "title": "CPU Usage",
        "type": "timeseries"
      },
      {
        "datasource": {
          "default": true,
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "palette-classic"
            },
            "custom": {
              "axisBorderShow": false,
              "axisCenteredZero": false,
              "axisColorMode": "text",
              "axisLabel": "",
              "axisPlacement": "auto",
              "barAlignment": 0,
              "barWidthFactor": 0.6,
              "drawStyle": "line",
              "fillOpacity": 0,
              "gradientMode": "opacity",
              "hideFrom": {
                "legend": false,
                "tooltip": false,
                "viz": false
              },
              "insertNulls": false,
              "lineInterpolation": "linear",
              "lineWidth": 1,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "auto",
              "spanNulls": false,
              "stacking": {
                "group": "A",
                "mode": "none"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green"
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            }
          },
          "overrides": []
        },
        "gridPos": {
          "h": 8,
          "w": 12,
          "x": 12,
          "y": 13
        },
        "id": 7,
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "table",
            "placement": "bottom",
            "showLegend": true
          },
          "tooltip": {
            "mode": "multi",
            "sort": "none"
          }
        },
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "editorMode": "code",
            "expr": "system_la1{instance=\"$instance\"}",
            "instant": false,
            "legendFormat": "Load Average 1 min",
            "range": true,
            "refId": "LA 1"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "editorMode": "code",
            "expr": "system_la5{instance=\"$instance\"}",
            "hide": false,
            "instant": false,
            "legendFormat": "Load Average 5 min",
            "range": true,
            "refId": "LA 5"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "editorMode": "code",
            "expr": "system_la15{instance=\"$instance\"}",
            "hide": false,
            "instant": false,
            "legendFormat": "Load Average 15 min",
            "range": true,
            "refId": "LA 15"
          }
        ],
        "title": "Load Average",
        "type": "timeseries"
      },
      {
        "datasource": {
          "default": true,
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "description": "The quota package must be installed for the metric to function.",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "palette-classic"
            },
            "custom": {
              "axisBorderShow": false,
              "axisCenteredZero": false,
              "axisColorMode": "text",
              "axisLabel": "",
              "axisPlacement": "auto",
              "barAlignment": 0,
              "barWidthFactor": 0.6,
              "drawStyle": "line",
              "fillOpacity": 20,
              "gradientMode": "opacity",
              "hideFrom": {
                "legend": false,
                "tooltip": false,
                "viz": false
              },
              "insertNulls": false,
              "lineInterpolation": "linear",
              "lineWidth": 1,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "auto",
              "spanNulls": false,
              "stacking": {
                "group": "A",
                "mode": "none"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green"
                }
              ]
            },
            "unit": "bytes"
          },
          "overrides": [
            {
              "matcher": {
                "id": "byName",
                "options": "Total disk space"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "green",
                    "mode": "fixed"
                  }
                }
              ]
            }
          ]
        },
        "gridPos": {
          "h": 8,
          "w": 24,
          "x": 0,
          "y": 21
        },
        "id": 4,
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom",
            "showLegend": true
          },
          "tooltip": {
            "mode": "multi",
            "sort": "none"
          }
        },
        "pluginVersion": "11.2.0",
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "editorMode": "code",
            "expr": "users_disk_usage{user=~\".*\",instance=\"$instance\"}",
            "instant": false,
            "legendFormat": "{{username}}",
            "range": true,
            "refId": "A"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "editorMode": "code",
            "expr": "system_disk_total{instance=\"$instance\"}",
            "hide": false,
            "instant": false,
            "legendFormat": "Total disk space",
            "range": true,
            "refId": "B"
          }
        ],
        "title": "Disk usage by user",
        "type": "timeseries"
      },
      {
        "datasource": {
          "default": true,
          "type": "prometheus",
          "uid": "${DS_PROMETHEUS}"
        },
        "description": "Used + Cached",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "palette-classic"
            },
            "custom": {
              "axisBorderShow": false,
              "axisCenteredZero": false,
              "axisColorMode": "text",
              "axisLabel": "",
              "axisPlacement": "auto",
              "barAlignment": 0,
              "barWidthFactor": 0.6,
              "drawStyle": "line",
              "fillOpacity": 20,
              "gradientMode": "opacity",
              "hideFrom": {
                "legend": false,
                "tooltip": false,
                "viz": false
              },
              "insertNulls": false,
              "lineInterpolation": "linear",
              "lineWidth": 1,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "auto",
              "spanNulls": false,
              "stacking": {
                "group": "A",
                "mode": "none"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "mappings": [],
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green"
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            },
            "unit": "bytes"
          },
          "overrides": [
            {
              "matcher": {
                "id": "byName",
                "options": "Used"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "red",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Total"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "green",
                    "mode": "fixed"
                  }
                }
              ]
            }
          ]
        },
        "gridPos": {
          "h": 8,
          "w": 24,
          "x": 0,
          "y": 29
        },
        "id": 1,
        "options": {
          "legend": {
            "calcs": [],
            "displayMode": "list",
            "placement": "bottom",
            "showLegend": true
          },
          "tooltip": {
            "mode": "multi",
            "sort": "none"
          }
        },
        "targets": [
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "editorMode": "code",
            "exemplar": false,
            "expr": "system_memory_cached{instance=\"$instance\"} + system_memory_used{instance=\"$instance\"}",
            "instant": false,
            "interval": "",
            "legendFormat": "Used",
            "range": true,
            "refId": "A"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "editorMode": "code",
            "expr": "system_memory_cached{instance=\"$instance\"}",
            "hide": false,
            "instant": false,
            "legendFormat": "Cached",
            "range": true,
            "refId": "B"
          },
          {
            "datasource": {
              "type": "prometheus",
              "uid": "${DS_PROMETHEUS}"
            },
            "editorMode": "code",
            "expr": "system_memory_total{instance=\"$instance\"}",
            "hide": false,
            "instant": false,
            "legendFormat": "Total",
            "range": true,
            "refId": "C"
          }
        ],
        "title": "Memory used",
        "type": "timeseries"
      }
    ],
    "refresh": "5s",
    "schemaVersion": 39,
    "tags": [],
    "templating": {
      "list": [
        {
          "current": {
            "isNone": true,
            "selected": false,
            "text": "None",
            "value": ""
          },
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_PROMETHEUS}"
          },
          "definition": "query_result(system_info)",
          "hide": 0,
          "includeAll": false,
          "label": "",
          "multi": false,
          "name": "instance",
          "options": [],
          "query": {
            "qryType": 3,
            "query": "query_result(system_info)",
            "refId": "PrometheusVariableQueryEditor-VariableQuery"
          },
          "refresh": 1,
          "regex": "/.*instance=\"([^\"]+).*/",
          "skipUrlSync": false,
          "sort": 0,
          "type": "query"
        }
      ]
    },
    "time": {
      "from": "now-15m",
      "to": "now"
    },
    "timepicker": {},
    "timezone": "browser",
    "title": "FASTPANEL Dashboard",
    "uid": null,
    "version": 1,
    "weekStart": ""
}
