Skip to main content
Version: v1.7.x

Monitoring TDengine-PromQL

Use Prometheus PromQL to query general metric data from the Prometheus server to monitor TDengine. This solution is suitable for situations where Prometheus is already monitoring TDengine and you need to retrieve TDengine monitoring data from the Prometheus server.

Prerequisites

  1. Deploy TDengine;
  2. Deploy taosKeeper; note that installing the official TDengine installation package will automatically install taosKeeper. For details, please refer to: taosKeeper;
  3. Collect monitoring metrics exposed by TDengine taosKeeper through prometheus;

Configuration parameters

Parameter NameParameter Description
Monitoring HostIP, IPv6, or domain name of the target being monitored. Note ⚠️: Do not include protocol header (e.g., https://, http://).
Monitoring nameName to identify this monitoring, ensuring uniqueness of names.
PortPrometheus API port, default: 9090.
Relative pathRelative path of Prometheus to query PromQL, default: /api/v1/query
Request modeSet the request method for API calls: GET, POST, PUT, DELETE, default: GET
Enable HTTPSWhether to access the website via HTTPS, note ⚠️: enabling HTTPS generally requires changing the corresponding port to 443
UsernameUsername for Basic or Digest authentication when accessing the API.
PasswordPassword for Basic or Digest authentication when accessing the API.
Content-TypeResource type when carrying BODY request data.
Request BODYSet the BODY request data, effective for PUT and POST request methods.
Collection intervalInterval for periodic data collection in seconds, the minimum interval that can be set is 30 seconds
Description remarksAdditional remarks and descriptions for this monitoring. Users can add notes here.

Collection indicators

Indicator set: Basic information indicators

Indicator nameindicator unitIndicators help describe
taos_cluster_info_first_epnonefirst endpoint
taos_cluster_info_versionnoneVersion Information
taos_cluster_info_master_uptimedayMaster node runtime

Indicator set: Number of nodes indicator

Indicator nameindicator unitIndicators help describe
taos_cluster_info_dnodes_totalnoneTotal number of dnodes
taos_cluster_info_dnodes_alivenoneNumber of surviving dnodes
taos_cluster_info_mnodes_totalnoneTotal number of mnodes
taos_cluster_info_mnodes_alivenoneNumber of surviving mnodes
taos_cluster_info_vgroups_totalnoneTotal number of virtual groups
taos_cluster_info_vgroups_alivenoneNumber of surviving virtual groups
taos_cluster_info_vnodes_totalnoneTotal number of virtual nodes
taos_cluster_info_vnodes_alivenoneNumber of surviving virtual nodes

Indicator set: Database and table statistics

Indicator nameindicator unitIndicators help describe
taos_cluster_info_dbs_totalnoneTotal number of databases
taos_cluster_info_tbs_totalnoneTotal number of tables
taos_cluster_info_connections_totaldaytotal number of connections

Indicator set: Dnode information

| Indicator name | indicator unit | Indicators help describe | | --- | | --- | | taos_d_info_status | Ready indicates normal, offline indicates offline, and unknown indicates unknown. | dnode status | | taos_dnodes_info_uptime | s | The startup time of this dnode | | taos_dnodes_info_cpu_engine | none | The percentage of CPU used by the process of this dnode. | | taos_dnodes_info_cpu_system | none | The percentage of CPU used by the system of the node where the dnode is located. | | taos_dnodes_info_mem_engine | KB | Memory used by the process of this dnode | | taos_dnodes_info_mem_system | KB | The memory used by the system of the node where the dnode is located. | | taos_dnodes_info_disk_total | Byte | The total disk capacity of the node where the dnode is located. | | taos_dnodes_info_disk_used | Byte | The amount of disk space used on the node where the dnode is located. | | taos_dnodes_info_io_write_disk | Bytes per second | The disk IO write rate of the node where the dnode is located. | | taos_dnodes_info_io_read_disk | Bytes per second | The disk IO read rate of the node where the dnode is located. |

Indicator nameindicator unitIndicators help describe
total_requests_for_adapter_transfersnoneTotal number of requests
taos_adapter_requests_successnoneNumber of successful requests
taos_adapter_requests_failnoneNumber of failed requests
taos_adapter_requests_querynoneNumber of query requests

Other TDengine monitoring methods supported by HertzBeat

  1. Through the monitoring metrics exposed by taosKeeper, you can refer to Prometheus Task to configure Prometheus collection tasks for monitoring TDengine.