CH Data Dictionary Viewer
ChDDV (ClickHouse Data Dictionary Viewer) displays most important informations on table/column definition. It also shows a cool graph with relationship between tables using the Node Graph plugin (Beta).
The dashboard shows columns attributes, most used data types and a graph with relationships between tables (eg. materialized views moving data from a Kafka Engine table to a MergeTree table). You can choose databases, tables and columns to be shown using variables. This dashboard does not require any data collection since it uses the standard data dictionary tables in the system database.
{
  "__inputs": [
    {
      "name": "DS_CH",
      "label": "ClickHouse data source",
      "description": "ClickHouse columnar database connection",
      "type": "datasource",
      "pluginId": "vertamedia-clickhouse-datasource",
      "pluginName": "ClickHouse"
    }
  ],
  "__elements": [],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.4.0-pre"
    },
    {
      "type": "panel",
      "id": "nodeGraph",
      "name": "Node Graph",
      "version": ""
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "vertamedia-clickhouse-datasource",
      "name": "ClickHouse",
      "version": "2.4.2"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1643800520787,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "vertamedia-clickhouse-datasource",
        "uid": "${DS_CH}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "displayMode": "auto"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Time"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Time"
              },
              {
                "id": "unit",
                "value": "time: YYYY-MM-DD HH:mm:ss"
              },
              {
                "id": "custom.align"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "column_position"
            },
            "properties": [
              {
                "id": "unit",
                "value": "short"
              },
              {
                "id": "custom.align"
              },
              {
                "id": "custom.width",
                "value": 106
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "is_nullable"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "null"
              },
              {
                "id": "unit",
                "value": "short"
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "custom.align"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgba(245, 54, 54, 0.9)",
                      "value": null
                    },
                    {
                      "color": "#5794F2",
                      "value": 0
                    },
                    {
                      "color": "rgba(50, 172, 45, 0.97)",
                      "value": 1
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "is_PK"
            },
            "properties": [
              {
                "id": "unit",
                "value": "short"
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "custom.align"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgba(245, 54, 54, 0.9)",
                      "value": null
                    },
                    {
                      "color": "rgba(33, 33, 33, 0.5)",
                      "value": 0
                    },
                    {
                      "color": "light-blue",
                      "value": 1
                    }
                  ]
                }
              },
              {
                "id": "custom.width",
                "value": 77
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "is_Part"
            },
            "properties": [
              {
                "id": "unit",
                "value": "short"
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              },
              {
                "id": "custom.align"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "rgba(245, 54, 54, 0.9)",
                      "value": null
                    },
                    {
                      "color": "rgba(33, 33, 33, 0.49)",
                      "value": 0
                    },
                    {
                      "color": "#5794F2",
                      "value": 1
                    }
                  ]
                }
              },
              {
                "id": "custom.width",
                "value": 72
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "null"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 83
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "column_comment"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 83
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "table_name"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 457
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "table_schema"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 117
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "column_default"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 93
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "is_Sort"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 81
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "transparent",
                      "value": 0
                    },
                    {
                      "color": "light-green",
                      "value": 1
                    }
                  ]
                }
              },
              {
                "id": "custom.displayMode",
                "value": "color-background"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "column_name"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 234
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "column_type"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 111
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "table"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 202
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "name"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 220
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 13,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "8.4.0-pre",
      "targets": [
        {
          "datasource": {
            "type": "vertamedia-clickhouse-datasource",
            "uid": "${DS_CH}"
          },
          "dateTimeType": "DATETIME",
          "extrapolate": true,
          "format": "table",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "select  database, table, name, type, \n        is_in_primary_key is_PK, is_in_partition_key is_Part, is_in_sorting_key is_Sort,\n        default_expression, comment,\n        formatReadableSize(data_compressed_bytes)  size\n  from system.columns\n where database in($database)\n   and table like '$tab'\n   and name like '$col'\n",
          "rawQuery": "select  database, table, name, type, \n        is_in_primary_key is_PK, is_in_partition_key is_Part, is_in_sorting_key is_Sort,\n        default_expression, comment,\n        formatReadableSize(data_compressed_bytes)  size\n  from system.columns\n where database in('system')\n   and table like 'p%'\n   and name like '%'",
          "refId": "A",
          "round": "0s",
          "skip_comments": true
        }
      ],
      "title": "Data Definition",
      "transformations": [
        {
          "id": "merge",
          "options": {
            "reducers": []
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "vertamedia-clickhouse-datasource",
        "uid": "${DS_CH}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "displayMode": "auto"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "type"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 115
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 9,
        "w": 8,
        "x": 0,
        "y": 13
      },
      "id": 5,
      "links": [],
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "value"
          }
        ]
      },
      "pluginVersion": "8.4.0-pre",
      "targets": [
        {
          "datasource": {
            "type": "vertamedia-clickhouse-datasource",
            "uid": "${DS_CH}"
          },
          "dateTimeType": "DATETIME",
          "extrapolate": true,
          "format": "table",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "select type as datatype, count(*) as value\n  from system.columns\n where database in($database)\n   and table like '$tab'\n   and name like '$col'\n group by type\n",
          "rawQuery": "select type as datatype, count(*) as value\n  from system.columns\n where database in('system')\n   and table like 'p%'\n   and name like '%'\n group by type",
          "refId": "A",
          "round": "0s",
          "skip_comments": true
        }
      ],
      "title": "Data Types",
      "type": "table"
    },
    {
      "datasource": {
        "type": "vertamedia-clickhouse-datasource",
        "uid": "${DS_CH}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 8,
        "y": 13
      },
      "id": 6,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.4.0-pre",
      "targets": [
        {
          "datasource": {
            "type": "vertamedia-clickhouse-datasource",
            "uid": "${DS_CH}"
          },
          "dateTimeType": "DATETIME",
          "extrapolate": true,
          "format": "table",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "select count(distinct database) from system.columns\n where database in($database)\n   and table like '$tab'\n   and name like '$col'\n",
          "rawQuery": "select count(distinct database) from system.columns\n where database in('bugfix_perfmgr','bugfix_pms','demo_perfmgr','demo_pms','dev_perfmgr','insight','kn_aggr','kn_common','kn_core','kn_core2','kn_ext','kn_raw','kn_raw2','kn_raw3','kn_raw3_rst','kn_raw4','konnect','my2','perf_pms','preprod_mcm','preprod_perfmgr','preprod_pms','sit_mcm','sit_perfmgr','sit_pms','stage','system','test','test_k','test_noc','test_perf','test_perfmgr','test_ph','test_pms','test_vertica','uat_mcm','uat_perfmgr','uat_pms','udr')\n   and table like '%_tab'\n   and name like '%'",
          "refId": "A",
          "round": "0s",
          "skip_comments": true
        }
      ],
      "title": "Databases",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "vertamedia-clickhouse-datasource",
        "uid": "${DS_CH}"
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 13
      },
      "id": 10,
      "targets": [
        {
          "datasource": {
            "type": "vertamedia-clickhouse-datasource",
            "uid": "${DS_CH}"
          },
          "dateTimeType": "DATETIME",
          "extrapolate": true,
          "format": "table",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "hide": false,
          "intervalFactor": 1,
          "query": "select concat(database,'.',name) id, name title, database subTitle,\n       formatReadableSize(total_bytes) mainStat,\n       if(engine in('MergeTree'),1,0) arc__MergeTreeTable,\n       if(engine in('AggregatingMergeTree', 'SummingMergeTree', 'ReplacingMergeTree'),0.1,0) arc__MergeAggrTable,\n       if(engine in('MaterializedView'),0.25,0) arc__MatView,\n       if(engine in('View'),0.1,0) arc__View,\n       if(engine in('Kafka'),0.5,0) arc__ExtTable\n  from system.tables\n   where database in($database)\n   and name like '$tab'\norder by id\n",
          "rawQuery": "select concat(database,'.',name) id, name title, database subTitle,\n       formatReadableSize(total_bytes) mainStat,\n       if(engine in('MergeTree'),1,0) arc__MergeTreeTable,\n       if(engine in('AggregatingMergeTree', 'SummingMergeTree', 'ReplacingMergeTree'),0.1,0) arc__MergeAggrTable,\n       if(engine in('MaterializedView'),0.25,0) arc__MatView,\n       if(engine in('View'),0.1,0) arc__View,\n       if(engine in('Kafka'),0.5,0) arc__ExtTable\n  from system.tables\n   where database in('bugfix_perfmgr','bugfix_pms','demo_perfmgr','demo_pms','dev_perfmgr','insight','kn_aggr','kn_common','kn_core','kn_core2','kn_core4','kn_ext','kn_raw','kn_raw2','kn_raw3','kn_raw3_rst','kn_raw4','konnect','my2','perf_pms','preprod_mcm','preprod_perfmgr','preprod_pms','sit_mcm','sit_perfmgr','sit_pms','stage','system','test','test_k','test_noc','test_perf','test_perfmgr','test_ph','test_pms','test_vertica','uat_bandwith','uat_mcm','uat_perfmgr','uat_pms','udr')\n   and name like '%'\norder by id",
          "refId": "A",
          "round": "0s",
          "skip_comments": true
        },
        {
          "datasource": {
            "type": "vertamedia-clickhouse-datasource",
            "uid": "${DS_CH}"
          },
          "dateTimeType": "DATETIME",
          "extrapolate": false,
          "format": "table",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "hide": false,
          "intervalFactor": 1,
          "query": "select *\nfrom (select concat(database,'.',name, '-', d,'.',t) id,\n       concat(database,'.',name) source, concat(d,'.',t) target, 'Dependent' mainStat\n  from system.tables\n array join dependencies_database as d, dependencies_table as t\n where dependencies_table <> []\n   and database in($database)\n   and name like '$tab'\n   and d in($database)\n   and t like '$tab'\nunion all\nselect concat( extract( substr(create_table_query, position(create_table_query, ' FROM ')+6, 40), '(\\\\w+.\\\\w+)\\\\s+' ),'-',database,'.',name ),\n       extract( substr(create_table_query, position(create_table_query, ' FROM ')+6, 40), '(\\\\w+.\\\\w+)\\\\s+' ), \n              concat(database,'.',name), 'View'\n  from system.tables\n where engine in ('View')\n   and extract( substr(create_table_query, position(create_table_query, ' FROM ')+6, 40),\n                 '(\\\\w+.\\\\w+)\\\\s+' ) not in ('', 'SELECT')\n   and database in($database)\n   and name like '$tab'\nunion all\nselect concat( database,'.',name, '-', \n              extract( substr(create_table_query, position(create_table_query, ' TO ')+4, 40), '(\\\\w+.\\\\w+)\\\\s+' ) ),\n       concat(database,'.',name), \n              extract( substr(create_table_query, position(create_table_query, ' TO ')+4, 40), '(\\\\w+.\\\\w+)\\\\s+' ), 'MvTo'\n  from system.tables\n where engine in ('MaterializedView')\n   and extract( substr(create_table_query, position(create_table_query, ' TO ')+4, 40),\n                 '(\\\\w+.\\\\w+)\\\\s+' ) not in ('', 'SELECT')\n   and database in($database)\n   and name like '$tab' )\nWHERE source in (select concat(database,'.',name) from system.tables where database in($database) and name like '$tab')\n  AND target in (select concat(database,'.',name) from system.tables where database in($database) and name like '$tab')",
          "rawQuery": "select *\nfrom (select concat(database,'.',name, '-', d,'.',t) id,\n       concat(database,'.',name) source, concat(d,'.',t) target, 'Dependent' mainStat\n  from system.tables\n array join dependencies_database as d, dependencies_table as t\n where dependencies_table <> []\n   and database in('bugfix_perfmgr','bugfix_pms','demo_perfmgr','demo_pms','dev_perfmgr','insight','kn_aggr','kn_common','kn_core','kn_core2','kn_core4','kn_ext','kn_raw','kn_raw2','kn_raw3','kn_raw3_rst','kn_raw4','konnect','my2','perf_pms','preprod_mcm','preprod_perfmgr','preprod_pms','sit_mcm','sit_perfmgr','sit_pms','stage','system','test','test_k','test_noc','test_perf','test_perfmgr','test_ph','test_pms','test_vertica','uat_bandwith','uat_mcm','uat_perfmgr','uat_pms','udr')\n   and name like '%'\n   and d in('bugfix_perfmgr','bugfix_pms','demo_perfmgr','demo_pms','dev_perfmgr','insight','kn_aggr','kn_common','kn_core','kn_core2','kn_core4','kn_ext','kn_raw','kn_raw2','kn_raw3','kn_raw3_rst','kn_raw4','konnect','my2','perf_pms','preprod_mcm','preprod_perfmgr','preprod_pms','sit_mcm','sit_perfmgr','sit_pms','stage','system','test','test_k','test_noc','test_perf','test_perfmgr','test_ph','test_pms','test_vertica','uat_bandwith','uat_mcm','uat_perfmgr','uat_pms','udr')\n   and t like '%'\nunion all\nselect concat( extract( substr(create_table_query, position(create_table_query, ' FROM ')+6, 40), '(\\\\w+.\\\\w+)\\\\s+' ),'-',database,'.',name ),\n       extract( substr(create_table_query, position(create_table_query, ' FROM ')+6, 40), '(\\\\w+.\\\\w+)\\\\s+' ), \n              concat(database,'.',name), 'View'\n  from system.tables\n where engine in ('View')\n   and extract( substr(create_table_query, position(create_table_query, ' FROM ')+6, 40),\n                 '(\\\\w+.\\\\w+)\\\\s+' ) not in ('', 'SELECT')\n   and database in('bugfix_perfmgr','bugfix_pms','demo_perfmgr','demo_pms','dev_perfmgr','insight','kn_aggr','kn_common','kn_core','kn_core2','kn_core4','kn_ext','kn_raw','kn_raw2','kn_raw3','kn_raw3_rst','kn_raw4','konnect','my2','perf_pms','preprod_mcm','preprod_perfmgr','preprod_pms','sit_mcm','sit_perfmgr','sit_pms','stage','system','test','test_k','test_noc','test_perf','test_perfmgr','test_ph','test_pms','test_vertica','uat_bandwith','uat_mcm','uat_perfmgr','uat_pms','udr')\n   and name like '%'\nunion all\nselect concat( database,'.',name, '-', \n              extract( substr(create_table_query, position(create_table_query, ' TO ')+4, 40), '(\\\\w+.\\\\w+)\\\\s+' ) ),\n       concat(database,'.',name), \n              extract( substr(create_table_query, position(create_table_query, ' TO ')+4, 40), '(\\\\w+.\\\\w+)\\\\s+' ), 'MvTo'\n  from system.tables\n where engine in ('MaterializedView')\n   and extract( substr(create_table_query, position(create_table_query, ' TO ')+4, 40),\n                 '(\\\\w+.\\\\w+)\\\\s+' ) not in ('', 'SELECT')\n   and database in('bugfix_perfmgr','bugfix_pms','demo_perfmgr','demo_pms','dev_perfmgr','insight','kn_aggr','kn_common','kn_core','kn_core2','kn_core4','kn_ext','kn_raw','kn_raw2','kn_raw3','kn_raw3_rst','kn_raw4','konnect','my2','perf_pms','preprod_mcm','preprod_perfmgr','preprod_pms','sit_mcm','sit_perfmgr','sit_pms','stage','system','test','test_k','test_noc','test_perf','test_perfmgr','test_ph','test_pms','test_vertica','uat_bandwith','uat_mcm','uat_perfmgr','uat_pms','udr')\n   and name like '%' )\nWHERE source in (select concat(database,'.',name) from system.tables where database in('bugfix_perfmgr','bugfix_pms','demo_perfmgr','demo_pms','dev_perfmgr','insight','kn_aggr','kn_common','kn_core','kn_core2','kn_core4','kn_ext','kn_raw','kn_raw2','kn_raw3','kn_raw3_rst','kn_raw4','konnect','my2','perf_pms','preprod_mcm','preprod_perfmgr','preprod_pms','sit_mcm','sit_perfmgr','sit_pms','stage','system','test','test_k','test_noc','test_perf','test_perfmgr','test_ph','test_pms','test_vertica','uat_bandwith','uat_mcm','uat_perfmgr','uat_pms','udr') and name like '%')\n  AND target in (select concat(database,'.',name) from system.tables where database in('bugfix_perfmgr','bugfix_pms','demo_perfmgr','demo_pms','dev_perfmgr','insight','kn_aggr','kn_common','kn_core','kn_core2','kn_core4','kn_ext','kn_raw','kn_raw2','kn_raw3','kn_raw3_rst','kn_raw4','konnect','my2','perf_pms','preprod_mcm','preprod_perfmgr','preprod_pms','sit_mcm','sit_perfmgr','sit_pms','stage','system','test','test_k','test_noc','test_perf','test_perfmgr','test_ph','test_pms','test_vertica','uat_bandwith','uat_mcm','uat_perfmgr','uat_pms','udr') and name like '%')",
          "refId": "B",
          "round": "0s",
          "skip_comments": true
        }
      ],
      "title": "Relations",
      "type": "nodeGraph"
    },
    {
      "datasource": {
        "type": "vertamedia-clickhouse-datasource",
        "uid": "${DS_CH}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 8,
        "y": 16
      },
      "id": 7,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.4.0-pre",
      "targets": [
        {
          "datasource": {
            "type": "vertamedia-clickhouse-datasource",
            "uid": "${DS_CH}"
          },
          "dateTimeType": "DATETIME",
          "extrapolate": true,
          "format": "table",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "select count(distinct table) from system.columns\n where database in($database)\n   and table like '$tab'\n   and name like '$col'\n",
          "rawQuery": "select count(distinct table) from system.columns\n where database in('kn_core','kn_raw2')\n   and table like '%'\n   and name like '%'",
          "refId": "A",
          "round": "0s",
          "skip_comments": true
        }
      ],
      "title": "Tables",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "vertamedia-clickhouse-datasource",
        "uid": "${DS_CH}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 8,
        "y": 19
      },
      "id": 8,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.4.0-pre",
      "targets": [
        {
          "datasource": {
            "type": "vertamedia-clickhouse-datasource",
            "uid": "${DS_CH}"
          },
          "dateTimeType": "DATETIME",
          "extrapolate": true,
          "format": "table",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "select count(*) from system.columns\n where database in($database)\n   and table like '$tab'\n   and name like '$col'\n",
          "rawQuery": "select count(*) from system.columns\n where database in('kn_core','kn_raw2')\n   and table like '%'\n   and name like '%'",
          "refId": "A",
          "round": "0s",
          "skip_comments": true
        }
      ],
      "title": "Columns",
      "type": "stat"
    }
  ],
  "schemaVersion": 34,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "clickhouse",
          "value": "clickhouse"
        },
        "hide": 1,
        "includeAll": false,
        "multi": false,
        "name": "MyInstance",
        "options": [],
        "query": "vertamedia-clickhouse-datasource",
        "queryValue": "",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "current": {},
        "datasource": {
          "type": "vertamedia-clickhouse-datasource",
          "uid": "${DS_CH}"
        },
        "definition": "select distinct database from system.tables",
        "hide": 0,
        "includeAll": true,
        "multi": true,
        "name": "database",
        "options": [],
        "query": "select distinct database from system.tables",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {
          "selected": false,
          "text": "p%",
          "value": "p%"
        },
        "hide": 0,
        "label": "Table (LIKE)",
        "name": "tab",
        "options": [
          {
            "selected": true,
            "text": "p%",
            "value": "p%"
          }
        ],
        "query": "p%",
        "skipUrlSync": false,
        "type": "textbox"
      },
      {
        "current": {
          "text": "%",
          "value": "%"
        },
        "hide": 0,
        "label": "Column (LIKE)",
        "name": "col",
        "options": [
          {
            "selected": true,
            "text": "%",
            "value": "%"
          }
        ],
        "query": "%",
        "skipUrlSync": false,
        "type": "textbox"
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "CH Data Dictionary Viewer",
  "uid": "DlZJ3Uxnz",
  "version": 18,
  "weekStart": "",
  "gnetId": 15666,
  "description": "ChDDV (ClickHouse Data Dictionary Viewer) displays most important informations on table/column definition. It also shows a cool graph with relationship between tables using the Node Graph plugin (Beta)."
}