Grafana dashboard: TDinsight for 3.x
Description: Monitor TDengine

# TDinsight - A Monitoring Solution For [TDengine] with [Grafana]

TDinsight v3.x is a solution for monitoring TDengine using the builtin native monitoring database and Grafana.

TDengine writes monitoring data into a special database through [taosKeeper](https://github.com/taosdata/taoskeeper).
The metrics may include the server's CPU, memory, hard disk space, network bandwidth, number of requests, disk
read/write speed, slow queries, other information like important system operations (user login, database creation,
database deletion, etc.), and error alarms. With [Grafana](https://grafana.com/)
and [TDengine Data Source Plugin](https://github.com/taosdata/grafanaplugin/releases), TDinsight can visualize cluster
status, node information, insertion and query requests, resource usage, vnode, dnode, and mnode status, exception alerts
and many other metrics. This is very convenient for developers who want to monitor TDengine cluster status in real-time.

This article will guide users to install the Grafana server and TDengine Data Source Plugin, and deploy the TDinsight
v3.x.

## Requirements

- a single-node TDengine server or a multi-node TDengine cluster and a Grafana server are required. This dashboard
  requires TDengine 3.0.1.0 and above, with the monitoring feature enabled. For detailed configuration, please refer to
  [TDengine monitoring configuration](https://docs.tdengine.com/reference/config/#monitoring-parameters).
- taosAdapter has been instaleld and running, please refer
  to [taosAdapter](https://docs.tdengine.com/reference/taosadapter/).
- taosKeeper has been installed and running, please refer
  to [taosKeeper](https://docs.tdengine.com/reference/taosKeeper/).

## Install Grafana

We recommend using the latest [Grafana](https://grafana.com/) version 8 or 9. You can install Grafana on any
supported operating system by following
the [official Grafana documentation Instructions](https://grafana.com/docs/grafana/latest/installation/) to install
Grafana.

### Installing Grafana on Debian or Ubuntu

For Debian or Ubuntu operating systems, we recommend the Grafana image repository and using the following command to
install from scratch.

```bash
sudo apt-get install -y apt-transport-https
sudo apt-get install -y software-properties-common wget
wget -q -O - https://packages.grafana.com/gpg.key |\
  sudo apt-key add -
echo "deb https://packages.grafana.com/oss/deb stable main" |\
  sudo tee -a /etc/apt/sources.list.d/grafana.list
sudo apt-get update
sudo apt-get install grafana
```

### Install Grafana on CentOS / RHEL

You can install it from its official YUM repository.

```bash
sudo tee /etc/yum.repos.d/grafana.repo << EOF
[grafana]
name=grafana
baseurl=https://packages.grafana.com/oss/rpm
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
EOF
sudo yum install grafana
```

Or install it with RPM package.

```bash
wget https://dl.grafana.com/oss/release/grafana-7.5.11-1.x86_64.rpm
sudo yum install grafana-7.5.11-1.x86_64.rpm
# or
sudo yum install \
  https://dl.grafana.com/oss/release/grafana-7.5.11-1.x86_64.rpm
```

## set up TDinsight v3.x

### Install the TDengine data source plugin

#### Install the latest version of the TDengine Data Source plugin from GitHub

```bash
get_latest_release() {
  curl --silent "https://api.github.com/repos/taosdata/grafanaplugin/releases/latest" |
    grep '"tag_name":' |
    sed -E 's/.*"v([^"]+)".*/\1/'
}
TDENGINE_PLUGIN_VERSION=$(get_latest_release)
sudo grafana-cli \
  --pluginUrl https://github.com/taosdata/grafanaplugin/releases/download/v$TDENGINE_PLUGIN_VERSION/tdengine-datasource-$TDENGINE_PLUGIN_VERSION.zip \
  plugins install tdengine-datasource
```

**NOTE**: The 3.1.6 and earlier version plugins require the following setting in the configuration
file `/etc/grafana/grafana.ini` to enable unsigned plugins.

```ini
[plugins]
allow_loading_unsigned_plugins = tdengine-datasource
```

#### Install TDengine Data Source plugin from Grafana Plugins page

Point to the **Configurations** -> **Plugins**(or "/plugins" url), and search "TDengine".

![install datasource plugin](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/howto-add-plugin.png)

Click "TDengine Datasource", and click "install".

![install datasource plugin](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/howto-add-plugin-install.png)

### Start the Grafana service

```bash
sudo systemctl start grafana-server
sudo systemctl enable grafana-server
```

### Logging into Grafana

Open the default Grafana URL in a web browser: `http://localhost:3000`. The default username/password is `admin`.
Grafana will require a password change after the first login.

### Adding a TDengine Data Source

Point to the **Configurations** -> **Data Sources** menu, and click the **Add data source** button.

![add datasource](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/howto-add-datasource-button.png)

Search for and select **TDengine**.

![add datasource](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/howto-add-datasource-tdengine.png)

Configure the TDengine datasource.

![datasource config](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/howto-add-datasource.png)

Save and test. It will report 'TDengine Data source is working' in normal circumstances.

![datasource testing](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/howto-add-datasource-test.png)

### Importing dashboard

#### Importing dashboard from datasource confining page.

Click **Dashboard** tab in TDengine datasource confining page.

![import dashboard and config](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/import_dashboard-on-datasource.png)

Click the "import" button of "TDinsight for 3.x", and import the dashboard.

### Import dashboard from importing page

Point to **+** / **Create** - **import** (or `/dashboard/import` url).

![import dashboard and config](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/import_dashboard.png)

Input dashboard id `18180` in **Import via grafana.com** and click **Load**.

![import by grafana.com](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/import-dashboard-18180.png)

After importing, TDinsight v3.x dashboard as follows.

![dashboard](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/TDinsight-v3-full.png)

## TDinsight v3.x Dashboard details

The TDinsight dashboard is designed to provide the usage and status of TDengine-related resources,
e.g. [dnodes, mnodes, vnodes](https://www.taosdata.com/cn/documentation/architecture#cluster) and databases.

The details of the metrics are as follows.

### Cluster Status

![tdinsight-mnodes-overview](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/TDinsightV3-1-cluster-status.png)

This section contains the current information and status of the cluster (from left to right, top to bottom).

- **First EP**: the firstEp setting in the current TDengine cluster.
- **Version**: TDengine server version (leader mnode).
- **Master Uptime**: The time elapsed since the current Leader MNode was elected as Leader.
- **Expire Time**: Enterprise version expiration time.
- **Used Measuring Points**: The number of measuring points used by the Enterprise Edition.
- **Databases**: The number of databases.
- **Tables**: The number of table.
- **Connections**: The number of current connections.
- **DNodes/MNodes/VGroups/VNodes**: Total number of each resource and the number of survivors.
- **DNodes/MNodes/VGroups/VNodes Alive Percent**: The ratio of the number of alive/total for each resource.
- **Measuring Points Used**: The number of measuring points(no data available in the community version, healthy by
  default).
- **Grants Expire Time**: the expiration time of the enterprise version (no data available for the community version,
  healthy by default).
- **Error Rate**: Aggregate error rate (average number of errors per second) for alert-enabled clusters.

### DNodes Status

![tdinsight-mnodes-overview](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/TDinsightV3-2-dnodes.png)

- **DNodes Status**: simple table view of `show dnodes`.
- **DNodes Lifetime**: the time elapsed since the dnode was created.
- **DNodes Number**: the trends in the number of DNodes.

### MNode Overview

![tdinsight-mnodes-overview](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/TDinsightV3-3-mnodes.png)

1. **MNodes Status**: a simple table view of `show mnodes`.
2. **MNodes Number**: similar to `DNodes Number`, the trends in the number of MNodes.

### Request

![tdinsight-requests](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/TDinsightV3-4-requests.png)

1. **Requests Rate(Inserts per Second)**: average number of inserts per second.
2. **Requests (Selects)**: number of query requests and rate of change (count of second).

### Database

![tdinsight-database](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/TDinsightV3-5-database.png)

Database usage, repeated for each value of the variable `$database`, one rows per database.

1. **STables**: number of super tables.
2. **Total Tables**: number of all tables.
3. **Tables**: number of normal tables.
4. **Tables Number Foreach VGroups**: number of tables per vgroup.

### DNode Resource Usage

![dnode-usage](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/TDinsightV3-6-dnode-usage.png)

数据节点资源使用情况展示, 对变量 `$fqdn` 即每个数据节点进行重复多行展示.包括:

Data node resource usage display with repeated multiple rows for the variable `$fqdn`, one rows per dnode.

1. **Uptime**: the time elapsed since the dnode was created.
2. **Has MNodes?**: whether the current dnode is a mnode.
3. **CPU Cores**: the number of CPU cores.
4. **VNodes Number**: the number of VNodes in the current dnode.
5. **VNodes Masters**: the number of vnodes in the leader role.
6. **Current CPU Usage of taosd**: CPU usage rate of taosd processes.
7. **Current Memory Usage of taosd**: memory usage of taosd processes.
8. **Disk Used**: The total disk usage percentage of the taosd data directory.
9. **CPU Usage**: Process and system CPU usage.
10. **RAM Usage**: Time series view of RAM usage metrics.
11. **Disk Used**: Disks used at each level of multi-level storage (default is level0).
12. **Disk IO**: Disk IO rate.
13. **Net IO**: Network IO, the aggregate network IO rate in addition to the local network.

### Login History

![login history](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/TDinsightV3-7-login-history.png)

Currently, only the number of logins per minute is reported.

### taosAdapter

![taosadapter](https://raw.githubusercontent.com/taosdata/grafanaplugin/master/assets/TDinsightV3-8-taosadaper.png)

Support monitoring taosAdapter request statistics and status details.

1. **http_request**: number of total requests.
2. **Http Request Fail**: number of failed requests.
3. **CPU Used**: usage of taosAdapter.
4. **Memory Used**: Memory usage of taosAdapter.
5. **Http Request Inflight**: number of real-time requests of each endpoint.
6. **Http Status Code**: taosAdapter http status code.

## Upgrade

You can update TDengine Grafana datasource plugin and TDinsight for 3.x by re-installation.

## Uninstall

To completely uninstall TDinsight during a manual installation, you need to clean up the following.

1. the TDinsight v3.x Dashboard in Grafana.
2. the Data Source in Grafana.
3. the `tdengine-datasource` plugin in Grafana.

[Grafana]: https://grafana.com

[TDengine]: https://www.taosdata.com


{
  "__inputs": [
    {
      "name": "DS_TDENGINE",
      "label": "TDengine",
      "description": "",
      "type": "datasource",
      "pluginId": "tdengine-datasource",
      "pluginName": "TDengine"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "bargauge",
      "name": "Bar gauge",
      "version": ""
    },
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.5.0"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "tdengine-datasource",
      "name": "TDengine Datasource",
      "version": "3.3.2"
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "Monitor TDengine",
  "editable": true,
  "gnetId": 18180,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1683700137030,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "datasource": "${DS_TDENGINE}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "panels": [],
      "title": "Cluster Status",
      "type": "row"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 24,
        "x": 0,
        "y": 1
      },
      "id": 4,
      "options": {
        "content": "<h1><center>TDengine Cluster Dashboard (First EP: ${firstEp}, Version: ${version})</center></h1>",
        "mode": "markdown"
      },
      "pluginVersion": "7.5.0",
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "-- OVERVIEW --",
      "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": 4,
        "w": 2,
        "x": 0,
        "y": 4
      },
      "id": 6,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "first_ep",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.0",
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select last(first_ep) as first_ep from $database.cluster_info"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "First EP",
      "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": 4,
        "w": 3,
        "x": 2,
        "y": 4
      },
      "id": 8,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "version",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.0",
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select last(version) as version from $database.cluster_info"
        }
      ],
      "title": "Version",
      "type": "stat"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "d"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 5,
        "y": 4
      },
      "id": 10,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.0",
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select last(master_uptime) from $database.cluster_info"
        }
      ],
      "title": "Master Uptime",
      "type": "stat"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 8,
        "y": 4
      },
      "id": 12,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.0",
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select last(expire_time) from $database.grants_info"
        }
      ],
      "title": "Expire Time",
      "type": "stat"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 4,
        "x": 11,
        "y": 4
      },
      "id": 14,
      "options": {
        "displayMode": "gradient",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showUnfilled": true,
        "text": {}
      },
      "pluginVersion": "7.5.0",
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select max(timeseries_used) as used ,max(timeseries_total) as total from $database.grants_info where ts >= $from and ts <= $to interval(30s)"
        }
      ],
      "title": "Used Measuring Points",
      "type": "bargauge"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 15,
        "y": 4
      },
      "id": 16,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.0",
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select last(dbs_total) from $database.cluster_info"
        }
      ],
      "title": "Databases",
      "type": "stat"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 18,
        "y": 4
      },
      "id": 18,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": true
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.0",
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select last(tbs_total) from $database.cluster_info"
        }
      ],
      "title": "Tables",
      "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": 4,
        "w": 3,
        "x": 21,
        "y": 4
      },
      "id": 20,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.0",
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select connections_total from $database.cluster_info where ts >= $from and ts <= $to"
        }
      ],
      "title": "Connections",
      "type": "stat"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 6,
        "x": 0,
        "y": 8
      },
      "id": 22,
      "options": {
        "displayMode": "basic",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showUnfilled": true,
        "text": {}
      },
      "pluginVersion": "7.5.0",
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select dnodes_total as total, dnodes_alive as dnodes_alive from $database.cluster_info where ts >= $from and ts <= $to"
        }
      ],
      "title": "DNodes",
      "type": "bargauge"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 6,
        "x": 6,
        "y": 8
      },
      "id": 24,
      "options": {
        "displayMode": "basic",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showUnfilled": true,
        "text": {}
      },
      "pluginVersion": "7.5.0",
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select mnodes_total as total, mnodes_alive as mnodes_alive from $database.cluster_info where ts >= $from and ts <= $to"
        }
      ],
      "title": "MNodes",
      "type": "bargauge"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 6,
        "x": 12,
        "y": 8
      },
      "id": 26,
      "options": {
        "displayMode": "basic",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showUnfilled": true,
        "text": {}
      },
      "pluginVersion": "7.5.0",
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select vgroups_total as total, vgroups_alive as vgroups_alive from $database.cluster_info where ts >= $from and ts <= $to"
        }
      ],
      "title": "VGroups",
      "type": "bargauge"
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 6,
        "x": 18,
        "y": 8
      },
      "id": 28,
      "options": {
        "displayMode": "basic",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showUnfilled": true,
        "text": {}
      },
      "pluginVersion": "7.5.0",
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select vnodes_total as total, vnodes_alive as vnodes_alive from $database.cluster_info where ts >= $from and ts <= $to"
        }
      ],
      "title": "VNodes",
      "type": "bargauge"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 0,
        "y": 12
      },
      "hiddenSeries": false,
      "id": 30,
      "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.0",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select _wstart as ts, avg(dnodes_alive)/avg(dnodes_total) from $database.cluster_info where ts >= $from and ts <= $to interval(30s) fill(null)"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "DNodes Alive Percent",
      "tooltip": {
        "shared": true,
        "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": "1",
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "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": 6,
        "w": 6,
        "x": 6,
        "y": 12
      },
      "hiddenSeries": false,
      "id": 32,
      "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.0",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select _wstart as ts, avg(mnodes_alive)/avg(mnodes_total) from $database.cluster_info where ts >= $from and ts <= $to interval(30s) fill(null)"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "MNodes Alive Percent",
      "tooltip": {
        "shared": true,
        "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": "1",
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "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": 6,
        "w": 6,
        "x": 12,
        "y": 12
      },
      "hiddenSeries": false,
      "id": 34,
      "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.0",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select _wstart as ts, avg(vgroups_alive)/avg(vgroups_total) from $database.cluster_info where ts >= $from and ts <= $to interval(30s) fill(null)"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "VGroups Alive Percent",
      "tooltip": {
        "shared": true,
        "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": "1",
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "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": 6,
        "w": 6,
        "x": 18,
        "y": 12
      },
      "hiddenSeries": false,
      "id": 36,
      "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.0",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select _wstart as ts, avg(vnodes_alive)/avg(vnodes_total) from $database.cluster_info where ts >= $from and ts <= $to interval(30s) fill(null)"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "VNodes Alive Percent",
      "tooltip": {
        "shared": true,
        "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": "1",
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "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": 6,
        "w": 6,
        "x": 0,
        "y": 18
      },
      "hiddenSeries": false,
      "id": 38,
      "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.0",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "percent",
          "yaxis": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "A",
          "sql": "select _wstart as ts, avg(timeseries_used)/avg(timeseries_total) as percent from $database.grants_info where ts >= $from and ts <= $to interval(30s) fill(null)"
        },
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "hide": false,
          "queryType": "SQL",
          "refId": "B",
          "sql": "select _wstart as ts, avg(timeseries_used) as used , avg(timeseries_total) as total from $database.grants_info where ts >= $from and ts <= $to interval(30s) fill(null)"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Measuring Points Used",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "none",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "percentunit",
          "label": null,
          "logBase": 1,
          "max": "1",
          "min": "0",
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "graph": false,
              "legend": false,
              "tooltip": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": true
          },
          "mappings": [],
          "min": 86400,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 6,
        "y": 18
      },
      "id": 40,
      "options": {
        "graph": {},
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltipOptions": {
          "mode": "single"
        }
      },
      "pluginVersion": "7.5.0",
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select _wstart as ts, last(expire_time) as expire_time from $database.grants_info where ts >= $from and ts <= $to interval(30s) fill(null)"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Grants Expire Time",
      "type": "timeseries"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_TDENGINE}",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 12,
        "y": 18
      },
      "hiddenSeries": false,
      "id": 42,
      "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.0",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "colNameFormatStr": "",
          "colNameToGroup": "",
          "formatType": "Time series",
          "queryType": "SQL",
          "refId": "A",
          "sql": "select ts, derivative(errors, 1s, 1) as errors from (select _wstart as ts, sum(errors) as errors from $database.dnodes_info where ts >= $from and ts <= $to interval(1s))"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Error Rate",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "cps",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "percentunit",
          "label": null,
          "logBase": 1,
          "max": "1",
          "min": "0",
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "collapsed": true,
      "datasource": "${DS_TDENGINE}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 24
      },
      "id": 44,
      "panels": [
        {
          "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": 6,
            "w": 6,
            "x": 0,
            "y": 25
          },
          "id": 46,
          "options": {
            "showHeader": true
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select endpoint, status from information_schema.ins_dnodes"
            }
          ],
          "title": "DNodes Status",
          "type": "table"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "d"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 5,
            "x": 6,
            "y": 25
          },
          "id": 48,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "value_and_name"
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "dnode_ep",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select last(uptime) from $database.dnodes_info where ts >= $from and ts <= $to group by dnode_ep"
            }
          ],
          "title": "DNodes Lifetime",
          "type": "stat"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "graph": false,
                  "legend": false,
                  "tooltip": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 7,
            "x": 11,
            "y": 25
          },
          "id": 50,
          "options": {
            "graph": {},
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltipOptions": {
              "mode": "single"
            }
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select _wstart as ts, avg(dnodes_total) as total, avg(dnodes_alive) as dnodes_alive from $database.cluster_info where ts >= $from and ts <= $to interval($interval) fill(null)"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "DNodes Number",
          "type": "timeseries"
        }
      ],
      "title": "DNodes Overview",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": "${DS_TDENGINE}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 25
      },
      "id": 52,
      "panels": [
        {
          "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": 8,
            "w": 12,
            "x": 0,
            "y": 32
          },
          "id": 54,
          "options": {
            "showHeader": true
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Table",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select mnode_ep, last(role) as role from $database.m_info partition by mnode_ep, cluster_id"
            }
          ],
          "title": "MNodes Status",
          "type": "table"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "graph": false,
                  "legend": false,
                  "tooltip": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 12,
            "y": 32
          },
          "id": 56,
          "options": {
            "graph": {},
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltipOptions": {
              "mode": "single"
            }
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select _wstart as ts, avg(mnodes_total) as total, avg(mnodes_alive) as mnodes_alive from $database.cluster_info where ts >= $from and ts <= $to interval($interval) fill(null)"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "MNodes Number",
          "type": "timeseries"
        }
      ],
      "title": "MNodes Overview",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": "${DS_TDENGINE}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 26
      },
      "id": 58,
      "panels": [
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "graph": false,
                  "legend": false,
                  "tooltip": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "cps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 24,
            "x": 0,
            "y": 27
          },
          "id": 60,
          "options": {
            "graph": {},
            "legend": {
              "calcs": [
                "mean",
                "lastNotNull",
                "max",
                "min",
                "sum"
              ],
              "displayMode": "table",
              "placement": "right"
            },
            "tooltipOptions": {
              "mode": "single"
            }
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "dnode_ep",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select _wstart as ts, avg(req_insert_rate) as insert_rate, avg(req_insert_batch_rate) as batch_rate from $database.dnodes_info where ts >= $from and ts <= $to partition by dnode_ep interval($interval) fill(null)"
            },
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "hide": false,
              "queryType": "SQL",
              "refId": "B",
              "sql": "select _wstart as ts, avg(insert_rate) as cluster_insert_rate, avg(batch_rate) as cluster_batch_rate from (select _wstart as ts, sum(req_insert_rate) as insert_rate, sum(req_insert_batch_rate) as batch_rate from $database.dnodes_info where ts >= $from and ts <= $to interval(1s)) where ts >= $from and ts <= $to interval($interval) fill(null)"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Requests Rate (Inserts per Second)",
          "type": "timeseries"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "graph": false,
                  "legend": false,
                  "tooltip": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 24,
            "x": 0,
            "y": 36
          },
          "id": 62,
          "options": {
            "graph": {},
            "legend": {
              "calcs": [
                "mean",
                "lastNotNull",
                "max",
                "min",
                "sum"
              ],
              "displayMode": "table",
              "placement": "right"
            },
            "tooltipOptions": {
              "mode": "single"
            }
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "dnode_ep",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select _wstart as ts, sum(req_select) as req_select from $database.dnodes_info where ts >= $from and ts <= $to partition by dnode_ep interval($interval) fill(null)"
            },
            {
              "colNameFormatStr": "",
              "colNameToGroup": "dnode_ep",
              "formatType": "Time series",
              "hide": false,
              "queryType": "SQL",
              "refId": "B",
              "sql": "select _wstart as ts, sum(req_select) as total from $database.dnodes_info where ts >= $from and ts <= $to interval($interval) fill(null)"
            },
            {
              "colNameFormatStr": "",
              "colNameToGroup": "dnode_ep",
              "formatType": "Time series",
              "hide": false,
              "queryType": "SQL",
              "refId": "C",
              "sql": "select _wstart as ts, avg(req_select_rate) as dnode_req_select_rate from $database.dnodes_info where ts >= $from and ts <= $to partition by dnode_ep interval($interval) fill(null)"
            },
            {
              "colNameFormatStr": "",
              "colNameToGroup": "dnode_ep",
              "formatType": "Time series",
              "hide": false,
              "queryType": "SQL",
              "refId": "D",
              "sql": "select _wstart as ts, avg(req_select_rate) as req_select_rate from (select _wstart as ts, sum(req_select_rate) as req_select_rate from $database.dnodes_info where ts >= $from and ts <= $to interval(1s)) where ts >= $from and ts <= $to interval($interval) fill(null)"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Requests (Selects)",
          "type": "timeseries"
        }
      ],
      "title": "Requests",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": "${DS_TDENGINE}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 27
      },
      "id": 64,
      "panels": [
        {
          "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": 0,
            "y": 60
          },
          "id": 66,
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": true
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "alias": "dnodes",
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select last(stbs_total) from $database.cluster_info"
            }
          ],
          "title": "STables",
          "type": "stat"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "graph": false,
                  "legend": false,
                  "tooltip": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true
              },
              "mappings": [],
              "min": 100,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 9,
            "x": 3,
            "y": 60
          },
          "id": 70,
          "options": {
            "graph": {},
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltipOptions": {
              "mode": "single"
            }
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select _wstart as ts, last(tbs_total) as tables_num from $database.cluster_info where ts > $from and ts <= $to interval($interval) fill(null)"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Tables",
          "type": "timeseries"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "graph": false,
                  "legend": false,
                  "tooltip": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 12,
            "x": 12,
            "y": 60
          },
          "id": 72,
          "options": {
            "graph": {},
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltipOptions": {
              "mode": "single"
            }
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "vgroup_{{vgroup_id}}",
              "colNameToGroup": "vgroup_id",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select _wstart as ts, vgroup_id, max(tables_num) as tables_num from $database.vgroups_info where ts > $from and ts <= $to partition by vgroup_id interval($interval) fill(null)"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Tables Number Foreach VGroups",
          "type": "timeseries"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 3,
            "x": 0,
            "y": 63
          },
          "id": 68,
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": true
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "alias": "dnodes",
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select last(tbs_total) as tbs_total from $database.cluster_info"
            }
          ],
          "title": "Total Tables",
          "type": "stat"
        }
      ],
      "title": "Tables Summary",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": "${DS_TDENGINE}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 28
      },
      "id": 76,
      "panels": [
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "noValue": "Down",
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "d"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 5,
            "w": 3,
            "x": 0,
            "y": 29
          },
          "id": 92,
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select last(uptime) as uptime from $database.dnodes_info where dnode_ep = '$fqdn'"
            }
          ],
          "title": "Uptime",
          "type": "stat"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "from": "",
                  "id": 1,
                  "text": "Yes",
                  "to": "",
                  "type": 1,
                  "value": "1"
                },
                {
                  "from": "",
                  "id": 2,
                  "text": "No",
                  "to": "",
                  "type": 1,
                  "value": "0"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 5,
            "w": 3,
            "x": 3,
            "y": 29
          },
          "id": 94,
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select last(has_mnode) as has_mnode from $database.dnodes_info where dnode_ep = '$fqdn' and ts >= $from and ts <= $to"
            }
          ],
          "title": "Has MNode?",
          "type": "stat"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "noValue": "Down",
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 5,
            "w": 2,
            "x": 6,
            "y": 29
          },
          "id": 96,
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select last(cpu_cores) as cpu_cores from $database.dnodes_info where dnode_ep = '$fqdn' interval ($interval)"
            }
          ],
          "title": "CPU Cores",
          "type": "stat"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 5,
            "w": 2,
            "x": 8,
            "y": 29
          },
          "id": 98,
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select last(vnodes_num) as vnodes_num from $database.dnodes_info where dnode_ep = '$fqdn' and ts >= $from and ts <= $to interval($interval) fill(null)"
            }
          ],
          "title": "VNodes Number",
          "type": "stat"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 5,
            "w": 2,
            "x": 10,
            "y": 29
          },
          "id": 100,
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select last(masters) as masters from $database.dnodes_info where dnode_ep = '$fqdn' and ts >= $from and ts <= $to interval($interval) fill(null)"
            }
          ],
          "title": "VNodes Masters",
          "type": "stat"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "max": 100,
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "#EAB839",
                    "value": 60
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "percent"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 5,
            "w": 4,
            "x": 12,
            "y": 29
          },
          "id": 102,
          "options": {
            "reduceOptions": {
              "calcs": [
                "mean"
              ],
              "fields": "",
              "values": false
            },
            "showThresholdLabels": false,
            "showThresholdMarkers": true,
            "text": {}
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "alias": "cpu_taosd",
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Table",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select last(cpu_engine) from $database.dnodes_info where dnode_ep = '$fqdn' and ts >= $from and ts <= $to"
            }
          ],
          "title": "Current CPU Usage of taosd",
          "type": "gauge"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "deckbytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 5,
            "w": 4,
            "x": 16,
            "y": 29
          },
          "id": 104,
          "options": {
            "reduceOptions": {
              "calcs": [
                "mean"
              ],
              "fields": "/^taosd$/",
              "values": false
            },
            "showThresholdLabels": false,
            "showThresholdMarkers": true,
            "text": {}
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "alias": "mem_taosd",
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select last(mem_engine) as taosd, last(mem_total) as total from $database.dnodes_info where dnode_ep = '$fqdn' and ts >= $from and ts <= $to"
            }
          ],
          "title": "Current Memory Usage of taosd",
          "type": "gauge"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "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": 5,
            "w": 4,
            "x": 20,
            "y": 29
          },
          "id": 106,
          "options": {
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "/^percent$/",
              "values": false
            },
            "showThresholdLabels": false,
            "showThresholdMarkers": true,
            "text": {}
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "alias": "disk_taosd",
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select last(disk_used) as used, last(disk_total) as total, last(disk_used) / last(disk_total) as percent from $database.dnodes_info where dnode_ep = '$fqdn' and ts >= $from and ts <= $to"
            }
          ],
          "title": "Disk Used",
          "type": "gauge"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "graph": false,
                  "legend": false,
                  "tooltip": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "percent"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 0,
            "y": 34
          },
          "id": 108,
          "options": {
            "graph": {},
            "legend": {
              "calcs": [
                "mean",
                "lastNotNull",
                "max",
                "min",
                "sum"
              ],
              "displayMode": "table",
              "placement": "right"
            },
            "tooltipOptions": {
              "mode": "single"
            }
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select _wstart as ts, last(cpu_engine) as taosd, last(cpu_system) as system from $database.dnodes_info where dnode_ep='$fqdn' and ts >= $from and ts <= $to interval($interval) fill(null)"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "CPU Usage",
          "type": "timeseries"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "graph": false,
                  "legend": false,
                  "tooltip": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "deckbytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 12,
            "y": 34
          },
          "id": 110,
          "options": {
            "graph": {},
            "legend": {
              "calcs": [
                "mean",
                "lastNotNull",
                "max",
                "min",
                "sum"
              ],
              "displayMode": "table",
              "placement": "right"
            },
            "tooltipOptions": {
              "mode": "single"
            }
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select _wstart as ts, last(mem_engine) as taosd, last(mem_system) as system, last(mem_total) as total from $database.dnodes_info where dnode_ep='$fqdn' and ts >= $from and ts <= $to interval($interval) fill(null)"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "RAM Usage",
          "type": "timeseries"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "graph": false,
                  "legend": false,
                  "tooltip": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "bytes"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 0,
            "y": 43
          },
          "id": 112,
          "options": {
            "graph": {},
            "legend": {
              "calcs": [
                "mean",
                "lastNotNull",
                "max",
                "min",
                "sum"
              ],
              "displayMode": "table",
              "placement": "right"
            },
            "tooltipOptions": {
              "mode": "single"
            }
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select _wstart as ts, last(used) as level0_used, last(total) as level0_total from $database.data_dir where level = 0 and dnode_ep = '$fqdn' and ts >= $from and ts <= $to interval($interval) fill(null)"
            },
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "hide": false,
              "queryType": "SQL",
              "refId": "B",
              "sql": "select _wstart as ts, avg(used) as level1_used, avg(total) as level1_total from $database.data_dir where level = 1 and dnode_ep = '$fqdn' and ts >= $from and ts <= $to interval($interval) fill(null)"
            },
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "hide": false,
              "queryType": "SQL",
              "refId": "C",
              "sql": "select _wstart as ts, avg(used) as level2_used, avg(total) as level2_total from $database.data_dir where level = 2 and dnode_ep = '$fqdn' and ts >= $from and ts <= $to interval($interval) fill(null)"
            },
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "hide": false,
              "queryType": "SQL",
              "refId": "D",
              "sql": "select avg(used)/avg(total) as level0_percent from $database.data_dir where level = 0 and dnode_ep = '$fqdn' and ts >= $from and ts <= $to interval($interval) fill(null)"
            },
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "hide": false,
              "queryType": "SQL",
              "refId": "E",
              "sql": "select avg(used)/avg(total) as level1_percent from $database.data_dir where level = 1 and dnode_ep = '$fqdn' and ts >= $from and ts <= $to interval($interval) fill(null)"
            },
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "hide": false,
              "queryType": "SQL",
              "refId": "F",
              "sql": "select avg(used)/avg(total) as level2_percent from $database.data_dir where level = 2 and dnode_ep = '$fqdn' and ts >= $from and ts <= $to interval($interval) fill(null)"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Disk Used",
          "type": "timeseries"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "graph": false,
                  "legend": false,
                  "tooltip": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "KBs"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 12,
            "y": 43
          },
          "id": 114,
          "options": {
            "graph": {},
            "legend": {
              "calcs": [
                "mean",
                "lastNotNull",
                "max",
                "min",
                "sum"
              ],
              "displayMode": "table",
              "placement": "right"
            },
            "tooltipOptions": {
              "mode": "single"
            }
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select _wstart as ts, last(io_read_disk) as io_read_taosd, last(io_write_disk) as io_write_taosd from $database.dnodes_info where dnode_ep = '$fqdn' and ts >= $from and ts <= $to interval($interval) fill(null)"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Disk IO",
          "type": "timeseries"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "axisSoftMin": -1,
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "graph": false,
                  "legend": false,
                  "tooltip": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "KBs"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 8,
            "w": 12,
            "x": 0,
            "y": 51
          },
          "id": 116,
          "options": {
            "graph": {},
            "legend": {
              "calcs": [
                "mean",
                "lastNotNull",
                "max",
                "min",
                "sum"
              ],
              "displayMode": "table",
              "placement": "right"
            },
            "tooltipOptions": {
              "mode": "single"
            }
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select _wstart as ts, 0 - avg(net_in) as net_in, avg(net_out) as net_out from $database.dnodes_info where dnode_ep = '$fqdn' and ts >= $from and ts <= $to interval($interval) fill(null)"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Net",
          "type": "timeseries"
        }
      ],
      "repeat": "fqdn",
      "title": "DNode Usage [ $fqdn ]",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": "${DS_TDENGINE}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 29
      },
      "id": 74,
      "panels": [
        {
          "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": 24,
            "x": 0,
            "y": 7
          },
          "hiddenSeries": false,
          "id": 80,
          "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.0",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "alias": "logins",
              "nullPointMode": "null as zero"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "logins",
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select _wstart as ts, count(*) from $database.logs where ts >= $from and ts <= $to interval (1m)"
            }
          ],
          "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
          }
        }
      ],
      "title": "Login History",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": "${DS_TDENGINE}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 30
      },
      "id": 78,
      "panels": [
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 6,
            "x": 0,
            "y": 31
          },
          "id": 84,
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select sum(gauge) from (select last(gauge) as gauge from $database.taosadapter_restful_http_request_total group by client_ip, endpoint, request_method, request_uri, status_code)"
            }
          ],
          "title": "Http Request Total",
          "type": "stat"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 6,
            "x": 6,
            "y": 31
          },
          "id": 86,
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select sum(gauge) from (select last(gauge) as gauge from $database.taosadapter_restful_http_request_fail group by client_ip, endpoint, request_method, request_uri, status_code)"
            }
          ],
          "title": "Http Request Fail",
          "type": "stat"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "max": 100,
              "min": 0,
              "thresholds": {
                "mode": "percentage",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "#EAB839",
                    "value": 60
                  },
                  {
                    "color": "red",
                    "value": 90
                  }
                ]
              },
              "unit": "percent"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 6,
            "x": 12,
            "y": 31
          },
          "id": 88,
          "options": {
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "showThresholdLabels": false,
            "showThresholdMarkers": true,
            "text": {}
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "alias": "cpu_used",
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select last(gauge) as cpu_percent from $database.taosadapter_system_cpu_percent where _ts >= $from and _ts <= $to"
            }
          ],
          "title": "CPU Used",
          "type": "gauge"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "max": 100,
              "min": 0,
              "thresholds": {
                "mode": "percentage",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "#EAB839",
                    "value": 80
                  },
                  {
                    "color": "red",
                    "value": 90
                  }
                ]
              },
              "unit": "percent"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 6,
            "x": 18,
            "y": 31
          },
          "id": 90,
          "options": {
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "showThresholdLabels": false,
            "showThresholdMarkers": true,
            "text": {}
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "alias": "memory_used",
              "colNameFormatStr": "",
              "colNameToGroup": "",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select last(gauge) as mem_percent from $database.taosadapter_system_mem_percent where _ts >= $from and _ts <= $to"
            }
          ],
          "title": "Memory Used",
          "type": "gauge"
        },
        {
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 0,
                "gradientMode": "none",
                "hideFrom": {
                  "graph": false,
                  "legend": false,
                  "tooltip": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "auto",
                "spanNulls": false
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 12,
            "x": 0,
            "y": 37
          },
          "id": 82,
          "options": {
            "graph": {},
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltipOptions": {
              "mode": "single"
            }
          },
          "pluginVersion": "7.5.0",
          "targets": [
            {
              "colNameFormatStr": "request_in_flight_{{endpoint}}",
              "colNameToGroup": "endpoint",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select _wstart as ts, avg(gauge) as request_in_flight, endpoint from $database.taosadapter_restful_http_request_in_flight where _ts >= $from and _ts <= $to partition by endpoint interval($interval)"
            }
          ],
          "title": "Http Request Inflight",
          "type": "timeseries"
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_TDENGINE}",
          "fieldConfig": {
            "defaults": {
              "unit": "short"
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 6,
            "w": 12,
            "x": 12,
            "y": 37
          },
          "hiddenSeries": false,
          "id": 118,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": true,
            "min": true,
            "rightSide": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.5.0",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "colNameFormatStr": "{{status_code}}",
              "colNameToGroup": "status_code",
              "formatType": "Time series",
              "queryType": "SQL",
              "refId": "A",
              "sql": "select _wstart as ts, status_code, sum(gauge) from $database.taosadapter_restful_http_request_total where _ts >= $from and _ts <= $to partition by status_code interval($interval) fill(null)"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Http Status Code",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "title": "TaosAdapter",
      "type": "row"
    }
  ],
  "refresh": "30s",
  "schemaVersion": 27,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {
          "selected": true,
          "text": "log",
          "value": "log"
        },
        "datasource": "${DS_TDENGINE}",
        "definition": "select name from information_schema.ins_databases where `vgroups` is not null",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Log from",
        "multi": false,
        "name": "database",
        "options": [],
        "query": "select name from information_schema.ins_databases where `vgroups` is not null",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_TDENGINE}",
        "definition": "select endpoint from information_schema.ins_dnodes;",
        "description": "TDengine Nodes FQDN (Hostname)",
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "fqdn",
        "options": [],
        "query": "select endpoint from information_schema.ins_dnodes;",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_TDENGINE}",
        "definition": "select last(version) from $database.cluster_info",
        "description": null,
        "error": null,
        "hide": 2,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "version",
        "options": [],
        "query": "select last(version) from $database.cluster_info",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_TDENGINE}",
        "definition": "select last(first_ep) from $database.cluster_info",
        "description": null,
        "error": null,
        "hide": 2,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "firstEp",
        "options": [],
        "query": "select last(first_ep) from $database.cluster_info",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "auto": true,
        "auto_count": 100,
        "auto_min": "10s",
        "current": {
          "selected": false,
          "text": "auto",
          "value": "$__auto_interval_interval"
        },
        "description": null,
        "error": null,
        "hide": 0,
        "label": "Interval",
        "name": "interval",
        "options": [
          {
            "selected": true,
            "text": "auto",
            "value": "$__auto_interval_interval"
          },
          {
            "selected": false,
            "text": "5s",
            "value": "5s"
          },
          {
            "selected": false,
            "text": "10s",
            "value": "10s"
          },
          {
            "selected": false,
            "text": "15s",
            "value": "15s"
          },
          {
            "selected": false,
            "text": "20s",
            "value": "20s"
          },
          {
            "selected": false,
            "text": "30s",
            "value": "30s"
          },
          {
            "selected": false,
            "text": "1m",
            "value": "1m"
          },
          {
            "selected": false,
            "text": "2m",
            "value": "2m"
          },
          {
            "selected": false,
            "text": "5m",
            "value": "5m"
          },
          {
            "selected": false,
            "text": "10m",
            "value": "10m"
          },
          {
            "selected": false,
            "text": "30m",
            "value": "30m"
          },
          {
            "selected": false,
            "text": "1h",
            "value": "1h"
          },
          {
            "selected": false,
            "text": "6h",
            "value": "6h"
          },
          {
            "selected": false,
            "text": "12h",
            "value": "12h"
          },
          {
            "selected": false,
            "text": "1d",
            "value": "1d"
          }
        ],
        "query": "5s,10s,15s,20s,30s,1m,2m,5m,10m,30m,1h,6h,12h,1d",
        "queryValue": "",
        "refresh": 2,
        "skipUrlSync": false,
        "type": "interval"
      }
    ]
  },
  "time": {
    "from": "now-30m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "TDinsight for 3.x",
  "version": 37
}