Plugins 〉TDengine Datasource

TAOS Data Inc.

Sign up to receive occasional product news and updates:

Data Source

TDengine Datasource

  • Overview
  • Installation
  • Change log
  • Related content

Grafana Plugin for TDengine

TDengine is open-sourced big data platform under GNU AGPL v3.0, designed and optimized for the Internet of Things (IoT), Connected Cars, Industrial IoT, and IT Infrastructure and Application Monitoring, developed by TDengine.

TDengine data source plugin is developed for Grafana. This document explains how to install and configure the data source plugin, and use it as a time-series database. We'll take a look at the data source options, variables, querying, and other options specific to this data source.

At first, please refer to Add a data source for instructions on how to add a data source to Grafana. Note that, only users with the organization admin role can add data sources.

To install this plugin, please refer to Install the Grafana Plugin for TDengine


Now it's ready for you to add your own TDengine data source and use it in a dashboard. Refer to Grafana Datasource documentations topic - Add a data source for a quick view. Please make sure the TDengine backend daemon taosd and TDengine RESTful service backend daemon taosadapter already launched.

Add Data Source

Point to Configurations -> Data Sources menu and then Add data source button.

add data source button

Search and choose TDengine. add data source

If TDengine is not in the list, please check the installation instructions for allowing loading unsigned plugins.

Configure TDengine data source.

data source configuration

Save and test it, it should say 'TDengine Data source is working'.

data source test

Import Dashboard

Point to + / Create - import (or /assets/import url).

import dashboard and config

