{
  "__inputs": [
    {
      "name": "DS_TDENGINE",
      "label": "TDengine",
      "description": "",
      "type": "datasource",
      "pluginId": "tdengine-datasource",
      "pluginName": "TDengine"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.5.10"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "panel",
      "id": "piechart",
      "name": "Pie chart v2",
      "version": ""
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "tdengine-datasource",
      "name": "TDengine",
      "version": "3.1.0"
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "TDengine nodes metrics.",
  "editable": true,
  "gnetId": 15146,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1635263227798,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 57,
      "panels": [],
      "title": "Cluster Status",
      "type": "row"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 24,
        "x": 0,
        "y": 1
      },
      "id": 32,
      "options": {
        "content": "<h1><center>TDengine Cluster Dashboard</center></h1>>\n",
        "mode": "markdown"
      },
      "pluginVersion": "7.5.10",
      "repeatDirection": "h",
      "targets": [
        {
          "alias": "mnodes",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show mnodes",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "-- OVERVIEW --",
      "transformations": [
        {
          "id": "calculateField",
          "options": {
            "binary": {
              "left": "Time",
              "operator": "+",
              "reducer": "sum",
              "right": ""
            },
            "mode": "binary",
            "reduce": {
              "reducer": "sum"
            }
          }
        }
      ],
      "type": "text"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 8,
        "x": 0,
        "y": 4
      },
      "id": 28,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["lastNotNull"],
          "fields": "",
          "values": true
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.10",
      "repeatDirection": "h",
      "targets": [
        {
          "alias": "dnodes",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show mnodes",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Master MNode",
      "transformations": [
        {
          "id": "filterByValue",
          "options": {
            "filters": [
              {
                "config": {
                  "id": "regex",
                  "options": {
                    "value": "master"
                  }
                },
                "fieldName": "role"
              }
            ],
            "match": "all",
            "type": "include"
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": ["dnodes"]
            }
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 7,
        "x": 8,
        "y": 4
      },
      "id": 70,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["lastNotNull"],
          "fields": "/^Time$/",
          "values": true
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.10",
      "repeatDirection": "h",
      "targets": [
        {
          "alias": "dnodes",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show mnodes",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Master MNode Create Time",
      "transformations": [
        {
          "id": "filterByValue",
          "options": {
            "filters": [
              {
                "config": {
                  "id": "regex",
                  "options": {
                    "value": "master"
                  }
                },
                "fieldName": "role"
              }
            ],
            "match": "all",
            "type": "include"
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": ["Time"]
            }
          }
        },
        {
          "id": "calculateField",
          "options": {
            "mode": "reduceRow",
            "reduce": {
              "reducer": "min"
            }
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": null,
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 9,
        "x": 15,
        "y": 4
      },
      "id": 29,
      "options": {
        "showHeader": true
      },
      "pluginVersion": "7.5.10",
      "repeatDirection": "h",
      "targets": [
        {
          "alias": "dnodes",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show variables",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Variables",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": ["value", "name"]
            }
          }
        },
        {
          "id": "filterByValue",
          "options": {
            "filters": [
              {
                "config": {
                  "id": "regex",
                  "options": {
                    "value": ".*"
                  }
                },
                "fieldName": "name"
              }
            ],
            "match": "all",
            "type": "include"
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 2,
        "x": 0,
        "y": 7
      },
      "id": 33,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["lastNotNull"],
          "fields": "/.*/",
          "values": true
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.10",
      "repeatDirection": "h",
      "targets": [
        {
          "alias": "dnodes",
          "formatType": "Table",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select server_version()",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Server Version",
      "transformations": [],
      "type": "stat"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 2,
        "y": 7
      },
      "id": 27,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["lastNotNull"],
          "fields": "",
          "values": true
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.10",
      "repeatDirection": "h",
      "targets": [
        {
          "alias": "dnodes",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show mnodes",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Number of MNodes",
      "transformations": [
        {
          "id": "filterByValue",
          "options": {
            "filters": [
              {
                "config": {
                  "id": "greater",
                  "options": {
                    "value": 0
                  }
                },
                "fieldName": "id"
              }
            ],
            "match": "any",
            "type": "include"
          }
        },
        {
          "id": "reduce",
          "options": {
            "includeTimeField": false,
            "mode": "reduceFields",
            "reducers": ["count"]
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": ["id"]
            }
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 2,
        "x": 5,
        "y": 7
      },
      "id": 41,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": ["last"],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "value"
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show dnodes",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Total Dnodes",
      "transformations": [
        {
          "id": "reduce",
          "options": {
            "includeTimeField": false,
            "mode": "reduceFields",
            "reducers": ["count"]
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": ["id"]
            }
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 2,
        "x": 7,
        "y": 7
      },
      "id": 31,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": ["last"],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "value"
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show dnodes",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Offline Dnodes",
      "transformations": [
        {
          "id": "filterByValue",
          "options": {
            "filters": [
              {
                "config": {
                  "id": "regex",
                  "options": {
                    "value": "ready"
                  }
                },
                "fieldName": "status"
              }
            ],
            "match": "all",
            "type": "exclude"
          }
        },
        {
          "id": "reduce",
          "options": {
            "includeTimeField": false,
            "mode": "reduceFields",
            "reducers": ["count"]
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": ["id"]
            }
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 9,
        "y": 7
      },
      "id": 65,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["lastNotNull"],
          "fields": "",
          "values": true
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.10",
      "repeatDirection": "h",
      "targets": [
        {
          "alias": "dnodes",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show databases;",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Number of Databases",
      "transformations": [
        {
          "id": "reduce",
          "options": {
            "includeTimeField": false,
            "mode": "reduceFields",
            "reducers": ["count"]
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": ["name"]
            }
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 12,
        "y": 7
      },
      "id": 69,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["lastNotNull"],
          "fields": "",
          "values": true
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.10",
      "repeatDirection": "h",
      "targets": [
        {
          "alias": "dnodes",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show databases;",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Total Number of Vgroups",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": ["vgroups"]
            }
          }
        },
        {
          "id": "reduce",
          "options": {
            "includeTimeField": false,
            "mode": "reduceFields",
            "reducers": ["sum"]
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "center",
            "displayMode": "auto",
            "filterable": true
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "role"
            },
            "properties": [
              {
                "id": "mappings",
                "value": [
                  {
                    "from": "",
                    "id": 1,
                    "text": "",
                    "to": "",
                    "type": 2,
                    "value": ""
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 3,
        "w": 9,
        "x": 0,
        "y": 10
      },
      "id": 67,
      "options": {
        "showHeader": true
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "formatType": "Table",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show dnodes",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Number of DNodes for each Role",
      "transformations": [
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "end_point": {
                "aggregations": ["count"],
                "operation": "aggregate"
              },
              "role": {
                "aggregations": [],
                "operation": "groupby"
              }
            }
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {}
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {},
            "renameByName": {
              "end_point (count)": "Number of DNodes",
              "role": "Dnode Role"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 9,
        "y": 10
      },
      "id": 55,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["lastNotNull"],
          "fields": "",
          "values": true
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.10",
      "repeatDirection": "h",
      "targets": [
        {
          "alias": "dnodes",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show connections",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Number of Connections",
      "transformations": [
        {
          "id": "reduce",
          "options": {
            "includeTimeField": false,
            "mode": "reduceFields",
            "reducers": ["count"]
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": ["connId"]
            }
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 3,
        "x": 12,
        "y": 10
      },
      "id": 68,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["lastNotNull"],
          "fields": "",
          "values": true
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.10",
      "repeatDirection": "h",
      "targets": [
        {
          "alias": "dnodes",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show databases;",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Total Number of Tables",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": ["ntables"]
            }
          }
        },
        {
          "id": "reduce",
          "options": {
            "includeTimeField": false,
            "mode": "reduceFields",
            "reducers": ["sum"]
          }
        }
      ],
      "type": "stat"
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 13
      },
      "id": 24,
      "panels": [],
      "title": "Dnodes Status",
      "type": "row"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "center",
            "displayMode": "auto",
            "filterable": true
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "status"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 86
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "vnodes"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 77
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "role"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 84
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "cores"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 75
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "end_point"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 205
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "id"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 78
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 16,
        "x": 0,
        "y": 14
      },
      "id": 36,
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "formatType": "Table",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show dnodes",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "DNodes Status",
      "type": "table"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 8,
        "x": 16,
        "y": 14
      },
      "id": 40,
      "options": {
        "displayLabels": [],
        "legend": {
          "displayMode": "table",
          "placement": "right",
          "values": ["value"]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": ["lastNotNull"],
          "fields": "/.*/",
          "values": false
        },
        "text": {
          "titleSize": 6
        }
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "formatType": "Table",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show dnodes",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "title": "Offline Reasons",
      "transformations": [
        {
          "id": "filterByValue",
          "options": {
            "filters": [
              {
                "config": {
                  "id": "regex",
                  "options": {
                    "value": "ready"
                  }
                },
                "fieldName": "status"
              }
            ],
            "match": "all",
            "type": "exclude"
          }
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": ["offline reason", "end_point"]
            }
          }
        },
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "Time": {
                "aggregations": ["count"],
                "operation": "aggregate"
              },
              "end_point": {
                "aggregations": ["count"],
                "operation": "aggregate"
              },
              "offline reason": {
                "aggregations": [],
                "operation": "groupby"
              }
            }
          }
        }
      ],
      "type": "piechart"
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 19
      },
      "id": 22,
      "panels": [],
      "title": "Mnodes Status",
      "type": "row"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "center",
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 24,
        "x": 0,
        "y": 20
      },
      "id": 38,
      "options": {
        "showHeader": true
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "formatType": "Table",
          "queryType": "SQL",
          "refId": "A",
          "sql": "show mnodes;",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "title": "Mnodes Status",
      "type": "table"
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 25
      },
      "id": 20,
      "panels": [],
      "repeat": "fqdn",
      "title": "节点资源占用 [ $fqdn ]",
      "type": "row"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "decmbytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 0,
        "y": 26
      },
      "id": 66,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["mean"],
          "fields": "/^taosd$/",
          "values": false
        },
        "showThresholdLabels": true,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "alias": "memory",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select  last(mem_taosd) as taosd, last(mem_total) as total  from log.dn where fqdn = '$fqdn' and ts >= now -5m and ts < now",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Current Memory  Usage of taosd",
      "type": "gauge"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "description": "taosd  max  memery  last 10 minutes",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 0.5
              },
              {
                "color": "red",
                "value": 0.8
              }
            ]
          },
          "unit": "percentunit"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "last(cpu_taosd)"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "red",
                      "value": 80
                    }
                  ]
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 5,
        "y": 26
      },
      "id": 45,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["mean"],
          "fields": "/^last\\(cpu_taosd\\)$/",
          "values": false
        },
        "showThresholdLabels": true,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "alias": "mem_taosd",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select  last(cpu_taosd)  from log.dn where fqdn = '$fqdn'",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Current CPU  Usage of taosd",
      "type": "gauge"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "description": "avg band speed  last  one minute",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 8192,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 4916
              },
              {
                "color": "red",
                "value": 6554
              }
            ]
          },
          "unit": "Kbits"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 4,
        "x": 10,
        "y": 26
      },
      "id": 14,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["last"],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "alias": "band_speed",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select avg(band_speed)  from log.dn where fqdn='$fqdn' and  ts >= now-5m and ts < now interval(1m)",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "band speed",
      "type": "gauge"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "description": "io read/write rate",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 8192,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 4916
              },
              {
                "color": "red",
                "value": 6554
              }
            ]
          },
          "unit": "Kbits"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 14,
        "y": 26
      },
      "id": 48,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["last"],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "alias": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select last(io_read) as io_read, last(io_write) as io_write  from log.dn where fqdn='$fqdn' and ts >= now-1h and ts < now interval(1m)",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "IO Rate",
      "type": "gauge"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 1,
          "min": 0,
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 75
              },
              {
                "color": "red",
                "value": 80
              },
              {
                "color": "dark-red",
                "value": 95
              }
            ]
          },
          "unit": "percentunit"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 19,
        "y": 26
      },
      "id": 51,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["last"],
          "fields": "/^disk_used_percent$/",
          "values": false
        },
        "showThresholdLabels": true,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "alias": "disk_used",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select last(disk_used) as used  from log.dn where fqdn = '$fqdn' and ts >= $from and ts < $to interval(1m)",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        },
        {
          "alias": "disk_total",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "B",
          "sql": "select last(disk_total) as total  from log.dn where fqdn = '$fqdn' and ts >= $from and ts < $to interval(1m)",
          "target": "select metric",
          "type": "timeserie"
        },
        {
          "alias": "disk_used_percent",
          "expression": "A/B",
          "formatType": "Time series",
          "hide": false,
          "queryType": "Arithmetic",
          "refId": "C",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Disk Used",
      "transformations": [
        {
          "id": "reduce",
          "options": {
            "includeTimeField": false,
            "mode": "reduceFields",
            "reducers": ["lastNotNull"]
          }
        }
      ],
      "type": "gauge"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "description": "taosd  max  memery  last 10 minutes",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "decmbytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 0,
        "y": 32
      },
      "id": 12,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["mean"],
          "fields": "/^taosd$/",
          "values": false
        },
        "showThresholdLabels": true,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "alias": "memory",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select  max(mem_taosd) as taosd, max(mem_total) as total  from log.dn where fqdn = '$fqdn' and ts >= now -5m and ts < now",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Max Memory  Usage of taosd in Last 5 minute",
      "type": "gauge"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "description": "taosd  max  memery  last 10 minutes",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "mappings": [],
          "max": 1,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 0.5
              },
              {
                "color": "red",
                "value": 0.8
              }
            ]
          },
          "unit": "percentunit"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 5,
        "y": 32
      },
      "id": 43,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["mean"],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": true,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "alias": "mem_taosd",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select  max(cpu_taosd)  from log.dn where fqdn = '$fqdn' and ts >= now -5m and ts < now",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Max CPU  Usage of taosd in Last 5 minute",
      "type": "gauge"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "description": "avg band speed  last  one minute",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 8192,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 4916
              },
              {
                "color": "red",
                "value": 6554
              }
            ]
          },
          "unit": "Kbits"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 4,
        "x": 10,
        "y": 32
      },
      "id": 50,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["last"],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "alias": "band_speed",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select max(band_speed)  from log.dn where fqdn = '$fqdn' and ts >= now-1h",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Max band speed in last hour",
      "type": "gauge"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "description": "io read/write rate",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 8192,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 4916
              },
              {
                "color": "red",
                "value": 6554
              }
            ]
          },
          "unit": "Kbits"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 14,
        "y": 32
      },
      "id": 49,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["last"],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "alias": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select max(io_read) as io_read, max(io_write) as io_write  from log.dn where fqdn = '$fqdn'",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Max IO Rate in last hour",
      "type": "gauge"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "description": "io read/write rate",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 8192,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 4916
              },
              {
                "color": "red",
                "value": 6554
              }
            ]
          },
          "unit": "cpm"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 19,
        "y": 32
      },
      "id": 52,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": ["last"],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.10",
      "targets": [
        {
          "alias": "req-http",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select sum(req_http) as req_http  from log.dn where fqdn = '$fqdn' and ts >= now - 1h interval(1m)",
          "target": "select metric",
          "type": "timeserie"
        },
        {
          "alias": "req-inserts",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "B",
          "sql": "select sum(req_insert) as req_insert  from log.dn where fqdn = '$fqdn' and ts >= now - 1h interval(1m)",
          "target": "select metric",
          "type": "timeserie"
        },
        {
          "alias": "req-selects",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "C",
          "sql": "select sum(req_select) as req_select from log.dn where fqdn = '$fqdn' and ts >= now - 1h interval(1m)",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Requests in last Minute",
      "type": "gauge"
    },
    {
      "aliasColors": {},
      "bars": false,
      "cacheTimeout": null,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_TDENGINE}",
      "description": "monitor system cpu",
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 0,
        "y": 38
      },
      "hiddenSeries": false,
      "hideTimeOverride": true,
      "id": 2,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.10",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "cpu_system",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "A",
          "sql": "select  avg(cpu_system) from log.dn where fqdn='$fqdn' and ts >= now-1h and ts < now  interval(30s)",
          "target": "select metric",
          "type": "timeserie"
        },
        {
          "alias": "cpu_taosd",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "B",
          "sql": "select  avg(cpu_taosd) from log.dn where fqdn='$fqdn' and  ts >= now-1h and ts < now  interval(30s)",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "thresholds": [],
      "timeFrom": "1h",
      "timeRegions": [],
      "timeShift": "30s",
      "title": "CPU 资源占用情况",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": null,
          "format": "percent",
          "label": "使用占比",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "cacheTimeout": null,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_TDENGINE}",
      "description": "monitor system cpu",
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 12,
        "y": 38
      },
      "hiddenSeries": false,
      "hideTimeOverride": true,
      "id": 42,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.10",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "system",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "A",
          "sql": "select  avg(mem_system) from log.dn where fqdn = '$fqdn' and ts >= now-1h and ts < now  interval(30s)",
          "target": "select metric",
          "type": "timeserie"
        },
        {
          "alias": "taosd",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "B",
          "sql": "select  avg(mem_taosd) from log.dn where fqdn = '$fqdn' and ts >= now-1h and ts < now  interval(30s)",
          "target": "select metric",
          "type": "timeserie"
        },
        {
          "alias": "total",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "C",
          "sql": "select  avg(mem_total) from log.dn where fqdn = '$fqdn' and ts >= now-1h and ts < now  interval(30s)",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "thresholds": [],
      "timeFrom": "1h",
      "timeRegions": [],
      "timeShift": "30s",
      "title": "内存资源占用情况",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": null,
          "format": "decmbytes",
          "label": "使用占比",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 49
      },
      "hiddenSeries": false,
      "id": 54,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.10",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "percent",
          "yaxis": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "disk_used",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "A",
          "sql": "select avg(disk_used) from log.dn where fqdn = '$fqdn' and ts >= $from and ts < $to interval(30s)",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        },
        {
          "alias": "disk_total",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "B",
          "sql": "select avg(disk_total) from log.dn where fqdn = '$fqdn' and ts >= $from and ts < $to interval(30s)",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        },
        {
          "alias": "percent",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "D",
          "sql": "select avg(disk_used)/avg(disk_total) * 100 from log.dn where fqdn = '$fqdn' and ts >= $from and ts < $to interval(30s)",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Disk Used Percent",
      "tooltip": {
        "shared": false,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "gbytes",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "percent",
          "label": "Disk Used",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 49
      },
      "hiddenSeries": false,
      "id": 64,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.10",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "disk_used",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "A",
          "sql": "select derivative(value, 1m, 0) from (select avg(disk_used) as value from log.dn where fqdn = '$fqdn' and ts >= $from and ts < $to interval(1m))",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Disk Used Increasing Rate per Minute",
      "tooltip": {
        "shared": false,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "percentunit",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "percentunit",
          "label": "Disk Used",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "cacheTimeout": null,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_TDENGINE}",
      "description": "total  select  request  per minute last hour",
      "fieldConfig": {
        "defaults": {
          "unit": "cpm"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 58
      },
      "hiddenSeries": false,
      "id": 8,
      "interval": null,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "maxDataPoints": 100,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.10",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "req_select",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select sum(req_select) from log.dn where  fqdn = '$fqdn' and ts >= $from and ts < $to interval(1m)",
          "target": "select metric",
          "timeshift": {
            "period": null
          },
          "type": "timeserie"
        },
        {
          "alias": "req_insert",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "B",
          "sql": "select sum(req_insert) from log.dn where  fqdn = '$fqdn' and ts >= $from and ts < $to interval(1m)",
          "target": "select metric",
          "type": "timeserie"
        },
        {
          "alias": "req_http",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "C",
          "sql": "select sum(req_http) from log.dn where  fqdn = '$fqdn' and ts >= $from and ts < $to interval(1m)",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Requets Count per Minutes $fqdn",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "cpm",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "cacheTimeout": null,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_TDENGINE}",
      "description": "io",
      "fieldConfig": {
        "defaults": {
          "links": [],
          "unit": "Kbits"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 58
      },
      "hiddenSeries": false,
      "hideTimeOverride": true,
      "id": 47,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.10",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "io-read",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "A",
          "sql": "select  avg(io_read) from log.dn where fqdn = '$fqdn' and ts >= now-1h and ts < now  interval(1m)",
          "target": "select metric",
          "type": "timeserie"
        },
        {
          "alias": "io-write",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "B",
          "sql": "select  avg(io_write) from log.dn where fqdn = '$fqdn' and ts >= now-1h and ts < now  interval(1m)",
          "target": "select metric",
          "type": "timeserie"
        },
        {
          "alias": "io-read-last-hour",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "C",
          "sql": "select  avg(io_read) from log.dn where fqdn = '$fqdn' and ts >= now-2h and ts < now - 1h interval(1m)",
          "target": "select metric",
          "timeshift": {
            "period": 1,
            "unit": "hours"
          },
          "type": "timeserie"
        },
        {
          "alias": "io-write-last-hour",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "D",
          "sql": "select  avg(io_write) from log.dn where fqdn = '$fqdn' and ts >= now-1h and ts < now  interval(1m)",
          "target": "select metric",
          "timeshift": {
            "period": 1,
            "unit": "hours"
          },
          "type": "timeserie"
        }
      ],
      "thresholds": [],
      "timeFrom": "1h",
      "timeRegions": [],
      "timeShift": "30s",
      "title": "IO",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": null,
          "format": "Kbits",
          "label": "IO Rate",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 67
      },
      "id": 63,
      "panels": [],
      "title": "Login History",
      "type": "row"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "displayName": "Logins Per Minute",
          "unit": "cpm"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 68
      },
      "hiddenSeries": false,
      "id": 61,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.10",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "logins",
          "nullPointMode": "null as zero"
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "logins",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select count(*) from log.log where ts >= $from and ts < $to interval (1m)",
          "target": "select metric",
          "type": "timeserie"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Login Counts per Minute",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "cpm",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": "1m",
  "schemaVersion": 27,
  "style": "dark",
  "tags": ["TDengine", "multiple"],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "TDengine",
          "value": "TDengine"
        },
        "description": "TDengine Data Source Selector",
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Datasource",
        "multi": false,
        "name": "ds",
        "options": [],
        "query": "tdengine-datasource",
        "queryValue": "",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_TDENGINE}",
        "definition": "select fqdn from log.dn",
        "description": "TDengine Nodes FQDN (Hostname)",
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "fqdn",
        "options": [],
        "query": "select fqdn from log.dn",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-1h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"]
  },
  "timezone": "",
  "title": "Multiple TDengines Monitoring",
  "uid": "tdengine-multiple",
  "version": 4
}