Now you can import dashboard with JSON file or grafana dashboard id (please make sure your network is public to

Here is the first grafana dashboard you want to use for TDengine, the grafana dashboard id is 18180.

import via

After import:

dashboard display

Important changes


  1. TDengine data source plugin uses secureJsonData to store sensitive data. It will cause a breaking change when you're upgrading from an older version:

    The simple way to migrate from older version is to reconfigure the data source like adding a data source from scratch.

    If you're using Grafana provisioning configurations, you should change the data source provisioning configuration file to use secureJsonData:

    apiVersion: 1
      # <string, required> name of the datasource. Required
    - name: TDengine
      # <string, required> datasource type. Required
      type: tdengine-datasource
      # <string, required> access mode. direct or proxy. Required
      # <int> org id. will default to orgId 1 if not specified
      orgId: 1

    <string> url to TDengine rest api, eg. http://td1:6041

    url: “$TDENGINE_API”

    <bool> mark as default datasource. Max one per org

    isDefault: true


    secureJsonData: # <string> a redundant url configuration. Required. url: “$TDENGINE_API” # <string> basic authorization token. Required, can be build like # printf root:taosdata|base64 basicAuth: “${TDENGINE_BASIC_AUTH}” # <string> cloud service token of TDengine, optional. token: “$TDENGINE_CLOUD_TOKEN”

    version: 1

    <bool> allow users to edit datasources from the UI.

    editable: true

  2. Now users can quickly import TDinsight dashboard in Dashboards tab in a datasource configuration page.


Monitor TDengine Database with TDengine Data Source Plugin

See How to Monitor TDengine Cluster with Grafana for the details.


TDinsight is a simple monitoring solution for TDengine database. See TDinsight README for the details.

Docker Stack

For a quick look and test, you can use docker-compose to start a full Grafana + AlertManager + Alert Webhook stack:

docker-compose up -d



You can get other dashboards in the examples' directory, or search in grafana with TDengine datasource .

Here is a short list:

You could open a pr to add one if you want to share your dashboard with TDengine community, we appreciate your contribution!

Installing TDengine Datasource on Grafana Cloud:

For more information, visit the docs on plugin installation.


All notable changes to this project will be documented in this file.

[3.5.1] - 2024-04-30

Bug Fixes


  • update taosX and taosd dashboard.

[3.5.0] - 2024-03-05

Bug Fixes


  • add TDinsight for taosX dashboard.
  • new TDinsight for 3.x dashboard.

[3.4.7] - 2024-01-27

Bug Fixes


  • remove TDpower dashboard.

[3.4.6] - 2024-01-02

Bug Fixes

fix slow sqls fix sql bug remove console log

[3.4.3] - 2023-12-22

Bug Fixes

fix problem with the token field
update some outdated pictures

[3.4.2] - 2023-12-13

Bug Fixes

fix token input bug


modify TDinsight to TDinsight 2.x

[3.4.1] - 2023-11-14

Bug Fixes


  • New dashboards: TDpower and TDsmeters.

[3.4.0] - 2023-10-31

Bug Fixes


  • New Taosadapter dashboard
  • Add datasource for adapter dashboard
  • Change legend for adapter dashboard

[3.3.6] - 2023-10-14

Bug Fixes

  • Fix sql in telgraf dashboard


  • Change datasource config page

[3.3.5] - 2023-09-22

Bug Fixes

  • Fix for time shift
  • Fix request url
  • Fix unit in tdinsight v3
  • Fix for datasource routing
  • Fix display of host and user when save clicked


  • Bump @adobe/css-tools from 4.1.0 to 4.3.1 (#224)

[3.3.4] - 2023-07-25

Bug Fixes

  • Fix for http status code dashboard


  • Check tdengine api schema in
  • Delete login history dashboard


  • Bump word-wrap from 1.2.3 to 1.2.4 (#218)

[3.3.3] - 2023-07-12

Bug Fixes

  • Fix for http status code
  • Fix for taoskeeper prometheus dashboard v3
  • Fix for tdinsight v3 and prometheus v3 dashboard


  • Update tdinsight document


  • Add default value to database and delete user db


  • Add taoskeeper prometheus dashboard (#209)


  • Bump from 1.41.0 to 1.53.0 (#213)
  • Bump semver from 5.7.1 to 5.7.2 (#214)

[3.3.2] - 2023-04-13

Bug Fixes

  • Remove group by
  • Adapt keepColName params
  • Set datasource for http status code dashboard (#200)
  • Fix for total tables (#201)
  • Fix for table summary
  • Fix for table data type
  • Fix for duplicate metric name


  • Support variables query key/value


  • Bump webpack from 5.75.0 to 5.76.0 (#195)

[3.3.1] - 2023-03-15

Bug Fixes

  • Typos
  • Typos
  • Fix for telegraf dashboard (#187)
  • Fix for unused formatType config
  • Delete console log in datasource.ts (#191)
  • Refactor readme and upgrade dependence and fix tdinsight v3
  • Typos
  • Fix for log (#194)


  • Add readme for tdinsight v3

[3.3.0] - 2023-02-24

Bug Fixes

  • Revert testDatasource function
  • Change httpclient and delete sensitive log
  • Delete token from log (#184)


  • Refactor by grafana/create-plugin (#179)


  • Fix release workflow for missing
  • Fix release work flow

[3.2.9] - 2023-02-08

Bug Fixes

  • Tdinsight v3.x support grafana 7.x (#170)
  • Fix http request dashboard
  • Fix block while format column name
  • Add error message when query data error


  • Support multi dimension alert
  • Add http_status_code dashboard (#173)


  • Support set legend alias by setting format-str


  • Add license to dist

[3.2.8] - 2022-12-29

Bug Fixes

  • Delete frame name, otherwise this name will override data column name
  • Tdinsight dashboard show error

[3.2.7] - 2022-11-15

Bug Fixes

  • Fix --offline error (#152)
  • Change time unit and placement of charts (#153)
  • Telegraf conf refine (#154)
  • Fix page fault for TDinsight v3 in grafana (#161)


  • Add install plugin from config section (#157)
  • Readme add bullet link (#158)
  • Wording align with official doc (#159)
  • Fix a few typos and wording


  • Grafana plugin support TDengine 3.0 (#162)

[3.2.6] - 2022-08-12

Bug Fixes

  • -p not work
  • Fix offline plugin not found error (#146)
  • Compatible with python2 (#148)
  • Modify taosAdapter http_request_total dashboard
  • Add error reason
  • Add V3 dashboard
  • Timestamp code


  • Fix ci syntax error


  • Update README for data source name settings


  • Do not cache zip file when there's no python in system (#138)
  • Anyone can request a release by pr
  • Match 3.0 (#149)

[3.2.5] - 2022-06-10

Bug Fixes

  • Auto detect sudo command in installer (#135)
  • Fix --plugin-version bug and support cloud token like (#136)


  • Remove unused timeInterval in provisioning configurations (#137)

[3.2.4] - 2022-06-08

Bug Fixes

  • Fix url params lost with cloud token in secure json data


  • Improve telegraf example and publish to Grafana (#133)
  • Add as one-line installer

[3.2.3] - 2022-06-02

Bug Fixes

  • Remove user/password in backend plugin config (#131)


  • Fix basic auth generation comment error (#130)

[3.2.2] - 2022-05-30

Bug Fixes

  • Fix datasource test check bug (#128)

[3.2.1] - 2022-05-26

Bug Fixes

  • Remove sensitive logging, fix ts layout format parsing method (#127)

[3.2.0] - 2022-05-25

Bug Fixes

  • Fix bug when label not match while group by multi column (#124)


  • V3.1.7 released as signed (#121)


  • Group by multiple columns implicitly (#122)
  • Store user, password, token in secureJsonData
  • Use secureJsonData for all sensitive data
  • Add dashboards tab in data source configuration page

[3.1.7] - 2022-05-14


  • Sign plugin before release (#119)


  • Add config option for cloud service token (#118)

[3.1.6] - 2022-05-05

Bug Fixes

  • Change link to for plugin-check (#117)

[3.1.5] - 2022-05-05

Bug Fixes

  • Rename timestamp _ts to ts (#112)
  • Add --offline/--download-only pair options (#113)
  • Fix warnings by grafana plugin validator (#116)


  • Update dependencies (#99)


  • Add instruction for TDinsight (#100)
  • Enrich TDinsight introduction in en/cn (#101)


  • Update installation instructions of datasource plugin in tdinsight (#102)


  • Fail if grafana not installed in (#104)


  • Add taosadapter metrics (#106)


  • Remove Requests (Inserts) panel in Requests row (#105)


  • Fix cpu and memory percent in taosAdapter (#108)


  • Add installation instruction for macOS (#110)

[3.1.4] - 2022-01-14


  • Improve TDinsight documentations (#84)


  • Add chinese version of TDinsight user manual (#85)


  • Apply review suggestions (#87)


  • Use relative image links for official website link (#90)
  • Remove toc and fix images display in website (#92)


  • Add upgrade/uninstall section for TDinsight (#94)


  • Image minor fix for TDinsight (#93)


  • Compatible to grafana 5.2.4 (#97)


  • Use show databases instead of select distinct(database_name) from vgroups_info (#91)


  • Fix incrrect time range in TDinsight disk/net panels (#88)

[3.1.3] - 2021-11-26


  • Fix TD-11023 TD-11024 TD-11079 TDinsight dashboard bugs (#71)


  • Update TDinsight dashboard layout (#75)
  • Push sms alert. (#77)


  • Interval replaced once error


  • Fix backend plugin error in case of integer types (#72)


  • Consist TDinsight time interval by variable
  • Update time interval and default it as auto


  • Fill(null) caused taosadapter/httpd coredump (#76)


  • Data source config sms. (#79)


  • Add provisioning script for TDinsight (#81)


  • Fix value mapping error in VNnodes Masters (#78)


  • Grafanaplugin alert error. (#82)


  • Fix ts layout error 2021-11-26T03:06:00Z and improve documents (#83)

[3.1.2] - 2021-11-12


  • GENERATE SQL error.


  • Release v3.1.2 (#68)


  • Support group by col.
  • Support group by col.
  • Support group by col.
  • Support group by col.

[3.1.1] - 2021-10-31

Bug Fixes

  • Grafana-webhook submodule url not found (#64)


  • Fix directory name in package script
  • Fix typo by @jtao1735


  • Add TDengine Dashboard with alert support (#62)


  • Generate the latest sql


  • Could not locate user error.
  • Could not locate user error.


  • Update grafana plugin version to v3.1.1 (#63)

[3.1.0] - 2021-10-27


  • 实现metricFindQuery方法,解决查询值的问题


  • A much better dashboard for 7.x grafana (#38)


  • B is not defined error. (#39)


  • Grafana plugin alert error.
  • Grafana plugin alert error.


  • Add collectd dashboard example (#45)


  • Support datasource selection in TDengine new dashboard (#50)


  • Add grafana dashboard for telegraf (#43)


  • Plugin variable repeat error. (#42)


  • Add statsd fake dashboard (#46)


  • Fix grafana dashboard error for telegraf (#47)


  • Remove dist/ directory in grafanaplugin source (#52)


  • Add CI and Release workflow in GitHub Actions, and fix warnings in submission (#54)


  • Fix some typos, add howto section (#56)


  • Support variables


  • Fix demo dashboard import error in Grafana 6.2


  • Support timeshift for query result


  • Support arithmetic calculation among queris


  • Fix read property 'status' of undefined


  • Fix dashboard import unexpected view


  • Solve warnings in build


  • Add how to monitor TDengine with Grafana document (#40)


  • Tdengine restful api (#36)


  • Fix grafana datasource api in 6.x (#29)

<!-- generated by git-cliff -->