diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5ff92d77b..8a2601ad9 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -103,9 +103,6 @@ addons-cluster/rocketmq/ @leon-inf @apecloud/kb-reviewers @apecloud/kb-addon-rev addons/starrocks-ce/ @yandongxiao @iziang @leon-inf @apecloud/kb-reviewers @apecloud/kb-addon-reviewers addons-cluster/starrocks-ce/ @yandongxiao @iziang @leon-inf @apecloud/kb-reviewers @apecloud/kb-addon-reviewers -addons/tdengine/ @leon-inf @leon-inf @apecloud/kb-reviewers @apecloud/kb-addon-reviewers -addons-cluster/tdengine/ @leon-inf @leon-inf @apecloud/kb-reviewers @apecloud/kb-addon-reviewers - addons/tidb/ @csuzhangxc @cjc7373 @leon-inf @apecloud/kb-reviewers @apecloud/kb-addon-reviewers addons-cluster/tidb/ @csuzhangxc @cjc7373 @leon-inf @apecloud/kb-reviewers @apecloud/kb-addon-reviewers diff --git a/.github/workflows/release-addons-cluster-chart.yml b/.github/workflows/release-addons-cluster-chart.yml index 653953371..da4b8fb01 100644 --- a/.github/workflows/release-addons-cluster-chart.yml +++ b/.github/workflows/release-addons-cluster-chart.yml @@ -44,7 +44,6 @@ on: - risingwave - rocketmq - starrocks-ce - - tdengine - tidb - victoria-metrics - weaviate diff --git a/.github/workflows/release-chart.yml b/.github/workflows/release-chart.yml index e90c33edd..f8f2f7dba 100644 --- a/.github/workflows/release-chart.yml +++ b/.github/workflows/release-chart.yml @@ -44,7 +44,6 @@ on: - risingwave - rocketmq - starrocks-ce - - tdengine - tidb - victoria-metrics - weaviate diff --git a/README.md b/README.md index 54ce370c6..437583c49 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,6 @@ KubeBlocks add-ons. | risingwave | risingwave-compactor-v1.0.0
risingwave-compute-v1.0.0
risingwave-connector-v1.0.0
risingwave-frontend-v1.0.0
risingwave-meta-v1.0.0 | RisingWave is a distributed SQL streaming database that enables cost-efficient and reliable processing of streaming data. | RisingWave Labs | | rocketmq | rocketmq-broker-4.9.6
rocketmq-dashboard-2.0.1
rocketmq-exporter-0.0.3
rocketmq-namesrv-4.9.6 | RocketMQ is a distributed messaging and streaming platform originally developed by Alibaba, featuring high throughput, low latency, and strong reliability for processing millions of messages per second. | ApeCloud | | starrocks-ce | starrocks-ce-be-3.2.2
starrocks-ce-be-3.3.0
starrocks-ce-fe-3.2.2
starrocks-ce-fe-3.3.0 | A Linux Foundation project, is the next-generation data platform designed to make data-intensive real-time analytics fast and easy. | yandongxiao iziang | -| tdengine | tdengine-3.3.6-9 | TDengine is an open source, high-performance, cloud native time-series database optimized for Internet of Things (IoT), Connected Cars, Industrial IoT and DevOps. | leon-inf | | tidb | tidb-6.5.12
tidb-7.1.5
tidb-7.5.2
tidb-8.4.0
tidb-pd-6.5.12
tidb-pd-7.1.5
tidb-pd-7.5.2
tidb-pd-8.4.0
tikv-6.5.12
tikv-7.1.5
tikv-7.5.2
tikv-8.4.0 | TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. | csuzhangxc cjc7373 | | vanilla-postgresql | supabase-15.6.1-138
anilla-postgresql-12.15.0
anilla-postgresql-14.7.0
anilla-postgresql-15.7.0 | Vanilla-PostgreSQL is compatible with the native PostgreSQL kernel, enabling it to quickly provide HA solutions for various variants based on the native PostgreSQL kernel. | kizuna-lek | | victoria-metrics | ictoria-metrics-1.0.0 | VictoriaMetrics is a fast, cost-effective and scalable monitoring solution and time series database. | sophon-zt ButterBright | diff --git a/addons-cluster/tdengine/.helmignore b/addons-cluster/tdengine/.helmignore deleted file mode 100644 index 708a98881..000000000 --- a/addons-cluster/tdengine/.helmignore +++ /dev/null @@ -1,24 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ -*.lock \ No newline at end of file diff --git a/addons-cluster/tdengine/Chart.yaml b/addons-cluster/tdengine/Chart.yaml deleted file mode 100644 index 194e17590..000000000 --- a/addons-cluster/tdengine/Chart.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: v2 - -name: tdengine-cluster - -description: A Helm chart to create a cluster for TDengine in Kubeblocks. - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.1.0-alpha.0 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -# It is recommended to use it with quotes. -appVersion: "3.0.5" - -dependencies: - - name: kblib - version: 0.1.2 - repository: file://../kblib - alias: extra - -icon: https://kubeblocks.io/img/logo.png \ No newline at end of file diff --git a/addons-cluster/tdengine/releases_notes.yaml b/addons-cluster/tdengine/releases_notes.yaml deleted file mode 100644 index f5506cacf..000000000 --- a/addons-cluster/tdengine/releases_notes.yaml +++ /dev/null @@ -1,18 +0,0 @@ -releases: - - version: "1.0.1" - released_at: "2025-09-11" - status: "stable" - notes: - git_branch: "release-1.0" - git_tag: "1.0.1" - commit_sha: "" - breaking_changes: - - version: "1.0.0" - released_at: "2025-05-28" - status: "stable" - git_branch: "release-1.0" - git_tag: "1.0.0" - - version: "0.9.1" - git_branch: "release-0.9" - - version: "0.9.0" - git_branch: "release-0.9" \ No newline at end of file diff --git a/addons-cluster/tdengine/templates/NOTES.txt b/addons-cluster/tdengine/templates/NOTES.txt deleted file mode 100644 index c3b3453e3..000000000 --- a/addons-cluster/tdengine/templates/NOTES.txt +++ /dev/null @@ -1,2 +0,0 @@ -1. Get the application URL by running these commands: - diff --git a/addons-cluster/tdengine/templates/_helpers.tpl b/addons-cluster/tdengine/templates/_helpers.tpl deleted file mode 100644 index 9b5fca9e5..000000000 --- a/addons-cluster/tdengine/templates/_helpers.tpl +++ /dev/null @@ -1,12 +0,0 @@ -{{/* -Define replica count. -standalone mode: 1 -raftGroup mode: 3 or more -*/}} -{{- define "tdengine-cluster.replicaCount" -}} -{{- if eq .Values.mode "standalone" }} -replicas: 1 -{{- else }} -replicas: {{ max .Values.replicas 3 }} -{{- end }} -{{- end -}} \ No newline at end of file diff --git a/addons-cluster/tdengine/templates/cluster.yaml b/addons-cluster/tdengine/templates/cluster.yaml deleted file mode 100644 index 5bdb89268..000000000 --- a/addons-cluster/tdengine/templates/cluster.yaml +++ /dev/null @@ -1,30 +0,0 @@ -apiVersion: apps.kubeblocks.io/v1 -kind: Cluster -metadata: - name: {{ include "kblib.clusterName" . }} - namespace: {{ .Release.Namespace }} - labels: {{ include "kblib.clusterLabels" . | nindent 4 }} -spec: - terminationPolicy: {{ .Values.extra.terminationPolicy }} - componentSpecs: - - name: tdengine - componentDef: tdengine - serviceVersion: {{ .Values.version }} - {{- include "kblib.componentMonitor" . | indent 6 }} - {{- include "tdengine-cluster.replicaCount" . | indent 6 }} - {{- include "kblib.componentResources" . | indent 6 }} - volumeClaimTemplates: - - name: data # ref clusterDefinition components.containers.volumeMounts.name - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: {{ print .Values.dataStorageSize "Gi" }} - - name: arch # ref clusterDefinition components.containers.volumeMounts.name - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: {{ print .Values.archStorageSize "Gi" }} diff --git a/addons-cluster/tdengine/values.schema.json b/addons-cluster/tdengine/values.schema.json deleted file mode 100644 index 10d3b560c..000000000 --- a/addons-cluster/tdengine/values.schema.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "$schema": "http://json-schema.org/schema#", - "type": "object", - "properties": { - "version": { - "title": "Version", - "description": "Cluster version", - "type": "string", - "default": "tdengine-3.0.5.0" - }, - "mode": { - "title": "Mode", - "description": "Cluster topology mode.", - "type": "string", - "default": "raftGroup", - "enum": [ - "standalone", - "raftGroup" - ] - }, - "replicas": { - "title": "Replicas", - "description": "The number of replicas.", - "type": "integer", - "default": 1, - "minimum": 1, - "maximum": 5 - }, - "cpu": { - "title": "CPU", - "description": "CPU cores.", - "type": [ - "number", - "string" - ], - "default": 1, - "minimum": 0.5, - "maximum": 64, - "multipleOf": 0.5 - }, - "memory": { - "title": "Memory(Gi)", - "description": "Memory, the unit is Gi.", - "type": [ - "number", - "string" - ], - "default": 1, - "minimum": 0.5, - "maximum": 1000 - }, - "storage": { - "title": "Storage(Gi)", - "description": "Storage size, the unit is Gi.", - "type": [ - "number", - "string" - ], - "default": 20, - "minimum": 1, - "maximum": 10000 - }, - "storageClassName": { - "title": "Storage Class Name", - "description": "Storage class name of the data volume", - "type": "string" - } - } -} diff --git a/addons-cluster/tdengine/values.yaml b/addons-cluster/tdengine/values.yaml deleted file mode 100644 index cbe8b867e..000000000 --- a/addons-cluster/tdengine/values.yaml +++ /dev/null @@ -1,40 +0,0 @@ -# Default values for tdengine-cluster. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -## @param version MySQL cluster version -## -version: 3.3.6-9 - -## @param mode TDengine cluster topology mode: standalone(=1) or raftGroup(=3) -## -mode: raftGroup - -## @param replicas specify cluster replicas -## -replicas: 3 - -## @param cpu -## -cpu: 0.5 - -## @param memory, the unit is Gi -## -memory: 1 - -## @param requests.cpu if not set, use cpu -## @param requests.memory, if not set, use memory -## -requests: -# cpu: -# memory: - -## @param storage size, the unit is Gi -## -dataStorageSize: 100 -archStorageSize: 50 - -## customized values to override kblib chart's values -extra: - monitoringInterval: 60 - rbacEnabled: true diff --git a/addons/tdengine/.helmignore b/addons/tdengine/.helmignore deleted file mode 100644 index 0e8a0eb36..000000000 --- a/addons/tdengine/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/addons/tdengine/Chart.yaml b/addons/tdengine/Chart.yaml deleted file mode 100644 index 921885767..000000000 --- a/addons/tdengine/Chart.yaml +++ /dev/null @@ -1,56 +0,0 @@ -apiVersion: v2 - -name: tdengine - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.1.0-alpha.0 - -description: TDengine is an open source, high-performance, cloud native time-series database optimized for Internet of Things (IoT), Connected Cars, Industrial IoT and DevOps. - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -keywords: - - iot - - tsdb - - tdengine - - bigdata - - metrics - - monitoring - -home: https://github.com/taosdata/TDengine - -sources: - - https://github.com/taosdata/TDengine - -maintainers: - - name: leon-inf - url: https://github.com/apecloud/kubeblocks/ - -icon: "https://www.taosdata.com/images/taosdata-logo.png" - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -# It is recommended to use it with quotes. -appVersion: "3.0.5" - -annotations: - addon.kubeblocks.io/kubeblocks-version: ">=1.0.0" - addon.kubeblocks.io/model: "time-series" - addon.kubeblocks.io/provider: "community" - -dependencies: - - name: kblib - version: 0.1.0 - repository: file://../kblib - alias: extra \ No newline at end of file diff --git a/addons/tdengine/README.md b/addons/tdengine/README.md deleted file mode 100644 index 1e3909f1e..000000000 --- a/addons/tdengine/README.md +++ /dev/null @@ -1,287 +0,0 @@ -# TDengine - -TDengine™ is a next generation data historian purpose-built for Industry 4.0 and Industrial IoT. It enables real-time data ingestion, storage, analysis, and distribution of petabytes per day, generated by billions of sensors and data collectors. - -## Features In KubeBlocks - -### Lifecycle Management - -| Horizontal
scaling | Vertical
scaling | Expand
volume | Restart | Stop/Start | Configure | Expose | Switchover | -|------------------------|-----------------------|-------------------|-----------|------------|-----------|--------|------------| -| Yes (Scale-out) | Yes | Yes | Yes | Yes | No | Yes | N/A | - -### Versions - -| Versions | -|----------| -| 3.0.5.0 | - -## Prerequisites - -- Kubernetes cluster >= v1.21 -- `kubectl` installed, refer to [K8s Install Tools](https://kubernetes.io/docs/tasks/tools/) -- Helm, refer to [Installing Helm](https://helm.sh/docs/intro/install/) -- KubeBlocks installed and running, refer to [Install Kubeblocks](../docs/prerequisites.md) -- TDengine™ Addon Enabled, refer to [Install Addons](../docs/install-addon.md) -- Create K8s Namespace `demo`, to keep resources created in this tutorial isolated: - - ```bash - kubectl create ns demo - ``` - -## Examples - -### Create - -Create a tdengine cluster: - -```yaml -# cat examples/tdengine/cluster.yaml -apiVersion: apps.kubeblocks.io/v1 -kind: Cluster -metadata: - name: tdengine-cluster - namespace: demo -spec: - terminationPolicy: Delete - componentSpecs: - - name: tdengine - componentDef: tdengine - replicas: 3 - resources: - limits: - cpu: "2" - memory: "2Gi" - requests: - cpu: "1" - memory: "1Gi" - # Specifies a list of PersistentVolumeClaim templates that define the storage - # requirements for the Component. - volumeClaimTemplates: - # Refers to the name of a volumeMount defined in - # `componentDefinition.spec.runtime.containers[*].volumeMounts - - name: data - spec: - # The name of the StorageClass required by the claim. - # If not specified, the StorageClass annotated with - # `storageclass.kubernetes.io/is-default-class=true` will be used by default - storageClassName: "" - accessModes: - - ReadWriteOnce - resources: - requests: - # Set the storage size as needed - storage: 20Gi # Specifies a list of PersistentVolumeClaim templates that define the storage - -``` - -```bash -kubectl apply -f examples/tdengine/cluster.yaml -``` - -When the cluster status is `Running`, you can access the TDengine service by login to the pod and show the dnodes - -```bash -kubectl exec -i -t tdengine-cluster-tdengine-0 -- taos -s "show dnodes" -``` - -You will see there are 3 dnodes in the cluster as we defined in the cluster.yaml - -### Horizontal scaling - -#### Scale-out - -Horizontal scaling out by adding ONE more replica: - -```yaml -# cat examples/tdengine/scale-out.yaml -apiVersion: operations.kubeblocks.io/v1alpha1 -kind: OpsRequest -metadata: - name: tdengine-horizontalscaling - namespace: demo -spec: - # Specifies the name of the Cluster resource that this operation is targeting. - clusterName: tdengine-cluster - type: HorizontalScaling - # Lists HorizontalScaling objects, each specifying scaling requirements for a Component, including desired total replica counts, configurations for new instances, modifications for existing instances, and instance downscaling options - horizontalScaling: - # Specifies the name of the Component. - - componentName: tdengine - # Specifies the replica changes for scaling in components - scaleIn: - # Specifies the replica changes for the component. - # add one more replica to current component - replicaChanges: 1 - -``` - -```bash -kubectl apply -f examples/tdengine/scale-out.yaml -``` - -#### Scale-in - -> [!WARNING] -> This operation is not fully supported by TDEngine. -> Even though you can scale-in through API, it is not recommended to scale-in the cluster, as per documentation of TDEngine.[^1] - -#### Scale-in/out using Cluster API - -Alternatively, you can update the `replicas` field in the `spec.componentSpecs.replicas` section to your desired non-zero number. - -```yaml -# snippet of cluster.yaml -apiVersion: apps.kubeblocks.io/v1 -kind: Cluster -spec: - componentSpecs: - - name: tdengine - replicas: 1 # Set the number of replicas to your desired number -``` - -### Vertical scaling - -Vertical scaling up or down specified components requests and limits cpu or memory resource in the cluster - -```yaml -# cat examples/tdengine/verticalscale.yaml -apiVersion: operations.kubeblocks.io/v1alpha1 -kind: OpsRequest -metadata: - name: tdengine-verticalscaling - namespace: demo -spec: - # Specifies the name of the Cluster resource that this operation is targeting. - clusterName: tdengine-cluster - type: VerticalScaling - # Lists VerticalScaling objects, each specifying a component and its desired compute resources for vertical scaling. - verticalScaling: - - componentName: tdengine - # VerticalScaling refers to the process of adjusting the compute resources (e.g., CPU, memory) allocated to a Component. It defines the parameters required for the operation. - requests: - cpu: '1' - memory: 1Gi - limits: - cpu: '1' - memory: 1Gi - -``` - -```bash -kubectl apply -f examples/tdengine/verticalscale.yaml -``` - -### Expand volume - -Increase size of volume storage with the specified components in the cluster - -```yaml -# cat examples/tdengine/volumeexpand.yaml -apiVersion: operations.kubeblocks.io/v1alpha1 -kind: OpsRequest -metadata: - name: tdengine-volumeexpansion - namespace: demo -spec: - # Specifies the name of the Cluster resource that this operation is targeting. - clusterName: tdengine-cluster - type: VolumeExpansion - # Lists VolumeExpansion objects, each specifying a component and its corresponding volumeClaimTemplates that requires storage expansion. - volumeExpansion: - # Specifies the name of the Component. - - componentName: tdengine - # volumeClaimTemplates specifies the storage size and volumeClaimTemplate name. - volumeClaimTemplates: - - name: data - storage: 30Gi - -``` - -```bash -kubectl apply -f examples/tdengine/volumeexpand.yaml -``` - -### Restart - -Restart the specified components in the cluster - -```yaml -# cat examples/tdengine/restart.yaml -apiVersion: operations.kubeblocks.io/v1alpha1 -kind: OpsRequest -metadata: - name: tdengine-restart - namespace: demo -spec: - # Specifies the name of the Cluster resource that this operation is targeting. - clusterName: tdengine-cluster - type: Restart - # Lists Components to be restarted. ComponentOps specifies the Component to be operated on. - restart: - # Specifies the name of the Component. - - componentName: tdengine - -``` - -```bash -kubectl apply -f examples/tdengine/restart.yaml -``` - -### Stop - -Stop the cluster and release all the pods of the cluster, but the storage will be reserved - -```yaml -# cat examples/tdengine/stop.yaml -apiVersion: operations.kubeblocks.io/v1alpha1 -kind: OpsRequest -metadata: - name: tdengine-stop - namespace: demo -spec: - # Specifies the name of the Cluster resource that this operation is targeting. - clusterName: tdengine-cluster - type: Stop - -``` - -```bash -kubectl apply -f examples/tdengine/stop.yaml -``` - -### Start - -Start the stopped cluster - -```yaml -# cat examples/tdengine/start.yaml -apiVersion: operations.kubeblocks.io/v1alpha1 -kind: OpsRequest -metadata: - name: tdengine-start - namespace: demo -spec: - # Specifies the name of the Cluster resource that this operation is targeting. - clusterName: tdengine-cluster - type: Start - -``` - -```bash -kubectl apply -f examples/tdengine/start.yaml -``` - -### Delete - -If you want to delete the cluster and all its resource, you can modify the termination policy and then delete the cluster - -```bash -kubectl patch cluster -n demo tdengine-cluster -p '{"spec":{"terminationPolicy":"WipeOut"}}' --type="merge" - -kubectl delete cluster -n demo tdengine-cluster -``` - -## References - -[^1]: Deploy TDengine on K8s using Helm, diff --git a/addons/tdengine/configs/tdengine-taos-config-constraint.cue b/addons/tdengine/configs/tdengine-taos-config-constraint.cue deleted file mode 100644 index 0b1951dad..000000000 --- a/addons/tdengine/configs/tdengine-taos-config-constraint.cue +++ /dev/null @@ -1,1030 +0,0 @@ -//Copyright (C) 2022-2023 ApeCloud Co., Ltd -// -//This file is part of KubeBlocks project -// -//This program is free software: you can redistribute it and/or modify -//it under the terms of the GNU Affero General Public License as published by -//the Free Software Foundation, either version 3 of the License, or -//(at your option) any later version. -// -//This program is distributed in the hope that it will be useful -//but WITHOUT ANY WARRANTY; without even the implied warranty of -//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -//GNU Affero General Public License for more details. -// -//You should have received a copy of the GNU Affero General Public License -//along with this program. If not, see . - -#TaosParameter: { - - // taosd configuration schema in CUE format - // compressMsgSize: whether to compress RPC messages - // -1: no compression; 0: all messages; N > 0: only compress messages larger than N bytes - // dynamic modification: supported, effective after restart - // default value: -1 - // valid range: -1 - 100000000 - // supported since: v3.0.0.0 - compressMsgSize: int & >=-1 & <=100000000 | *-1 - - // shellActivityTimer: heartbeat interval (in seconds) from client to mnode - // dynamic modification: supported, immediate effect - // default value: 3 - // valid range: 1 - 120 - // supported since: v3.0.0.0 - shellActivityTimer: int & >=1 & <=120 | *3 - - // numOfRpcSessions: maximum number of RPC connections allowed - // dynamic modification: supported, effective after restart - // default value: 30000 - // valid range: 100 - 100000 - // supported since: v3.1.0.0 - numOfRpcSessions: int & >=100 & <=100000 | *30000 - - // numOfRpcThreads: number of threads for RPC send/receive - // dynamic modification: supported, effective after restart - // default value: half of CPU cores - // valid range: 1 - 50 - // supported since: v3.0.0.0 - numOfRpcThreads: int & >=1 & <=50 - - // numOfTaskQueueThreads: number of threads for processing RPC messages - // dynamic modification: supported, effective after restart - // default value: half of CPU cores - // valid range: 4 - 16 - // supported since: v3.0.0.0 - numOfTaskQueueThreads: int & >=4 & <=16 - - // rpcQueueMemoryAllowed: max memory allowed for pending RPC messages (bytes) - // dynamic modification: supported, immediate effect - // default value: 1/10 of total system memory - // valid range: 104857600 - INT64_MAX - // supported since: v3.0.0.0 - rpcQueueMemoryAllowed: int & >=104857600 & <=9223372036854775807 - - // resolveFQDNRetryTime: retry times when FQDN resolution fails - // dynamic modification: not supported - // default value: 100 - // valid range: 1 - 10240 - // removed since: v3.3.4.0 - resolveFQDNRetryTime: int & >=1 & <=10240 | *100 - - // timeToGetAvailableConn: max wait time (ms) to get an available connection - // dynamic modification: not supported - // default value: 500000 - // valid range: 20 - 1000000 - // removed since: v3.3.4.0 - timeToGetAvailableConn: int & >=20 & <=1000000 | *500000 - - // maxShellConns: maximum number of allowed connections - // dynamic modification: not supported - // default value: 50000 - // valid range: 10 - 50000000 - // removed since: v3.3.4.0 - maxShellConns: int & >=10 & <=50000000 | *50000 - - // maxRetryWaitTime: max timeout (ms) for reconnection attempts - // dynamic modification: supported, effective after restart - // default value: 10000 - // valid range: 3000 - 86400000 - // supported since: v3.3.4.0 - maxRetryWaitTime: int & >=3000 & <=86400000 | *10000 - - // shareConnLimit: number of requests a connection can share - // dynamic modification: supported, effective after restart - // default value: 10 (Linux/macOS), 1 (Windows) - // valid range: 1 - 512 - // supported since: v3.3.4.0 - shareConnLimit: int & >=1 & <=512 - - // readTimeout: minimum timeout (seconds) for a single request - // dynamic modification: supported, effective after restart - // default value: 900 - // valid range: 64 - 604800 - // supported since: v3.3.4.0 - readTimeout: int & >=64 & <=604800 | *900 - - // monitor: whether to collect and report monitoring data - // values: 0 (disabled), 1 (enabled) - // dynamic modification: supported, immediate effect - // default value: 0 - // valid range: 0 - 1 - // supported since: v3.0.0.0 - monitor: int & >=0 & <=1 | *0 - - // monitorFqdn: FQDN of the taosKeeper monitoring server - // dynamic modification: supported, effective after restart - // default value: none - // supported since: v3.0.0.0 - monitorFqdn?: string - - // monitorPort: port number listened by taosKeeper - // dynamic modification: supported, effective after restart - // default value: 6043 - // valid range: 1 - 65056 - // supported since: v3.0.0.0 - - // Monitoring related configurations - // monitorInterval: monitorInterval (in seconds) for recording system metrics (CPU/memory) - // dynamic modification: supported, immediate effect - // default value: 30 - // valid range: 1 - 200000 - // supported since: v3.0.0.0 - monitorInterval: int & >=1 & <=200000 | *30 - - // monitorMaxLogs: number of logs cached before uploading - // dynamic modification: supported, immediate effect - // default value: 100 - // valid range: 1 - 1000000 - // supported since: v3.0.0.0 - monitorMaxLogs: int & >=1 & <=1000000 | *100 - - // monitorComp: whether to compress monitoring logs during upload - // dynamic modification: supported, effective after restart - // default value: 0 - // valid range: 0 - 1 - // supported since: v3.0.0.0 - monitorComp: int & >=0 & <=1 | *0 - - // monitorLogProtocol: whether to print monitoring logs - // dynamic modification: supported, immediate effect - // default value: 0 - // valid range: 0 - 1 - // supported since: v3.3.0.0 - monitorLogProtocol: int & >=0 & <=1 | *0 - - // monitorForceV2: whether to use V2 protocol for uploading logs - // dynamic modification: supported, immediate effect - // default value: 1 - // valid range: 0 - 1 - // supported since: v3.3.0.0 - monitorForceV2: int & >=0 & <=1 | *1 - - // Telemetry related configurations - // telemetryReporting: whether to upload telemetry data - // dynamic modification: enterprise edition only, immediate effect - // default value: 1 - // valid range: 0 - 1 - // supported since: v3.0.0.0 - telemetryReporting: int & >=0 & <=1 | *1 - - // telemetryServer: address of the telemetry server - // dynamic modification: not supported - // default value: telemetry.taosdata.com - // supported since: v3.0.0.0 - telemetryServer: string | *"telemetry.taosdata.com" - - // telemetryPort: port of the telemetry server - // dynamic modification: not supported - // default value: 80 - // valid range: 1 - 65056 - // supported since: v3.0.0.0 - telemetryPort: int & >=1 & <=65056 | *80 - - // telemetryInterval: interval (seconds) for uploading telemetry data - // dynamic modification: supported, immediate effect - // default value: 86400 - // valid range: 1 - 200000 - // supported since: v3.0.0.0 - telemetryInterval: int & >=1 & <=200000 | *86400 - - // crashReporting: whether to upload crash reports using V2 protocol - // dynamic modification: supported, immediate effect - // default value: 1 - // valid range: 0 - 1 - // supported since: v3.1.0.0 - crashReporting: int & >=0 & <=1 | *1 - - // countAlwaysReturnValue: whether COUNT/HYPERLOGLOG returns value when input is empty or NULL - // 0: returns empty row; 1: no result for empty group/window if using INTERVAL or TSMA - // dynamic modification: supported, immediate effect - // default value: 1 - // valid range: 0 - 1 - // supported since: v3.0.0.0 - countAlwaysReturnValue: int & >=0 & <=1 | *1 - - // tagFilterCache: whether to cache tag filter results - // 0: disabled; 1: enabled - // dynamic modification: not supported - // default value: 0 - // valid range: 0 - 1 - // supported since: v3.1.0.0 - tagFilterCache: int & >=0 & <=1 | *0 - - // queryBufferSize: buffer size available for queries (in MB) - // -1: unlimited - // dynamic modification: supported, effective after restart - // default value: -1 - // valid range: -1 - 500000000000 - // note: reserved parameter, not yet used in current version - // supported since: v3.x.x.x - queryBufferSize: int & >=-1 & <=500000000000 | *-1 - - // queryRspPolicy: query response policy - // 0: normal mode; 1: fast response mode (server responds immediately upon receiving the request) - // dynamic modification: supported, immediate effect - // default value: 0 - // valid range: 0 - 1 - // supported since: v3.1.0.0 - queryRspPolicy: int & >=0 & <=1 | *0 - - // queryUseMemoryPool: whether to use memory pool for query memory management - // 0: disabled; 1: enabled (requires system memory >= 5GB and available >= 4GB) - // dynamic modification: not supported - // default value: 1 - // valid range: 0 - 1 - // supported since: v3.3.5.0 - queryUseMemoryPool: int & >=0 & <=1 | *1 - - // minReservedMemorySize: minimum reserved system memory when memory pool is enabled (in MB) - // dynamic modification: supported, immediate effect - // default value: 20% of physical memory - // valid range: 1024 - 1000000000 - // supported since: v3.3.5.0 - minReservedMemorySize: int & >=1024 & <=1000000000 | *"20% of physical memory" - - // singleQueryMaxMemorySize: max memory allowed per query on a dnode (in MB) - // 0: no limit - // dynamic modification: not supported - // default value: 0 - // valid range: 0 - 1000000000 - // supported since: v3.3.5.0 - singleQueryMaxMemorySize: int & >=0 & <=1000000000 | *0 - - // filterScalarMode: force scalar filtering mode - // 0: disabled; 1: enabled - // dynamic modification: not supported - // default value: 0 - // valid range: 0 - 1 - // supported since: v3.1.0.0 - filterScalarMode: int & >=0 & <=1 | *0 - - // queryNoFetchTimeoutSec: timeout (seconds) when application does not fetch data for long time - // internal parameter - // dynamic modification: enterprise edition only, immediate effect - // default value: 18000 - // valid range: 60 - 1000000000 - // supported since: v3.1.0.0 - queryNoFetchTimeoutSec: int & >=60 & <=1000000000 | *18000 - - // queryPlannerTrace: whether to output detailed query plan logs - // internal parameter - // dynamic modification: supported, immediate effect - // default value: 0 - // valid range: 0 - 1 - // supported since: v3.1.0.0 - queryPlannerTrace: int & >=0 & <=1 | *0 - - // queryNodeChunkSize: chunk size for query plan (in bytes) - // internal parameter - // dynamic modification: supported, immediate effect - // default value: 32768 (32KB) - // valid range: 1024 - 131072 (128KB) - // supported since: v3.1.0.0 - queryNodeChunkSize: int & >=1024 & <=131072 | *32768 - - // queryUseNodeAllocator: memory allocation method for query plan - // internal parameter - // dynamic modification: supported, immediate effect - // default value: 1 - // valid range: 0 - 1 - // supported since: v3.1.0.0 - queryUseNodeAllocator: int & >=0 & <=1 | *1 - - // queryMaxConcurrentTables: maximum number of tables that can be queried concurrently - // internal parameter - // dynamic modification: not supported - // default value: 200 - // valid range: INT64_MIN - INT64_MAX - // supported since: v3.1.0.0 - queryMaxConcurrentTables: int | *200 - - // queryRsmaTolerance: tolerance for RSMA query plans - // internal parameter - // dynamic modification: not supported - // default value: 1000 - // valid range: 0 - 900000 - // supported since: v3.1.0.0 - queryRsmaTolerance: int & >=0 & <=900000 | *1000 - - // enableQueryHb: whether to send heartbeat during query execution - // internal parameter - // dynamic modification: supported, immediate effect - // default value: 1 - // valid range: 0 - 1 - // supported since: v3.1.0.0 - enableQueryHb: int & >=0 & <=1 | *1 - - // pqSortMemThreshold: memory threshold for sorting operations (in MB) - // internal parameter - // dynamic modification: not supported - // default value: 16 - // valid range: 1 - 10240 - // supported since: v3.1.0.0 - pqSortMemThreshold: int & >=1 & <=10240 | *16 - - // timezone: timezone setting - // dynamic modification: not supported - // default value: system timezone - // supported since: v3.1.0.0 - timezone?: string - - // locale: system locale and encoding - // dynamic modification: not supported - // default value: system locale - // supported since: v3.1.0.0 - locale?: string - - // charset: character set encoding - // dynamic modification: not supported - // default value: system charset - // supported since: v3.1.0.0 - charset?: string - - // dataDir: directory where all data files are stored - // dynamic modification: not supported - // default value: /var/lib/taos - // supported since: v3.1.0.0 - dataDir: string | *"/var/lib/taos" - - // diskIDCheckEnabled: whether to check disk ID when restarting dnode - // 0: check; 1: do not check - // dynamic modification: not supported - // default value: 1 - // valid range: 0 - 1 - // supported since: v3.3.5.0 - diskIDCheckEnabled: int & >=0 & <=1 | *1 - - // tempDir: directory for temporary system files - // dynamic modification: not supported - // default value: /tmp - // supported since: v3.1.0.0 - tempDir: string | *"/tmp" - - // minimalDataDirGB: minimum space required in dataDir (in GB) - // dynamic modification: not supported - // default value: 2 - // valid range: 0.001 - 10000000 - // supported since: v3.1.0.0 - minimalDataDirGB: number & >=0.001 & <=10000000 | *2 - - // minimalTmpDirGB: minimum space required in tempDir (in GB) - // dynamic modification: not supported - // default value: 1 - // valid range: 0.001 - 10000000 - // supported since: v3.1.0.0 - minimalTmpDirGB: number & >=0.001 & <=10000000 | *1 - - // cacheLazyLoadThreshold: threshold for lazy loading cache - // internal parameter - // dynamic modification: enterprise edition only, immediate effect - // default value: 500 - // valid range: 0 - 100000 - // supported since: v3.1.0.0 - cacheLazyLoadThreshold: int & >=0 & <=100000 | *500 - - // supportVnodes: max number of vnodes supported by a dnode - // enterprise edition only - // dynamic modification: enterprise only, immediate effect - // default value: 2 * CPU cores + 5 - // valid range: 0 - 4096 - // supported since: v3.1.0.0 - supportVnodes: int & >=0 & <=4096 - - // numOfCommitThreads: maximum number of disk flush threads - // dynamic modification: supported, effective after restart - // default value: 4 - // valid range: 1 - 1024 - // supported since: v3.1.0.0 - numOfCommitThreads: int & >=1 & <=1024 | *4 - - // numOfCompactThreads: maximum number of compaction threads - // dynamic modification: supported, effective after restart - // default value: 2 - // valid range: 1 - 16 - // supported since: v3.1.0.0 - numOfCompactThreads: int & >=1 & <=16 | *2 - - // numOfMnodeReadThreads: read threads for mnode - // dynamic modification: supported, effective after restart - // default value: 1/4 of CPU cores (min 1, max 4) - // valid range: 0 - 1024 - // supported since: v3.1.0.0 - numOfMnodeReadThreads: int & >=0 & <=1024 - - // numOfVnodeQueryThreads: query threads for vnode - // dynamic modification: supported, effective after restart - // default value: 2 * CPU cores (min 16) - // valid range: 0 - 1024 - // supported since: v3.1.0.0 - numOfVnodeQueryThreads: int & >=0 & <=1024 - - // numOfVnodeFetchThreads: fetch threads for vnode - // dynamic modification: supported, effective after restart - // default value: 1/4 of CPU cores (min 4) - // valid range: 0 - 1024 - // supported since: v3.1.0.0 - numOfVnodeFetchThreads: int & >=0 & <=1024 - - // numOfVnodeRsmaThreads: rsma threads for vnode - // dynamic modification: supported, effective after restart - // default value: 1/4 of CPU cores (min 4) - // valid range: 0 - 1024 - // supported since: v3.1.0.0 - numOfVnodeRsmaThreads: int & >=0 & <=1024 - - // numOfQnodeQueryThreads: query threads for qnode - // dynamic modification: supported, effective after restart - // default value: 2 * CPU cores (min 16) - // valid range: 0 - 1024 - // supported since: v3.1.0.0 - numOfQnodeQueryThreads: int & >=0 & <=1024 - - // numOfSnodeSharedThreads: shared threads for snode - // dynamic modification: supported, effective after restart - // default value: 1/4 of CPU cores (min 2, max 4) - // valid range: 0 - 1024 - // supported since: v3.1.0.0 - numOfSnodeSharedThreads: int & >=0 & <=1024 - - // numOfSnodeUniqueThreads: unique threads for snode - // dynamic modification: supported, effective after restart - // default value: 1/4 of CPU cores (min 2, max 4) - // valid range: 0 - 1024 - // supported since: v3.1.0.0 - numOfSnodeUniqueThreads: int & >=0 & <=1024 - - // ratioOfVnodeStreamThreads: proportion of stream threads in vnode - // dynamic modification: supported, effective after restart - // default value: 0.5 - // valid range: 0.01 - 4 - // supported since: v3.1.0.0 - ratioOfVnodeStreamThreads: number & >=0.01 & <=4 | *0.5 - - // ttlUnit: unit of TTL in seconds - // dynamic modification: supported, immediate effect - // default value: 86400 - // valid range: 1 - 31572500 - // supported since: v3.1.0.0 - ttlUnit: int & >=1 & <=31572500 | *86400 - - // ttlPushInterval: interval to check expired data - // enterprise edition only - // dynamic modification: enterprise only, immediate effect - // default value: 10 - // valid range: 1 - 100000 - // supported since: v3.1.0.0 - ttlPushInterval: int & >=1 & <=100000 | *10 - - // ttlChangeOnWrite: whether write operations reset TTL timer - // dynamic modification: supported, immediate effect - // default value: 0 - // valid range: 0 - 1 - // supported since: v3.1.0.0 - ttlChangeOnWrite: int & >=0 & <=1 | *0 - - // ttlBatchDropNum: number of sub-tables dropped per batch - // enterprise edition only - // dynamic modification: enterprise only, immediate effect - // default value: 10000 - // valid range: 0 - 2147483647 - // supported since: v3.1.0.0 - ttlBatchDropNum: int & >=0 & <=2147483647 | *10000 - - // retentionSpeedLimitMB: speed limit for data migration between storage tiers - // dynamic modification: supported, immediate effect - // default value: 0 (unlimited) - // valid range: 0 - 1024 - // supported since: v3.1.0.0 - retentionSpeedLimitMB: int & >=0 & <=1024 | *0 - - // maxTsmaNum: max number of TSMA objects allowed in cluster - // dynamic modification: supported, immediate effect - // default value: 0 - // valid range: 0 - 3 - // supported since: v3.1.0.0 - maxTsmaNum: int & >=0 & <=3 | *0 - - // tmqMaxTopicNum: max number of topics allowed in TMQ - // enterprise edition only - // dynamic modification: enterprise only, immediate effect - // default value: 20 - // valid range: 1 - 10000 - // supported since: v3.1.0.0 - tmqMaxTopicNum: int & >=1 & <=10000 | *20 - - // tmqRowSize: max number of records per block in TMQ - // enterprise edition only - // dynamic modification: enterprise only, immediate effect - // default value: 4096 - // valid range: 1 - 1000000 - // supported since: v3.1.0.0 - tmqRowSize: int & >=1 & <=1000000 | *4096 - - - // syncLogBufferMemoryAllowed: max memory allowed for sync log buffer (bytes) - // enterprise edition only - // dynamic modification: enterprise only, immediate effect - // default value: 1/10 of server memory - // valid range: 104857600 - 9223372036854775807 - // supported since: v3.1.3.2 / v3.3.2.13 - syncLogBufferMemoryAllowed: int & >=104857600 & <=9223372036854775807 - - // syncElectInterval: internal parameter for sync module debugging - // dynamic modification: not supported - // supported since: v3.1.0.0 - syncElectInterval?: int - - // syncHeartbeatInterval: internal parameter for sync module debugging - // dynamic modification: not supported - // supported since: v3.1.0.0 - syncHeartbeatInterval?: int - - // syncHeartbeatTimeout: internal parameter for sync module debugging - // dynamic modification: not supported - // supported since: v3.1.0.0 - syncHeartbeatTimeout?: int - - // syncSnapReplMaxWaitN: internal parameter for sync module debugging - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - syncSnapReplMaxWaitN?: int - - // arbHeartBeatIntervalSec: internal parameter for sync module debugging - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - arbHeartBeatIntervalSec?: int - - // arbCheckSyncIntervalSec: internal parameter for sync module debugging - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - arbCheckSyncIntervalSec?: int - - // arbSetAssignedTimeoutSec: internal parameter for sync module debugging - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - arbSetAssignedTimeoutSec?: int - - // arbSetAssignedTimeoutSec: internal parameter for mnode module debugging - // duplicate key from above; assuming same field used in different context - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - arbSetAssignedTimeoutSec?: int - - // mndLogRetention: internal parameter for mnode module debugging - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - mndLogRetention?: int - - // skipGrant: internal parameter for authorization check - // dynamic modification: not supported - // supported since: v3.1.0.0 - skipGrant?: int - - // trimVDbIntervalSec: interval to delete expired data - // enterprise edition only - // dynamic modification: enterprise only, immediate effect - // supported since: v3.1.0.0 - trimVDbIntervalSec?: int - - // ttlFlushThreshold: frequency of TTL timer - // enterprise edition only - // dynamic modification [ ](c) - ttlFlushThreshold: int - - // compactPullupInterval: frequency of data compaction timer - // enterprise edition only - // dynamic modification: enterprise only, immediate effect - // supported since: v3.1.0.0 - compactPullupInterval?: int - - // walFsyncDataSizeLimit: threshold for WAL fsync - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - walFsyncDataSizeLimit?: int - - // transPullupInterval: retry interval for mnode transactions - // enterprise edition only - // dynamic modification: enterprise only, immediate effect - // supported since: v3.1.0.0 - transPullupInterval?: int - - // forceKillTrans: internal parameter for mnode transaction debugging - // dynamic modification: supported, immediate effect - // supported since: v3.3.7.0 - forceKillTrans?: int - - // mqRebalanceInterval: consumer rebalance interval - // enterprise edition only - // dynamic modification: enterprise only, immediate effect - // supported since: v3.1.0.0 - mqRebalanceInterval?: int - - // uptimeInterval: interval to record system uptime - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - uptimeInterval?: int - - // timeseriesThreshold: internal parameter for usage statistics - // enterprise edition only - // dynamic modification: enterprise only, immediate effect - // supported since: v3.1.0.0 - timeseriesThreshold?: int - - // enableStrongPassword: require strong password format - // dynamic modification: supported, effective after restart - // default value: 1 - // valid range: 0 - 1 - // supported since: v3.3.6.0 - enableStrongPassword: int & >=0 & <=1 | *1 - - // udf: enable/disable UDF service - // dynamic modification: supported, effective after restart - // default value: 0 - // valid range: 0 - 1 - // supported since: v3.1.0.0 - udf: int & >=0 & <=1 | *0 - - // udfdResFuncs: reserved internal parameter - // dynamic modification: supported, effective after restart - udfdResFuncs?: string - - // udfdLdLibPath: library path for UDF - // dynamic modification: supported, effective after restart - udfdLdLibPath?: string - - // disableStream: enable/disable stream computation - // enterprise edition only - // dynamic modification: enterprise only, effective after restart - // default value: 0 - // valid range: 0 - 1 - // supported since: v3.1.0.0 - disableStream: int & >=0 & <=1 | *0 - - // streamBufferSize: buffer size for window state in memory - // dynamic modification: supported, effective after restart - // default value: 128 * 1024 * 1024 bytes - // valid range: 0 - 9223372036854775807 - // supported since: v3.1.0.0 - streamBufferSize: int & >=0 & <=9223372036854775807 | *134217728 - - // checkpointInterval: checkpoint synchronization interval - // enterprise edition only - // dynamic modification: enterprise only, effective after restart - // supported since: v3.1.0.0 - checkpointInterval?: int - - // concurrentCheckpoint: enable concurrent checkpointing - // enterprise edition only - // dynamic modification: enterprise only, immediate effect - // supported since: v3.1.0.0 - concurrentCheckpoint?: int - - // maxStreamBackendCache: maximum backend cache size for stream - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - maxStreamBackendCache?: int - - // streamSinkDataRate: control write speed of stream results - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - streamSinkDataRate?: int - - // streamNotifyMessageSize: message size for event notification (KB) - // default value: 8192 - // valid range: 8 - 1048576 - // supported since: v3.3.6.0 - streamNotifyMessageSize: int & >=8 & <=1048576 | *8192 - - // streamNotifyFrameSize: frame size for event notifications (KB) - // default value: 256 - // valid range: 8 - 1048576 - // supported since: v3.3.6.0 - streamNotifyFrameSize: int & >=8 & <=1048576 | *256 - - // adapterFqdn: FQDN for taosAdapter service - // default value: localhost - // dynamic modification: not supported - // supported since: v3.3.6.0 - adapter: string | *"localhost" - - // adapterPort: port for taosAdapter service - // default value: 6041 - // valid range: 1 - 65056 - // dynamic modification: not supported - // supported since: v3.3.6.0 - adapterPort: int & >=1 & <=65056 | *6041 - - // adapterToken: base64 encoded {username}:{password} - // default value: cm9vdDp0YW9zZGF0YQ== - // dynamic modification: not supported - // supported since: v3.3.6.0 - adapterToken: string | *"cm9vdDp0YW9zZGF0YQ==" - - // logDir: directory where logs are written - // default value: /var/log/taos - // dynamic modification: not supported - // supported since: v3.1.0.0 - logDir: string | *"/var/log/taos" - - // minimalLogDirGB: minimum space required for log directory - // dynamic modification: not supported - // default value: 1 - // valid range: 0.001 - 10000000 - // supported since: v3.1.0.0 - minimalLogDirGB: number & >=0.001 & <=10000000 | *1 - - // numOfLogLines: max lines per log file - // enterprise edition only - // dynamic modification: enterprise only, immediate effect - // default value: 10,000,000 - // valid range: 1000 - 2000000000 - // supported since: v3.1.0.0 - numOfLogLines: int & >=1000 & <=2000000000 | *10000000 - - // asyncLog: logging mode (0: sync, 1: async) - // dynamic modification: supported, immediate effect - // default value: 1 - // valid range: 0 - 1 - // supported since: v3.1.0.0 - asyncLog: int & >=0 & <=1 | *1 - - // logKeepDays: maximum days to keep logs - // negative value means -logKeepDays days and behavior same as positive - // dynamic modification: enterprise only, immediate effect - // default value: 0 - // valid range: -365000 - 365000 - // supported since: v3.1.0.0 - logKeepDays: int & >=-365000 & <=365000 | *0 - - // slowLogThreshold: threshold for slow queries (seconds) - // dynamic modification: supported, immediate effect - // default value: 3 - // valid range: 1 - 2147483647 - // supported since: v3.3.0.0 - slowLogThreshold: int & >=1 & <=2147483647 | *3 - - // slowLogMaxLen: max length of slow query log entry - // dynamic modification: supported, immediate effect - // default value: 4096 - // valid range: 1 - 16384 - // supported since: v3.3.0.0 - slowLogMaxLen: int & >=1 & <=16384 | *4096 - - // slowLogScope: types of queries to log (ALL/QUERY/INSERT/OTHERS/NONE) - // dynamic modification: supported, immediate effect - // default value: QUERY - // supported since: v3.3.0.0 - slowLogScope: "ALL" | "QUERY" | "INSERT" | "OTHERS" | "NONE" | *"QUERY" - - // slowLogExceptDb: database name excluded from slow query logging - // dynamic modification: supported, immediate effect - // supported since: v3.3.0.0 - slowLogExceptDb?: string - - // debugFlag: global log level switch - // values: 131(ERROR/WARN), 135(DEBUG), 143(TRACE) - // dynamic modification: supported, immediate effect - // default value: 131 or 135 (depends on module) - // supported since: v3.1.0.0 - debugFlag: int & (131 | 135 | 143) | *(131 | 135) - - // tmrDebugFlag: timer module log level - // supported since: v3.1.0.0 - tmrDebugFlag: int & (131 | 135 | 143) | *131 - - // uDebugFlag: common utility module log level - // supported since: v3.1.0.0 - uDebugFlag: int & (131 | 135 | 143) | *131 - - // rpcDebugFlag: RPC module log level - // supported since: v3.1.0.0 - rpcDebugFlag: int & (131 | 135 | 143) | *131 - - // qDebugFlag: query module log level - // supported since: v3.1.0.0 - qDebugFlag: int & (131 | 135 | 143) | *131 - - // dDebugFlag: dnode module log level - // supported since: v3.1.0.0 - dDebugFlag: int & (131 | 135 | 143) | *131 - - // vDebugFlag: vnode module log level - // supported since: v3.1.0.0 - vDebugFlag: int & (131 | 135 | 143) | *131 - - // mDebugFlag: mnode module log level - // supported since: v3.1.0.0 - mDebugFlag: int & (131 | 135 | 143) | *131 - - // azDebugFlag: S3/AZ module log level - // supported since: v3.3.4.3 - azDebugFlag: int & (131 | 135 | 143) | *131 - - // sDebugFlag: sync module log level - // supported since: v3.1.0.0 - sDebugFlag: int & (131 | 135 | 143) | *131 - - // tsdbDebugFlag: tsdb module log level - // supported since: v3.1.0.0 - tsdbDebugFlag: int & (131 | 135 | 143) | *131 - - // tqDebugFlag: tq module log level - // supported since: v3.1.0.0 - tqDebugFlag: int & (131 | 135 | 143) | *131 - - // fsDebugFlag: filesystem module log level - // supported since: v3.1.0.0 - fsDebugFlag: int & (131 | 135 | 143) | *131 - - // udfDebugFlag: UDF module log level - // supported since: v3.1.0.0 - udfDebugFlag: int & (131 | 135 | 143) | *131 - - // smaDebugFlag: SMA module log level - // supported since: v3.1.0.0 - smaDebugFlag: int & (131 | 135 | 143) | *131 - - // idxDebugFlag: index module log level - // supported since: v3.1.0.0 - idxDebugFlag: int & (131 | 135 | 143) | *131 - - // tdbDebugFlag: TDB module log level - // supported since: v3.1.0.0 - tdbDebugFlag: int & (131 | 135 | 143) | *131 - - // metaDebugFlag: metadata module log level - // supported since: v3.1.0.0 - metaDebugFlag: int & (131 | 135 | 143) | *131 - - // stDebugFlag: stream module log level - // supported since: v3.1.0.0 - stDebugFlag: int & (131 | 135 | 143) | *131 - - // sndDebugFlag: snode module log level - // supported since: v3.1.0.0 - sndDebugFlag: int & (131 | 135 | 143) | *131 - - // enableCoreFile: whether to generate core file on crash - // dynamic modification: supported, immediate effect - // default value: 1 - // valid range: 0 - 1 - // supported since: v3.1.0.0 - enableCoreFile: int & >=0 & <=1 | *1 - - // configDir: directory of configuration files - // dynamic modification: not supported - // supported since: v3.1.0.0 - configDir?: string - - // forceReadConfig: use config from file or persisted values - // 0: use persisted config; 1: use config file - // dynamic modification: not supported - // default value: 0 - // valid range: 0 - 1 - // supported since: v3.3.5.0 - forceReadConfig?: int & >=0 & <=1 | *0 - - // scriptDir: directory for test scripts - // dynamic modification: not supported - // supported since: v3.1.0.0 - scriptDir?: string - - // assert: enable/disable assertion checking - // dynamic modification: not supported - // default value: 0 - // valid range: 0 - 1 - // supported since: v3.1.0.0 - assert?: int & >=0 & <=1 | *0 - - // randErrorChance: chance of random failure (for testing) - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - randErrorChance?: int - - // randErrorDivisor: divisor for random failure (for testing) - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - randErrorDivisor?: int - - // randErrorScope: scope of random failure injection (for testing) - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - randErrorScope?: int - - // safetyCheckLevel: internal parameter for safety checks - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - safetyCheckLevel?: int - - // experimental: enable experimental features - // dynamic modification: supported, immediate effect - // supported since: v3.1.0.0 - experimental?: int - - // simdEnable: enable SIMD acceleration - // dynamic modification: not supported - // supported since: v3.3.4.3 - simdEnable?: int & >=0 & <=1 - - // AVX512Enable: enable AVX512 acceleration - // dynamic modification: not supported - // supported since: v3.3.4.3 - AVX512Enable?: int & >=0 & <=1 - - // rsyncPort: port used for stream computing debugging - // dynamic modification: not supported - // supported since: v3.1.0.0 - rsyncPort?: int - - // snodeAddress: address for stream computing debugging - // dynamic modification: supported, effective after restart - // supported since: v3.1.0.0 - snodeAddress?: string - - // checkpointBackupDir: directory for snode recovery data - // dynamic modification: supported, effective after restart - // supported since: v3.1.0.0 - checkpointBackupDir?: string - - // enableAuditDelete: enable audit log for delete operations - // dynamic modification: not supported - // supported since: v3.1.0.0 - enableAuditDelete?: int & >=0 & <=1 - - // slowLogThresholdTest: threshold for slow log testing - // dynamic modification: not supported - // supported since: v3.1.0.0 - slowLogThresholdTest?: int - - // bypassFlag: control write bypass behavior - // values: - // 0: normal write - // 1: return before sending RPC - // 2: return after receiving RPC - // 4: return before writing to cache - // 8: return before persisting to disk - // dynamic modification: supported, immediate effect - // supported since: v3.3.4.5 - bypassFlag: int & (0 | 1 | 2 | 4 | 8) | *0 - - - // fPrecision: float compression precision threshold - // values smaller than this will have their mantissa truncated - // dynamic modification: supported, immediate effect - // default value: 0.00000001 - // valid range: 0.00000001 - 0.1 - // supported since: v3.1.0.0 - fPrecision: number & >=0.00000001 & <=0.1 | *0.00000001 - - // dPrecision: double compression precision threshold - // values smaller than this will have their mantissa truncated - // dynamic modification: supported, immediate effect - // default value: 0.0000000000000001 - // valid range: 0.0000000000000001 - 0.1 - // supported since: v3.1.0.0 - dPrecision: number & >=0.0000000000000001 & <=0.1 | *0.0000000000000001 - - // lossyColumn: enable TSZ lossy compression for float/double/none - // valid values: "float", "double", "none" - // default value: "none" - // dynamic modification: not supported - // supported since: v3.1.0.0 - // deprecated since: v3.3.0.0 - lossyColumn: "float" | "double" | "none" | *"none" - - // ifAdtFse: use FSE instead of HUFFMAN in TSZ lossy compression - // 0: off, 1: on - // dynamic modification: supported, effective after restart - // default value: 0 - // valid range: 0 - 1 - // supported since: v3.1.0.0 - // deprecated since: v3.3.0.0 - ifAdtFse: int & >=0 & <=1 | *0 - - // enableIpv6: enable IPv6 communication between nodes - // dynamic modification: not supported - // supported since: v3.3.7.0 - enableIpv6?: int & >=0 & <=1 - - // maxRange: internal parameter for lossy compression - // dynamic modification: supported, effective after restart - // supported since: v3.1.0.0 - // deprecated since: v3.3.0.0 - maxRange?: int - - // curRange: internal parameter for lossy compression - // dynamic modification: supported, effective after restart - // supported since: v3.1.0.0 - // deprecated since: v3.3.0.0 - curRange?: int - - // compressor: internal parameter for lossy compression - // dynamic modification: supported, effective after restart - // supported since: v3.1.0.0 - // deprecated since: v3.3.0.0 - compressor?: int -} - -configuration: #TaosParameter & { - -} diff --git a/addons/tdengine/configs/tdengine-taos-config-effect-scope.yaml b/addons/tdengine/configs/tdengine-taos-config-effect-scope.yaml deleted file mode 100644 index 3bf9e83fd..000000000 --- a/addons/tdengine/configs/tdengine-taos-config-effect-scope.yaml +++ /dev/null @@ -1,169 +0,0 @@ -## staticParameters, list of StaticParameter, modifications of them trigger a process restart. -## dynamicParameters, list of DynamicParameter, modifications of them trigger a config dynamic reload without process restart. -## staticParameters and dynamicParameters determine the behavior of parameter changes: -## if any of the modified parameters is in the staticParameters list, this operation will trigger a process restart. -## if all the changed parameters are in the dynamicParameters list, this change executes reload without process restart. -## if the above two conditions are not met, by default, parameter change operation follow the rule for using staticParameters. -staticParameters: - - timeToGetAvailableConn - - maxShellConns - - telemetryServer - - telemetryPort - - tagFilterCache - - queryUseMemoryPool - - singleQueryMaxMemorySize - - filterScalarMode - - queryNoFetchTimeoutSec - - queryMaxConcurrentTables - - queryRsmaTolerance - - pqSortMemThreshold - - timezone - - locale - - charset - - diskIDCheckEnabled - - tempDir - - minimalDataDirGB - - minimalTmpDirGB - - minDiskFreeSize - - cacheLazyLoadThreshold - - supportVnodes - - ttlPushInterval - - ttlBatchDropNum - - tmqMaxTopicNum - - tmqRowSize - - syncLogBufferMemoryAllowed - - syncElectInterval - - syncHeartbeatInterval - - syncHeartbeatTimeout - - skipGrant - - trimVDbIntervalSec - - ttlFlushThreshold - - compactPullupInterval - - transPullupInterval - - mqRebalanceInterval - - timeseriesThreshold - - disableStream - - streamAggCnt - - checkpointInterval - - concurrentCheckpoint - - streamNotifyMessageSize - - streamNotifyFrameSize - - adapterToken - - minimalLogDirGB - - numOfLogLines - - logKeepDays - - assert - - simdEnable - - AVX512Enable - - rsyncPort - - snodeAddress - - slowLogThresholdTest - - lossyColumn - - enableIpv6 - - compressor - -dynamicParameters: - - queryBufferSize - - numOfCommitThreads - - numOfCompactThreads - - numOfMnodeReadThreads - - numOfVnodeQueryThreads - - numOfVnodeFetchThreads - - numOfVnodeRsmaThreads - - numOfQnodeQueryThreads - - numOfSnodeSharedThreads - - numOfSnodeUniqueThreads - - ratioOfVnodeStreamThreads - - udf - - udfdResFuncs - - udfdLdLibPath - - enableStrongPassword - - streamBufferSize - - maxStreamBackendCache - - snodeAddress - - checkpointBackupDir - - bypassFlag - - ifAdtFse - - maxRange - - curRange - - monitorComp - - readTimeout - - compressMsgSize - - numOfRpcThreads - - numOfTaskQueueThreads - - numOfRpcSessions - - shellActivityTimer - - rpcQueueMemoryAllowed - - shareConnLimit - - maxRetryWaitTime - - monitor - - monitorInterval - - monitorMaxLogs - - monitorLogProtocol - - monitorForceV2 - - telemetryReporting - - telemetryInterval - - crashReporting - - countAlwaysReturnValue - - queryRspPolicy - - queryPlannerTrace - - minReservedMemorySize - - queryNodeChunkSize - - queryUseNodeAllocator - - enableQueryHb - - ttlUnit - - ttlChangeOnWrite - - retentionSpeedLimitMB - - maxTsmaNum - - syncSnapReplMaxWaitN - - arbHeartBeatIntervalSec - - arbCheckSyncIntervalSec - - arbSetAssignedTimeoutSec - - mndLogRetention - - walFsyncDataSizeLimit - - forceKillTrans - - uptimeInterval - - streamSinkDataRate - - asyncLog - - slowLogThreshold - - slowLogMaxLen - - slowLogScope - - slowLogExceptDb - - debugFlag - - tmrDebugFlag - - uDebugFlag - - rpcDebugFlag - - qDebugFlag - - dDebugFlag - - vDebugFlag - - mDebugFlag - - azDebugFlag - - sDebugFlag - - tsdbDebugFlag - - tqDebugFlag - - fsDebugFlag - - udfDebugFlag - - smaDebugFlag - - idxDebugFlag - - tdbDebugFlag - - metaDebugFlag - - stDebugFlag - - sndDebugFlag - - enableCoreFile - - randErrorChance - - randErrorDivisor - - randErrorScope - - safetyCheckLevel - - experimental - - fPrecision - - dPrecision - - -immutableParameters: - - firstEp - - secondEp - - fqdn - - serverPort - - monitorPort - - monitorFqdn - - dataDir \ No newline at end of file diff --git a/addons/tdengine/configs/tdengine-taos-config.tpl b/addons/tdengine/configs/tdengine-taos-config.tpl deleted file mode 100644 index b378ef9e9..000000000 --- a/addons/tdengine/configs/tdengine-taos-config.tpl +++ /dev/null @@ -1,189 +0,0 @@ -######################################################## -# # -# Configuration # -# # -######################################################## - -######### 0. Client only configurations ############# - -# The interval for CLI to send heartbeat to mnode -shellActivityTimer 3 - -numOfRpcSessions 30000 - - -############### 1. Cluster End point ############################ - -# The end point of the first dnode in the cluster to be connected to when this dnode or the CLI utility is started -# firstEp hostname:6030 - -# The end point of the second dnode to be connected to if the firstEp is not available -# secondEp - - -############### 2. Configuration Parameters of current dnode ##### - -# The FQDN of the host on which this dnode will be started. It can be IP address -# fqdn hostname - -# The port for external access after this dnode is started -# serverPort 6030 - -# The maximum number of connections a dnode can accept -# maxShellConns 5000 - -# The directory for writing log files, if you are using Windows platform please change to Windows path -logDir /var/log/taos - -# All data files are stored in this directory, if you are using Windows platform please change to Windows path -dataDir /var/lib/taos - -# temporary file's directory, if you are using Windows platform please change to Windows path -# tempDir /tmp/ - -# Switch for allowing to collect and report service usage information -# telemetryReporting 1 - -# Switch for allowing to collect and report crash information -# crashReporting 1 - -# The maximum number of vnodes supported by this dnode -# supportVnodes 0 - -# The interval of this dnode reporting status to mnode, [1..10] seconds -# statusInterval 1 - -# The minimum sliding window time, milli-second -# minSlidingTime 10 - -# The minimum time window, milli-second -# minIntervalTime 10 - -# The maximum allowed query buffer size in MB during query processing for each data node -# -1 no limit (default) -# 0 no query allowed, queries are disabled -# queryBufferSize -1 - -# The compressed rpc message, option: -# -1 (no compression) -# 0 (all message compressed), -# > 0 (rpc message body which larger than this value will be compressed) -compressMsgSize -1 - -# query retrieved column data compression option: -# -1 (no compression) -# 0 (all retrieved column data compressed), -# > 0 (any retrieved column size greater than this value all data will be compressed.) -# compressColData -1 - -# system time zone -# timezone UTC-8 - -# system time zone (for windows 10) -# timezone Asia/Shanghai (CST, +0800) - -# system locale -# locale en_US.UTF-8 - -# system charset -# charset UTF-8 - -# stop writing logs when the disk size of the log folder is less than this value -# minimalLogDirGB 1.0 - -# stop writing temporary files when the disk size of the tmp folder is less than this value -# minimalTmpDirGB 1.0 - -# if free disk space is less than this value, this dnode will fail to start -# minimalDataDirGB 2.0 - -# enable/disable system monitor -monitor 1 -monitorFqdn localhost - -# The following parameter is used to limit the maximum number of lines in log files. -# max number of lines per log filters -# numOfLogLines 10000000 - -# write log in async way: 1 - async, 0 - sync -# asyncLog 1 - -# time period of keeping log files, in days -# logKeepDays 0 - - -############ 3. Debug Flag and levels ############################################# - -# The following parameters are used for debug purpose only by this dnode. -# debugFlag is a 8 bits mask: FILE-SCREEN-UNUSED-HeartBeat-DUMP-TRACE_WARN-ERROR -# Available debug levels are: -# 131: output warning and error -# 135: output debug, warning and error -# 143: output trace, debug, warning and error to log -# 199: output debug, warning and error to both screen and file -# 207: output trace, debug, warning and error to both screen and file - -# debug flag for all log type, take effect when non-zero value -# debugFlag 0 - -# debug flag for timer -# tmrDebugFlag 131 - -# debug flag for util -# uDebugFlag 131 - -# debug flag for rpc -# rpcDebugFlag 131 - -# debug flag for jni -# jniDebugFlag 131 - -# debug flag for query -# qDebugFlag 131 - -# debug flag for client driver -# cDebugFlag 131 - -# debug flag for dnode messages -# dDebugFlag 135 - -# debug flag for vnode -# vDebugFlag 131 - -# debug flag for meta management messages -# mDebugFlag 135 - -# debug flag for wal -# wDebugFlag 135 - -# debug flag for sync module -# sDebugFlag 135 - -# debug flag for tsdb -# tsdbDebugFlag 131 - -# debug flag for tq -# tqDebugFlag 131 - -# debug flag for fs -# fsDebugFlag 131 - -# debug flag for udf -# udfDebugFlag 131 - -# debug flag for sma -# smaDebugFlag 131 - -# debug flag for index -# idxDebugFlag 131 - -# debug flag for tdb -# tdbDebugFlag 131 - -# debug flag for meta -# metaDebugFlag 131 - -# generate core file when service crash -# enableCoreFile 1 - -forceReadConfig 1 \ No newline at end of file diff --git a/addons/tdengine/configs/tdengine-taosadapter-config.tpl b/addons/tdengine/configs/tdengine-taosadapter-config.tpl deleted file mode 100644 index 8beed842f..000000000 --- a/addons/tdengine/configs/tdengine-taosadapter-config.tpl +++ /dev/null @@ -1,304 +0,0 @@ - -# Enable pprof debug mode. If set to true, pprof debugging is enabled. -debug = false - -# The directory where TDengine's configuration file (taos.cfg) is located. -taosConfigDir = "" - -# The port on which the server listens. -port = 6041 - -# When the server returns an error, use a non-200 HTTP status code if set to true. -httpCodeServerError = false - -# Automatically create the database when writing data with the schemaless feature if set to true. -smlAutoCreateDB = false - -# Instance ID of the taosAdapter. -instanceId = 32 - -# The maximum number of concurrent calls allowed for the C synchronized method.0 means use CPU core count. -#maxSyncConcurrentLimit = 0 - -# The maximum number of concurrent calls allowed for the C asynchronous method. 0 means use CPU core count. -#maxAsyncConcurrentLimit = 0 - -[cors] -# If set to true, allows cross-origin requests from any origin (CORS). -allowAllOrigins = true - -[pool] -# The maximum number of connections to the server. If set to 0, use cpu count * 2. -# maxConnect = 0 - -# The maximum number of idle connections to the server. Should match maxConnect. -# maxIdle = 0 - -# The maximum number of connections waiting to be established. 0 means no limit. -maxWait = 0 - -# Maximum time to wait for a connection. 0 means no timeout. -waitTimeout = 60 - -[ssl] -# Enable SSL. Applicable for the Enterprise Edition. -enable = false -certFile = "" -keyFile = "" - -[log] -# The directory where log files are stored. -# path = "/var/log/taos" - -# The log level. Options are: trace, debug, info, warning, error. -level = "info" - -# Number of log file rotations before deletion. -rotationCount = 30 - -# The number of days to retain log files. -keepDays = 15 - -# The maximum size of a log file before rotation. -rotationSize = "1GB" - -# If set to true, log files will be compressed. -compress = false - -# Minimum disk space to reserve. Log files will not be written if disk space falls below this limit. -reservedDiskSize = "2GB" - -# Enable logging of HTTP SQL queries. -enableRecordHttpSql = false - -# Number of HTTP SQL log rotations before deletion. -sqlRotationCount = 2 - -# Time interval for rotating HTTP SQL logs. -sqlRotationTime = "24h" - -# Maximum size of HTTP SQL log files before rotation. -sqlRotationSize = "1GB" - -[monitor] -# If set to true, disables monitoring. -disable = true - -# Interval for collecting metrics. -collectDuration = "3s" - -# Indicates if running inside a Docker container. -incgroup = false - -# When memory usage reaches this percentage, query execution will be paused. -pauseQueryMemoryThreshold = 70 - -# When memory usage reaches this percentage, both queries and inserts will be paused. -pauseAllMemoryThreshold = 80 - -# The identity of the current instance. If empty, it defaults to 'hostname:port'. -identity = "" - -[uploadKeeper] -# Enable uploading of metrics to TaosKeeper. -enable = true - -# URL of the TaosKeeper service to which metrics will be uploaded. -url = "http://127.0.0.1:6043/adapter_report" - -# Interval for uploading metrics. -interval = "15s" - -# Timeout for uploading metrics. -timeout = "5s" - -# Number of retries when uploading metrics fails. -retryTimes = 3 - -# Interval between retries for uploading metrics. -retryInterval = "5s" - -[opentsdb] -# Enable the OpenTSDB HTTP plugin. -enable = true - -[influxdb] -# Enable the InfluxDB plugin. -enable = true - -[statsd] -# Enable the StatsD plugin. -enable = false - -# The port on which the StatsD plugin listens. -port = 6044 - -# The database name used by the StatsD plugin. -db = "statsd" - -# The username used to connect to the TDengine database. -user = "root" - -# The password used to connect to the TDengine database. -password = "taosdata" - -# The number of worker threads for processing StatsD data. -worker = 10 - -# Interval for gathering StatsD metrics. -gatherInterval = "5s" - -# The network protocol used by StatsD (e.g., udp4, tcp). -protocol = "udp4" - -# Maximum number of TCP connections allowed for StatsD. -maxTCPConnections = 250 - -# If set to true, enables TCP keep-alive for StatsD connections. -tcpKeepAlive = false - -# Maximum number of pending messages StatsD allows. -allowPendingMessages = 50000 - -# If set to true, deletes the counter cache after gathering metrics. -deleteCounters = true - -# If set to true, deletes the gauge cache after gathering metrics. -deleteGauges = true - -# If set to true, deletes the set cache after gathering metrics. -deleteSets = true - -# If set to true, deletes the timing cache after gathering metrics. -deleteTimings = true - -[collectd] -# Enable the Collectd plugin. -enable = false - -# The port on which the Collectd plugin listens. -port = 6045 - -# The database name used by the Collectd plugin. -db = "collectd" - -# The username used to connect to the TDengine database. -user = "root" - -# The password used to connect to the TDengine database. -password = "taosdata" - -# Number of worker threads for processing Collectd data. -worker = 10 - -[opentsdb_telnet] -# Enable the OpenTSDB Telnet plugin. -enable = false - -# Maximum number of TCP connections allowed for the OpenTSDB Telnet plugin. -maxTCPConnections = 250 - -# If set to true, enables TCP keep-alive for OpenTSDB Telnet connections. -tcpKeepAlive = false - -# List of databases to which OpenTSDB Telnet plugin writes data. -dbs = ["opentsdb_telnet", "collectd", "icinga2", "tcollector"] - -# The ports on which the OpenTSDB Telnet plugin listens, corresponding to each database. -ports = [6046, 6047, 6048, 6049] - -# The username used to connect to the TDengine database for OpenTSDB Telnet. -user = "root" - -# The password used to connect to the TDengine database for OpenTSDB Telnet. -password = "taosdata" - -# Batch size for processing OpenTSDB Telnet data. -batchSize = 1 - -# Interval between flushing data to the database. 0 means no interval. -flushInterval = "0s" - -[node_exporter] -# Enable the Node Exporter plugin. -enable = false - -# The database name used by the Node Exporter plugin. -db = "node_exporter" - -# The username used to connect to the TDengine database. -user = "root" - -# The password used to connect to the TDengine database. -password = "taosdata" - -# List of URLs to gather Node Exporter metrics from. -urls = ["http://localhost:9100"] - -# Timeout for waiting for a response from the Node Exporter plugin. -responseTimeout = "5s" - -# Username for HTTP authentication, if applicable. -httpUsername = "" - -# Password for HTTP authentication, if applicable. -httpPassword = "" - -# Bearer token for HTTP requests, if applicable. -httpBearerTokenString = "" - -# Path to the CA certificate file for SSL validation. -caCertFile = "" - -# Path to the client certificate file for SSL validation. -certFile = "" - -# Path to the client key file for SSL validation. -keyFile = "" - -# If set to true, skips SSL certificate verification. -insecureSkipVerify = true - -# Interval for gathering Node Exporter metrics. -gatherDuration = "5s" - -[prometheus] -# Enable the Prometheus plugin. -enable = true - -# OpenMetrics Configuration -[open_metrics] -enable = false # Enable OpenMetrics data collection - -## TDengine connection credentials -user = "root" # TDengine username for OpenMetrics connection -password = "taosdata" # TDengine password for OpenMetrics connection - -## Database configuration -dbs = ["open_metrics"] # Target database names for OpenMetrics data - -## Endpoint configuration -urls = ["http://localhost:9100"] # OpenMetrics endpoints to scrape - -## Timeout settings -responseTimeoutSeconds = [5] # HTTP response timeout in seconds for OpenMetrics scraping - -## Authentication methods -httpUsernames = [] # Basic auth usernames for protected OpenMetrics endpoints -httpPasswords = [] # Basic auth passwords for protected OpenMetrics endpoints -httpBearerTokenStrings = [] # Bearer tokens for OpenMetrics endpoint authentication - -## TLS configuration -caCertFiles = [] # Paths to CA certificate files for TLS verification -certFiles = [] # Paths to client certificate files for mTLS -keyFiles = [] # Paths to private key files for mTLS -insecureSkipVerify = true # Skip TLS certificate verification (insecure) - -## Collection parameters -gatherDurationSeconds = [5] # Interval in seconds between OpenMetrics scrapes - -## Data retention -ttl = [] # Time-to-live for OpenMetrics data (0=no expiration) - -## Timestamp handling -ignoreTimestamp = false # Use server timestamp instead of metrics timestamps \ No newline at end of file diff --git a/addons/tdengine/configs/tdengine-taoskeeper-config.tpl b/addons/tdengine/configs/tdengine-taoskeeper-config.tpl deleted file mode 100644 index 94869d11c..000000000 --- a/addons/tdengine/configs/tdengine-taoskeeper-config.tpl +++ /dev/null @@ -1,58 +0,0 @@ - -# The ID of the currently running taoskeeper instance, default is 64. -instanceId = 64 - -# Listening host, supports IPv4/Ipv6, default is "" -host = "" -# Listening port, default is 6043. -port = 6043 - -# Go pool size -gopoolsize = 50000 - -# Interval for metrics -RotationInterval = "15s" - -[tdengine] -host = "127.0.0.1" -port = 6041 -username = "root" -password = "taosdata" -usessl = false - -[metrics] -# Metrics prefix in metrics names. -prefix = "taos" - -# Export some tables that are not super table. -tables = [] - -# Database for storing metrics data. -[metrics.database] -name = "log" - -# Database options for db storing metrics data. -[metrics.database.options] -vgroups = 1 -buffer = 64 -keep = 30 -cachemodel = "both" - -[environment] -# Whether running in cgroup. -incgroup = false - -[log] -# The directory where log files are stored. -# path = "/var/log/taos" -level = "info" -# Number of log file rotations before deletion. -rotationCount = 10 -# The number of days to retain log files. -keepDays = 30 -# The maximum size of a log file before rotation. -rotationSize = "1GB" -# If set to true, log files will be compressed. -compress = false -# Minimum disk space to reserve. Log files will not be written if disk space falls below this limit. -reservedDiskSize = "30GB" \ No newline at end of file diff --git a/addons/tdengine/dashboards/tdengine.json b/addons/tdengine/dashboards/tdengine.json deleted file mode 100644 index eba3b053d..000000000 --- a/addons/tdengine/dashboards/tdengine.json +++ /dev/null @@ -1,6903 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] - }, - "description": "Metrics display for TDengine database for 3.x", - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 48, - "links": [], - "panels": [ - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 57, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 10, - "x": 0, - "y": 1 - }, - "id": 73, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "last" - ], - "fields": "/.*/", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 14 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "exemplar": true, - "expr": "taos_cluster_info_first_ep{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}", - "format": "table", - "formatType": "Time series", - "instant": false, - "interval": "", - "legendFormat": "", - "queryType": "SQL", - "refId": "A", - "target": "select metric", - "type": "timeserie" - } - ], - "title": "First EP", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "value" - ] - } - } - } - ], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 10, - "y": 1 - }, - "id": 74, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/.*/", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "exemplar": true, - "expr": "taos_cluster_info_version{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}", - "format": "table", - "formatType": "Time series", - "interval": "", - "legendFormat": "", - "queryType": "SQL", - "refId": "A", - "target": "select metric", - "type": "timeserie" - } - ], - "title": "Version", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "value" - ] - } - } - } - ], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "d" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 5, - "x": 14, - "y": 1 - }, - "id": 72, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(taos_cluster_info_master_uptime{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"})", - "format": "time_series", - "formatType": "Time series", - "instant": true, - "interval": "", - "legendFormat": "{{pod}}", - "queryType": "SQL", - "range": false, - "refId": "A", - "target": "select metric", - "type": "timeserie" - } - ], - "title": "Master Uptime", - "transformations": [ - { - "id": "reduce", - "options": { - "includeTimeField": false, - "mode": "reduceFields", - "reducers": [ - "lastNotNull" - ] - } - } - ], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 5, - "x": 19, - "y": 1 - }, - "id": 99, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_grants_info_expire_time{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"})", - "formatType": "Time series", - "interval": "", - "legendFormat": "", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - } - ], - "title": "Expire Time", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 0, - "y": 67 - }, - "id": 65, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "dnodes", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_cluster_info_dbs_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"})", - "format": "time_series", - "formatType": "Time series", - "instant": false, - "interval": "", - "legendFormat": "databases", - "queryType": "SQL", - "refId": "A", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - } - ], - "title": "Databases", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "Time", - "databases" - ] - } - } - } - ], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 5, - "x": 4, - "y": 67 - }, - "id": 127, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "dnodes", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_cluster_info_stbs_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"})", - "format": "time_series", - "formatType": "Time series", - "instant": false, - "interval": "", - "legendFormat": "databases", - "queryType": "SQL", - "refId": "A", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - } - ], - "title": "Super Tables", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "Time", - "databases" - ] - } - } - } - ], - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 5, - "x": 9, - "y": 67 - }, - "id": 68, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "dnodes", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_cluster_info_tbs_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"})", - "formatType": "Time series", - "interval": "", - "legendFormat": "", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - } - ], - "title": "Tables", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 5, - "x": 14, - "y": 67 - }, - "id": 128, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "dnodes", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_cluster_info_streams_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"})", - "formatType": "Time series", - "interval": "", - "legendFormat": "", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - } - ], - "title": "Streams", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 5, - "x": 19, - "y": 67 - }, - "id": 129, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "dnodes", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_cluster_info_topics_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"})", - "formatType": "Time series", - "interval": "", - "legendFormat": "", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - } - ], - "title": "Topics", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "当前TDengine集群DNode数量,Alive 为存活,Total 为所有", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text", - "wrapText": false - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "mnode" - }, - "properties": [ - { - "id": "custom.width", - "value": 102 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "dnode" - }, - "properties": [ - { - "id": "custom.width", - "value": 91 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "vnode" - }, - "properties": [ - { - "id": "custom.width", - "value": 87 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "vgroup" - }, - "properties": [ - { - "id": "custom.width", - "value": 104 - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 71 - }, - "id": 75, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "enablePagination": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "frameIndex": 0, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "disableTextWrap": false, - "editorMode": "code", - "exemplar": false, - "expr": "taos_cluster_info_dnodes_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}", - "format": "table", - "fullMetaSearch": false, - "hide": false, - "includeNullMetadata": true, - "instant": true, - "interval": "", - "legendFormat": "{{pod}}", - "range": false, - "refId": "A", - "useBackend": false - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "taos_cluster_info_mnodes_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}", - "format": "table", - "hide": false, - "instant": true, - "legendFormat": "{{pod}}", - "range": false, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "taos_cluster_info_vnodes_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}", - "format": "table", - "hide": false, - "instant": true, - "legendFormat": "{{pod}}", - "range": false, - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "expr": "taos_cluster_info_vgroups_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}", - "format": "table", - "hide": false, - "instant": false, - "legendFormat": "{{pod}}", - "range": true, - "refId": "D" - } - ], - "title": "DNodes/MNodes/VNodes", - "transformations": [ - { - "id": "merge", - "options": {} - }, - { - "id": "groupBy", - "options": { - "fields": { - "Value #A": { - "aggregations": [ - "lastNotNull" - ], - "operation": "aggregate" - }, - "Value #B": { - "aggregations": [ - "lastNotNull" - ], - "operation": "aggregate" - }, - "Value #C": { - "aggregations": [ - "lastNotNull" - ], - "operation": "aggregate" - }, - "Value #D": { - "aggregations": [ - "lastNotNull" - ], - "operation": "aggregate" - }, - "app_kubernetes_io_instance": { - "aggregations": [], - "operation": "groupby" - }, - "namespace": { - "aggregations": [], - "operation": "groupby" - }, - "pod": { - "aggregations": [], - "operation": "groupby" - } - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "app_kubernetes_io_instance": true, - "namespace": true - }, - "includeByName": {}, - "indexByName": {}, - "renameByName": { - "Value #A (lastNotNull)": "dnode", - "Value #B (lastNotNull)": "mnode", - "Value #C (lastNotNull)": "vnode", - "Value #D (lastNotNull)": "vgroup", - "app_kubernetes_io_instance": "", - "namespace": "", - "pod": "" - } - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 71 - }, - "id": 82, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "taos_cluster_info_connections_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}", - "formatType": "Time series", - "interval": "", - "legendFormat": "{{pod}}", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - } - ], - "title": "Connections", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "line+area" - } - }, - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "transparent" - }, - { - "color": "red", - "value": 0.95 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [ - { - "__systemRef": "hideSeriesFrom", - "matcher": { - "id": "byNames", - "options": { - "mode": "exclude", - "names": [ - "percent" - ], - "prefix": "All except:", - "readOnly": true - } - }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": false, - "tooltip": false, - "viz": true - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 0, - "y": 79 - }, - "id": 104, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "taos_grants_info_timeseries_used{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"} / taos_grants_info_timeseries_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}", - "formatType": "Time series", - "interval": "", - "legendFormat": "{{pod}}", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - } - ], - "title": "Measuring Points Used Percent Alert", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 6, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "percentage", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 8, - "y": 79 - }, - "id": 100, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "avg(taos_dnodes_info_disk_engine{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}) by (dnode_ep) / avg(taos_dnodes_info_disk_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}) by (dnode_ep)", - "format": "time_series", - "formatType": "Time series", - "instant": false, - "interval": "", - "legendFormat": "{{dnode_ep}}", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - } - ], - "title": "Dnode Thread Used Disk", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 5, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [ - { - "__systemRef": "hideSeriesFrom", - "matcher": { - "id": "byNames", - "options": { - "mode": "exclude", - "names": [ - "tdengine-tdengine-0" - ], - "prefix": "All except:", - "readOnly": true - } - }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": false, - "tooltip": false, - "viz": true - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 16, - "y": 79 - }, - "id": 86, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "taos_cluster_info_vnodes_alive{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"} / taos_cluster_info_vnodes_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}", - "format": "time_series", - "formatType": "Time series", - "instant": false, - "interval": "", - "legendFormat": "{{pod}}", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - } - ], - "title": "VNodes Alive Percent", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 5, - "pointSize": 10, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 0, - "y": 87 - }, - "id": 84, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "taos_cluster_info_dnodes_alive / taos_cluster_info_dnodes_total", - "formatType": "Time series", - "interval": "", - "legendFormat": "{{pod}}", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - } - ], - "title": "DNodes Alive Percent", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 5, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 8, - "x": 8, - "y": 87 - }, - "id": 85, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "taos_cluster_info_vgroups_alive / taos_cluster_info_vgroups_total", - "formatType": "Time series", - "interval": "", - "legendFormat": "{{pod}}", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - } - ], - "title": "VGroups Alive Percent", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "line+area" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red" - }, - { - "color": "transparent", - "value": 86400 - } - ] - }, - "unit": "s" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "percent" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "max", - "value": 1 - }, - { - "id": "custom.axisPlacement", - "value": "right" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "percent" - }, - "properties": [ - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "max", - "value": 1 - }, - { - "id": "custom.axisPlacement", - "value": "right" - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 8, - "x": 16, - "y": 87 - }, - "id": 105, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "taos_grants_info_expire_time", - "formatType": "Time series", - "interval": "", - "legendFormat": "{{pod}}", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - } - ], - "title": "Grants Expire Time", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "graph": false, - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 5, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 8, - "x": 0, - "y": 95 - }, - "id": 87, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "taos_cluster_info_mnodes_alive / taos_cluster_info_mnodes_total", - "formatType": "Time series", - "interval": "", - "legendFormat": "{{pod}}", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - } - ], - "title": "MNodes Alive Percent", - "type": "timeseries" - } - ], - "title": "Cluster Status", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 1 - }, - "id": 20, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "percentage", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "HasMNode" - }, - "properties": [ - { - "id": "displayName", - "value": "HasMnode" - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "yellow", - "index": 1, - "text": "No" - }, - "1": { - "color": "green", - "index": 0, - "text": "Yes" - } - }, - "type": "value" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "dnode_ep" - }, - "properties": [ - { - "id": "custom.width", - "value": 608 - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "CpuCores" - }, - "properties": [ - { - "id": "custom.width", - "value": 121 - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "VNodes" - }, - "properties": [ - { - "id": "custom.width", - "value": 119 - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "VNode Masters" - }, - "properties": [ - { - "id": "custom.width", - "value": 142 - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "HasQNode" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "custom.width", - "value": 107 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "yellow", - "index": 1, - "text": "No" - }, - "1": { - "color": "green", - "index": 0, - "text": "Yes" - } - }, - "type": "value" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "HasSNode" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "custom.width", - "value": 200 - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "yellow", - "index": 1, - "text": "No" - }, - "1": { - "color": "green", - "index": 0, - "text": "Yes" - } - }, - "type": "value" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 6, - "w": 24, - "x": 0, - "y": 2 - }, - "id": 121, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "dnode_ep" - } - ] - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(taos_dnodes_info_has_mnode{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}) by (dnode_ep)", - "format": "table", - "formatType": "Time series", - "instant": true, - "interval": "", - "legendFormat": "{{dnode_ep}}", - "queryType": "SQL", - "range": false, - "refId": "A", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(taos_dnodes_info_cpu_cores{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}) by (dnode_ep)", - "format": "table", - "hide": false, - "instant": true, - "legendFormat": "{{dnode_ep}}", - "range": false, - "refId": "B" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(taos_dnodes_info_vnodes_num{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}) by (dnode_ep)", - "format": "table", - "hide": false, - "instant": true, - "legendFormat": "{{dnode_ep}}", - "range": false, - "refId": "C" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(taos_dnodes_info_masters{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}) by (dnode_ep)", - "format": "table", - "hide": false, - "instant": true, - "legendFormat": "{{dnode_ep}}", - "range": false, - "refId": "D" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(taos_dnodes_info_has_qnode{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}) by (dnode_ep)", - "format": "table", - "formatType": "Time series", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{dnode_ep}}", - "queryType": "SQL", - "range": false, - "refId": "E", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(taos_dnodes_info_has_snode{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}) by (dnode_ep)", - "format": "table", - "formatType": "Time series", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{dnode_ep}}", - "queryType": "SQL", - "range": false, - "refId": "F", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - } - ], - "title": "DNode Info", - "transformations": [ - { - "id": "merge", - "options": {} - }, - { - "id": "groupBy", - "options": { - "fields": { - "Value": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "Value #A": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "Value #B": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "Value #C": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "Value #D": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "Value #E": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "Value #F": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "dnode_ep": { - "aggregations": [], - "operation": "groupby" - } - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "includeByName": {}, - "indexByName": {}, - "renameByName": { - "Value #A (last)": "HasMNode", - "Value #B (last)": "CpuCores", - "Value #C (last)": "VNodes", - "Value #D (last)": "VNode Masters", - "Value #E (last)": "HasQNode", - "Value #F (last)": "HasSNode", - "dnode_ep": "" - } - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "percentage", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "value (last)" - }, - "properties": [ - { - "id": "displayName", - "value": "Role" - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "candidate": { - "color": "yellow", - "index": 3, - "text": "candidate" - }, - "error": { - "color": "red", - "index": 5, - "text": "error" - }, - "follower": { - "color": "semi-dark-green", - "index": 1, - "text": "follower" - }, - "leader": { - "color": "green", - "index": 0, - "text": "leader" - }, - "learner": { - "color": "semi-dark-green", - "index": 2, - "text": "learner" - }, - "offline": { - "color": "red", - "index": 4, - "text": "offline" - } - }, - "type": "value" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "mnode_ep" - }, - "properties": [ - { - "id": "custom.width", - "value": 614 - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 8 - }, - "id": 143, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(taos_m_info_role{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}) by (mnode_ep,value)", - "format": "table", - "formatType": "Time series", - "instant": true, - "interval": "", - "legendFormat": "{{mnode_ep}}", - "queryType": "SQL", - "range": false, - "refId": "A", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - } - ], - "title": "MNode Role", - "transformations": [ - { - "id": "groupBy", - "options": { - "fields": { - "Value": { - "aggregations": [ - "last" - ] - }, - "Value #A": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "dnode_ep": { - "aggregations": [], - "operation": "groupby" - }, - "mnode_ep": { - "aggregations": [], - "operation": "groupby" - }, - "value": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - } - } - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "color-text" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "percentage", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Value #A (last)" - }, - "properties": [ - { - "id": "displayName", - "value": "Status" - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "red", - "index": 1, - "text": "Unsynced" - }, - "1": { - "color": "green", - "index": 0, - "text": "Ready" - } - }, - "type": "value" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #B (last)" - }, - "properties": [ - { - "id": "displayName", - "value": "Table Nums" - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 8 - }, - "id": 150, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "frameIndex": 0, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(taos_taosd_vgroups_info_status{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}) by (database_name,vgroup_id)", - "format": "table", - "formatType": "Time series", - "instant": true, - "interval": "", - "legendFormat": "{{database_name}}", - "queryType": "SQL", - "range": false, - "refId": "A", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(taos_taosd_vgroups_info_tables_num{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}) by (database_name,vgroup_id)", - "format": "table", - "formatType": "Time series", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{database_name}}", - "queryType": "SQL", - "range": false, - "refId": "B", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - } - ], - "title": "VGroup Status", - "transformations": [ - { - "id": "groupBy", - "options": { - "fields": { - "Value": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "Value #A": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "Value #B": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "database_name": { - "aggregations": [], - "operation": "groupby" - }, - "dnode_ep": { - "aggregations": [], - "operation": "groupby" - }, - "mnode_ep": { - "aggregations": [], - "operation": "groupby" - }, - "value": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "vgroup_id": { - "aggregations": [], - "operation": "groupby" - } - } - } - }, - { - "id": "merge", - "options": {} - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "当前TDengine集群DNode数量,Alive 为存活,Total 为所有", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "status" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "red", - "index": 1, - "text": "NotReady" - }, - "1": { - "color": "green", - "index": 0, - "text": "Ready" - } - }, - "type": "value" - } - ] - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text", - "wrapText": false - } - }, - { - "id": "custom.width", - "value": 62 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "dnode_ep" - }, - "properties": [ - { - "id": "custom.width", - "value": 572 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "dnode_id" - }, - "properties": [ - { - "id": "custom.width", - "value": 83 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "uptime" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "unit", - "value": "s" - }, - { - "id": "custom.width", - "value": 125 - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 17 - }, - "id": 125, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "enablePagination": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "frameIndex": 0, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "disableTextWrap": false, - "editorMode": "code", - "exemplar": false, - "expr": "taos_d_info_status{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}", - "format": "table", - "fullMetaSearch": false, - "hide": false, - "includeNullMetadata": true, - "instant": true, - "interval": "", - "legendFormat": "{{pod}}", - "range": false, - "refId": "A", - "useBackend": false - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "taos_dnodes_info_uptime{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}", - "format": "table", - "hide": false, - "instant": true, - "legendFormat": "{{pod}}", - "range": false, - "refId": "B" - } - ], - "title": "DNode Status", - "transformations": [ - { - "id": "groupBy", - "options": { - "fields": { - "Value": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "Value #A": { - "aggregations": [ - "lastNotNull" - ], - "operation": "aggregate" - }, - "Value #B": { - "aggregations": [ - "lastNotNull" - ], - "operation": "aggregate" - }, - "Value #C": { - "aggregations": [ - "lastNotNull" - ], - "operation": "aggregate" - }, - "app_kubernetes_io_instance": { - "aggregations": [] - }, - "dnode_ep": { - "aggregations": [ - "lastNotNull" - ], - "operation": "groupby" - }, - "dnode_id": { - "aggregations": [ - "lastNotNull" - ], - "operation": "groupby" - }, - "namespace": { - "aggregations": [] - }, - "pod": { - "aggregations": [] - } - } - } - }, - { - "id": "merge", - "options": {} - }, - { - "id": "organize", - "options": { - "excludeByName": { - "app_kubernetes_io_instance": true, - "namespace": true - }, - "includeByName": {}, - "indexByName": {}, - "renameByName": { - "Value #A (lastNotNull)": "status", - "Value #B (lastNotNull)": "uptime", - "Value #C (lastNotNull)": "vnode", - "Value (last)": "status", - "app_kubernetes_io_instance": "", - "dnode_ep": "", - "namespace": "", - "pod": "" - } - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "cellOptions": { - "type": "auto" - }, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "percentage", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "value (last)" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "candidate": { - "color": "semi-dark-green", - "index": 2, - "text": "candidate" - }, - "error": { - "color": "red", - "index": 5, - "text": "error" - }, - "follower": { - "color": "semi-dark-green", - "index": 1, - "text": "follower" - }, - "leader": { - "color": "green", - "index": 0, - "text": "leader" - }, - "learner": { - "color": "green", - "index": 3, - "text": "learner" - }, - "offline": { - "color": "red", - "index": 4, - "text": "offline" - } - }, - "type": "value" - } - ] - }, - { - "id": "displayName", - "value": "Role" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value (last)" - }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "color": "red", - "index": 1, - "text": "NotReady" - }, - "1": { - "color": "green", - "index": 0, - "text": "Ready" - } - }, - "type": "value" - } - ] - }, - { - "id": "displayName", - "value": "Status" - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 17 - }, - "id": 154, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "value (last)" - } - ] - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(taos_taosd_vnodes_info_role{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}) by (dnode_id,value, vgroup_id,database_name)", - "format": "table", - "formatType": "Time series", - "instant": true, - "interval": "", - "legendFormat": "{{dnode_id}}", - "queryType": "SQL", - "range": false, - "refId": "A", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - } - ], - "title": "Vgroup Role", - "transformations": [ - { - "id": "groupBy", - "options": { - "fields": { - "Value": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "Value #A": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "database_name": { - "aggregations": [], - "operation": "groupby" - }, - "dnode_ep": { - "aggregations": [], - "operation": "groupby" - }, - "dnode_id": { - "aggregations": [], - "operation": "groupby" - }, - "mnode_ep": { - "aggregations": [], - "operation": "groupby" - }, - "value": { - "aggregations": [ - "last" - ], - "operation": "aggregate" - }, - "vgroup_id": { - "aggregations": [], - "operation": "groupby" - } - } - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "deckbytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 26 - }, - "hideTimeOverride": true, - "id": 144, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(avg_over_time(taos_dnodes_info_mem_engine{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}[$__interval])) by (dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-taosd", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(avg_over_time(taos_dnodes_info_mem_system{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}[$__interval])) by (dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-system", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "RAM Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "CPU 资源占用情况。", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 26 - }, - "hideTimeOverride": true, - "id": 2, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(avg_over_time(taos_dnodes_info_cpu_engine{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}[$__interval])) by (dnode_ep)", - "format": "time_series", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-taosd", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": false, - "expr": "max(avg_over_time(taos_dnodes_info_cpu_system{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}[$__interval])) by (dnode_ep)", - "format": "time_series", - "formatType": "Time series", - "hide": false, - "instant": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-system", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "CPU Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 12, - "x": 0, - "y": 35 - }, - "id": 117, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(avg_over_time(taos_taosd_dnodes_data_dirs_used{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}[$__interval])) by (dnode_ep)", - "formatType": "Time series", - "hide": false, - "instant": false, - "interval": "", - "legendFormat": "{{dnode_ep}}_used", - "queryType": "SQL", - "refId": "A", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(avg_over_time(taos_taosd_dnodes_data_dirs_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}[$__interval])) by (dnode_ep)", - "formatType": "Time series", - "hide": false, - "instant": false, - "interval": "", - "legendFormat": "{{dnode_ep}}_total", - "queryType": "SQL", - "refId": "C", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - } - ], - "title": "Data Disk Used", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 12, - "x": 12, - "y": 35 - }, - "id": 64, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "width": 400 - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "level0", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(deriv(rate(taos_taosd_dnodes_data_dirs_used{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}[1m])[5m:1s]) * 1024) by (dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "timeshift": {}, - "type": "timeserie" - } - ], - "title": "Data Disk Used Increasing Rate per Minute", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "binBps" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/last/" - }, - "properties": [ - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 5, - 5 - ], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 12, - "x": 0, - "y": 45 - }, - "hideTimeOverride": true, - "id": 119, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(avg_over_time(taos_dnodes_info_io_write_disk{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}[1m])) by(dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-io_write_disk", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(avg_over_time(taos_dnodes_info_io_read_disk{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}[1m])) by(dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-io_read_disk", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Disk IO", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "left", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "binBps" - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 12, - "x": 12, - "y": 45 - }, - "hideTimeOverride": true, - "id": 118, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(avg_over_time(taos_dnodes_info_net_in{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}[1m])) by(dnode_ep)", - "format": "time_series", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-net_in", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(avg_over_time(taos_dnodes_info_net_out{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}[1m])) by(dnode_ep)", - "format": "time_series", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-net_out", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Net", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "binBps" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/last/" - }, - "properties": [ - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 5, - 5 - ], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 12, - "x": 0, - "y": 55 - }, - "hideTimeOverride": true, - "id": 130, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(avg_over_time(taos_taosd_dnodes_log_dirs_used{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}[1m])) by(dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-used", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(avg_over_time(taos_taosd_dnodes_log_dirs_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}[1m])) by(dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-total", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Logs Disk Used", - "type": "timeseries" - } - ], - "repeat": "fqdn", - "title": "DNode Usage", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 2 - }, - "id": 145, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/last/" - }, - "properties": [ - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 5, - 5 - ], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 1360 - }, - "hideTimeOverride": true, - "id": 146, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "sum(max(taos_taosd_sql_req_count{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",sql_type=~\"select\",result=\"Success\"}) by(dnode_ep,vgroup_id)) by(dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-success", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "sum(max(taos_taosd_sql_req_count{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",sql_type=~\"select\",result=\"Failed\"}) by(dnode_ep,vgroup_id)) by(dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-failed", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Select", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/last/" - }, - "properties": [ - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 5, - 5 - ], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 1360 - }, - "hideTimeOverride": true, - "id": 147, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "sum(max(taos_taosd_sql_req_count{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",sql_type=~\"insert\",result=\"Success\"}) by(dnode_ep,vgroup_id)) by(dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-success", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "sum(max(taos_taosd_sql_req_count{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",sql_type=~\"insert\",result=\"Failed\"}) by(dnode_ep,vgroup_id)) by(dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-failed", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Insert", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/last/" - }, - "properties": [ - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 5, - 5 - ], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 1368 - }, - "hideTimeOverride": true, - "id": 148, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "sum(max(taos_taosd_sql_req_count{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",sql_type=~\"inserted_rows\",result=\"Success\"}) by(dnode_ep,vgroup_id)) by(dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-success", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "sum(max(taos_taosd_sql_req_count{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",sql_type=~\"inserted_rows\",result=\"Failed\"}) by(dnode_ep,vgroup_id)) by(dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-failed", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Inserted Rows", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/last/" - }, - "properties": [ - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 5, - 5 - ], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 1368 - }, - "hideTimeOverride": true, - "id": 149, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "sum(max(taos_taosd_sql_req_count{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",sql_type=~\"delete\",result=\"Success\"}) by(dnode_ep,vgroup_id)) by(dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-success", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "sum(max(taos_taosd_sql_req_count{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",sql_type=~\"delete\",result=\"Failed\"}) by(dnode_ep,vgroup_id)) by(dnode_ep)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{dnode_ep}}-failed", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Delete", - "type": "timeseries" - } - ], - "title": "SQL Requests", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 3 - }, - "id": 126, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/last/" - }, - "properties": [ - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 5, - 5 - ], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 437 - }, - "hideTimeOverride": true, - "id": 132, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-total", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_success{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-success", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_fail{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-fail", - "queryType": "SQL", - "range": true, - "refId": "C", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_in_process{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-inprocess", - "queryType": "SQL", - "range": true, - "refId": "D", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Requests HTTP", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/last/" - }, - "properties": [ - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 5, - 5 - ], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 437 - }, - "hideTimeOverride": true, - "id": 136, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_total{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-total", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_success{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-success", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_fail{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-fail", - "queryType": "SQL", - "range": true, - "refId": "C", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_in_process{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-inprocess", - "queryType": "SQL", - "range": true, - "refId": "D", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Requests WebSocket", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/last/" - }, - "properties": [ - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 5, - 5 - ], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 12, - "x": 0, - "y": 446 - }, - "hideTimeOverride": true, - "id": 138, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_query{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-total", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_query_success{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-success", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_query_fail{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-fail", - "queryType": "SQL", - "range": true, - "refId": "C", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_query_in_process{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-inprocess", - "queryType": "SQL", - "range": true, - "refId": "D", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Query Requests HTTP", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/last/" - }, - "properties": [ - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 5, - 5 - ], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 12, - "x": 12, - "y": 446 - }, - "hideTimeOverride": true, - "id": 140, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_query{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-total", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_query_success{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-success", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_query_fail{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-fail", - "queryType": "SQL", - "range": true, - "refId": "C", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_query_in_process{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-inprocess", - "queryType": "SQL", - "range": true, - "refId": "D", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Query Requests WebScoket", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/last/" - }, - "properties": [ - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 5, - 5 - ], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 12, - "x": 0, - "y": 456 - }, - "hideTimeOverride": true, - "id": 137, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_write{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-total", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_write_success{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-success", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_write_fail{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-fail", - "queryType": "SQL", - "range": true, - "refId": "C", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_write_in_process{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-inprocess", - "queryType": "SQL", - "range": true, - "refId": "D", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Write Requests HTTP", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/last/" - }, - "properties": [ - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 5, - 5 - ], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 12, - "x": 12, - "y": 456 - }, - "hideTimeOverride": true, - "id": 141, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_write{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-total", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_write_success{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-success", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_write_fail{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-fail", - "queryType": "SQL", - "range": true, - "refId": "C", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_write_in_process{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-inprocess", - "queryType": "SQL", - "range": true, - "refId": "D", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Write Requests WebSocket", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/last/" - }, - "properties": [ - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 5, - 5 - ], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 12, - "x": 0, - "y": 466 - }, - "hideTimeOverride": true, - "id": 142, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_other{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-total", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_other_success{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-success", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_other_fail{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"0\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-fail", - "queryType": "SQL", - "range": true, - "refId": "C", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Other Requests HTTP", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/last/" - }, - "properties": [ - { - "id": "custom.lineStyle", - "value": { - "dash": [ - 5, - 5 - ], - "fill": "dash" - } - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 12, - "x": 12, - "y": 466 - }, - "hideTimeOverride": true, - "id": 139, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_other{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-total", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_other_success{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-success", - "queryType": "SQL", - "range": true, - "refId": "B", - "target": "select metric", - "type": "timeserie" - }, - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_adapter_requests_other_fail{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\",req_type=~\"1\"}) by(exported_endpoint)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{exported_endpoint}}-fail", - "queryType": "SQL", - "range": true, - "refId": "C", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Other Requests WebSocket", - "type": "timeseries" - } - ], - "title": "Adapter Usage", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 4 - }, - "id": 151, - "panels": [ - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 438 - }, - "hideTimeOverride": true, - "id": 152, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_keeper_monitor_cpu{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}) by(identify)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{identify}}", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Cpu Usage", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 438 - }, - "hideTimeOverride": true, - "id": 153, - "options": { - "alertThreshold": true, - "legend": { - "calcs": [ - "mean", - "lastNotNull", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Name", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "12.0.2", - "targets": [ - { - "alias": "", - "colNameFormatStr": "", - "colNameToGroup": "", - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "editorMode": "code", - "exemplar": true, - "expr": "max(taos_keeper_monitor_mem{namespace=~\"$namespace\", app_kubernetes_io_instance=~\"$cluster\",pod=~\"$instance\"}) by(identify)", - "formatType": "Time series", - "hide": false, - "interval": "", - "legendFormat": "{{identify}}", - "queryType": "SQL", - "range": true, - "refId": "A", - "target": "select metric", - "type": "timeserie" - } - ], - "timeFrom": "1h", - "timeShift": "30s", - "title": "Memory Usage", - "type": "timeseries" - } - ], - "title": "Keeper Usage", - "type": "row" - } - ], - "preload": false, - "schemaVersion": 41, - "tags": [ - "TDengine1", - "Prometheus", - "TaosKeeper" - ], - "templating": { - "list": [ - { - "current": { - "text": "Prometheus", - "value": "prometheus" - }, - "includeAll": false, - "label": "data source", - "name": "datasource", - "options": [], - "query": "prometheus", - "refresh": 1, - "regex": "", - "type": "datasource" - }, - { - "allValue": ".+", - "current": { - "text": [ - "default" - ], - "value": [ - "default" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "definition": "label_values(taos_cluster_info_version,namespace)", - "includeAll": true, - "label": "namespace", - "multi": true, - "name": "namespace", - "options": [], - "query": { - "query": "label_values(taos_cluster_info_version,namespace)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "type": "query" - }, - { - "allValue": ".+", - "current": { - "text": [ - "tdengine" - ], - "value": [ - "tdengine" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "definition": "label_values(taos_cluster_info_version{namespace=\"$namespace\"},app_kubernetes_io_instance)", - "includeAll": true, - "label": "cluster", - "multi": true, - "name": "cluster", - "options": [], - "query": { - "query": "label_values(taos_cluster_info_version{namespace=\"$namespace\"},app_kubernetes_io_instance)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "type": "query" - }, - { - "allValue": ".+", - "current": { - "text": "All", - "value": [ - "$__all" - ] - }, - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "definition": "label_values(taos_cluster_info_version{namespace=\"$namespace\", app_kubernetes_io_instance=\"$cluster\"},pod)", - "includeAll": true, - "label": "instance", - "multi": true, - "name": "instance", - "options": [], - "query": { - "query": "label_values(taos_cluster_info_version{namespace=\"$namespace\", app_kubernetes_io_instance=\"$cluster\"},pod)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "type": "query" - }, - { - "baseFilters": [], - "datasource": { - "type": "prometheus", - "uid": "${datasource}" - }, - "filters": [], - "name": "Filters", - "type": "adhoc" - } - ] - }, - "time": { - "from": "now-5m", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "TDengine for 3.x", - "uid": "tdengine", - "version": 92 -} \ No newline at end of file diff --git a/addons/tdengine/dataprotection/dump-backup.sh b/addons/tdengine/dataprotection/dump-backup.sh deleted file mode 100644 index dfc9cdd28..000000000 --- a/addons/tdengine/dataprotection/dump-backup.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -set -e -set -o pipefail -export PATH="$PATH:$DP_DATASAFED_BIN_PATH" -export DATASAFED_BACKEND_BASE_PATH="$DP_BACKUP_BASE_PATH" - -function handle_exit() { - exit_code=$? - if [ -d ${BACKUP_DIR}/${DP_BACKUP_NAME} ]; then - rm -rf ${BACKUP_DIR}/${DP_BACKUP_NAME} - fi - if [ $exit_code -ne 0 ]; then - echo "failed with exit code $exit_code" - - touch "${DP_BACKUP_INFO_FILE}.exit" - exit 1 - fi -} -trap handle_exit EXIT - -mkdir -p ${BACKUP_DIR}/${DP_BACKUP_NAME} -taosdump -h ${DP_DB_HOST} -P ${DP_DB_PORT} -p${DP_DB_PASSWORD} --all-databases -o ${BACKUP_DIR}/${DP_BACKUP_NAME} - -# TODO: 先按数据库tar,后续测出来备份速度不满意就按直接遍历push。 如果还是不行,可能要用到nfs/pvc挂载模式了 -function push_backups() { - cd ${BACKUP_DIR}/${DP_BACKUP_NAME} - for dir in $(find . -mindepth 1 -maxdepth 1 -type d); do - dir_name=$(basename ${dir}) - echo "$(date) push backup file: ${dir_name}" - tar -cvf - "${dir}" | datasafed push -z zstd-fastest - "/${DP_BACKUP_NAME}/${dir_name}.tar.zst" - done - for file in $(find . -maxdepth 1 -type f); do - file_name=$(basename ${file}) - echo "$(date) push backup file: ${file_name}" - datasafed push -z zstd-fastest ${file} "/${DP_BACKUP_NAME}/${file_name}.zst" - done -} - -push_backups - -rm -rf ${BACKUP_DIR}/${DP_BACKUP_NAME} -TOTAL_SIZE=$(datasafed stat / | grep TotalSize | awk '{print $2}') -echo "{\"totalSize\":\"$TOTAL_SIZE\"}" >"${DP_BACKUP_INFO_FILE}" \ No newline at end of file diff --git a/addons/tdengine/dataprotection/dump-restore.sh b/addons/tdengine/dataprotection/dump-restore.sh deleted file mode 100644 index c4dae8ebc..000000000 --- a/addons/tdengine/dataprotection/dump-restore.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -set -e -set -o pipefail -export PATH="$PATH:$DP_DATASAFED_BIN_PATH" -export DATASAFED_BACKEND_BASE_PATH="$DP_BACKUP_BASE_PATH" - -mkdir -p ${BACKUP_DIR}/${DP_BACKUP_NAME} -# download the backup files -for file in $(datasafed list ${DP_BACKUP_NAME} -r -f); do - file_name=${file#${DP_BACKUP_NAME}/} - echo "download ${file_name} to ${BACKUP_DIR}/${DP_BACKUP_NAME}/${file_name}" - if [[ "${file_name}" == *".tar.zst" ]]; then - datasafed pull -d zstd-fastest "${file}" - | tar -xvf - -C ${BACKUP_DIR}/${DP_BACKUP_NAME} - else - file_name=${file_name%.zst} - datasafed pull -d zstd-fastest "${file}" "${BACKUP_DIR}/${DP_BACKUP_NAME}/${file_name}" - fi -done - -taosdump -h ${DP_DB_HOST} -P ${DP_DB_PORT} -p${TAOS_ROOT_PASSWORD} -i ${BACKUP_DIR}/${DP_BACKUP_NAME} > ${BACKUP_DIR}/restore.log 2>&1 -rm -rf ${BACKUP_DIR}/${DP_BACKUP_NAME} \ No newline at end of file diff --git a/addons/tdengine/releases_notes.yaml b/addons/tdengine/releases_notes.yaml deleted file mode 100644 index f5506cacf..000000000 --- a/addons/tdengine/releases_notes.yaml +++ /dev/null @@ -1,18 +0,0 @@ -releases: - - version: "1.0.1" - released_at: "2025-09-11" - status: "stable" - notes: - git_branch: "release-1.0" - git_tag: "1.0.1" - commit_sha: "" - breaking_changes: - - version: "1.0.0" - released_at: "2025-05-28" - status: "stable" - git_branch: "release-1.0" - git_tag: "1.0.0" - - version: "0.9.1" - git_branch: "release-0.9" - - version: "0.9.0" - git_branch: "release-0.9" \ No newline at end of file diff --git a/addons/tdengine/scripts/create-mnode.sh b/addons/tdengine/scripts/create-mnode.sh deleted file mode 100644 index de3b89739..000000000 --- a/addons/tdengine/scripts/create-mnode.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -function create_mnode() { - first_ep=${TAOS_FIRST_EP%:*} - res=$(taos -h$first_ep -p$TAOS_ROOT_PASSWORD -s "create mnode on dnode ${1}" 2>&1) - if [[ "$res" == *"Create OK"* ]]; then - echo "create mnode success on dnode ${1}" - elif [[ "$res" == *"already exists"* ]]; then - echo "mnode already exists" - else - echo "create mnode failed: $res" - exit 1 - fi -} - -if [ $COMPONENT_REPLICAS -lt 3 ]; then - exit 0 -else - echo "create mnode on dnode 2, 3" - create_mnode 2 - create_mnode 3 -fi \ No newline at end of file diff --git a/addons/tdengine/scripts/entrypoint.sh b/addons/tdengine/scripts/entrypoint.sh deleted file mode 100755 index 6bdc5c283..000000000 --- a/addons/tdengine/scripts/entrypoint.sh +++ /dev/null @@ -1,214 +0,0 @@ -#!/bin/bash -set -e - -function get_first_ep() { - for pod_name in $(echo $TDENGINE_POD_FQDN_LIST | tr ',' '\n') ; do - echo $pod_name:${TAOS_SERVICE_PORT} - break - done -} - -function get_second_ep() { - index=0 - for pod_name in $(echo $TDENGINE_POD_FQDN_LIST | tr ',' '\n') ; do - if [ $index -eq 0 ]; then - index=$((index+1)) - continue - else - echo $pod_name:${TAOS_SERVICE_PORT} - break - fi - done -} - -function stop_server() { - local server_name=$1 - command="ps -eo pid,args | grep -F '${server_name}' | grep -v 'grep'" - pid=`eval $command | awk '{print $1}'` - if [ -z ${pid} ]; then - echo "Process already exit!" - return - fi - echo "Stop ${server_name}" - kill -15 $pid - until [ -z `eval $command | awk '{print $1}'` ]; do - echo "Wait to stop ${server_name}..." - sleep 3 - done - echo "Stop ${server_name} success!" -} - -function stop_servers() { - stop_server "taosd" - stop_server "taosadapter" -} - -trap "stop_servers" EXIT - -# for TZ awareness -if [ "$TZ" != "" ]; then - ln -sf /usr/share/zoneinfo/$TZ /etc/localtime - echo $TZ >/etc/timezone -fi - -TAOS_ROOT_PASSWORD=${TAOS_ROOT_PASSWORD:-taosdata} -export TAOS_KEEPER_TDENGINE_PASSWORD=${TAOS_ROOT_PASSWORD} - -INITDB_DIR=/docker-entrypoint-initdb.d/ - -# option to disable taosadapter, default is no -DISABLE_ADAPTER=${TAOS_DISABLE_ADAPTER:-0} -unset TAOS_DISABLE_ADAPTER - -DISABLE_KEEPER=${TAOS_DISABLE_KEEPER:-0} -unset TAOS_DISABLE_KEEPER - -DISABLE_EXPLORER=${TAOS_DISABLE_EXPLORER:-0} -unset TAOS_DISABLE_EXPLORER - -export TAOS_FIRST_EP=$(get_first_ep) -echo $TAOS_FIRST_EP -# Get DATA_DIR from taosd -C -DATA_DIR=$(taosd -C|grep -E 'dataDir\s+(\S+)' -o |head -n1|sed 's/dataDir *//') -DATA_DIR=${DATA_DIR:-/var/lib/taos} - -# Get FQDN from taosd -C -FQDN=$(taosd -C|grep -E 'fqdn\s+(\S+)' -o |head -n1|sed 's/fqdn *//') -# ensure the fqdn is resolved as localhost -grep "$FQDN" /etc/hosts >/dev/null || echo "127.0.0.1 $FQDN" >>/etc/hosts - -# Get first ep from taosd -C -FIRSET_EP=$(taosd -C|grep -E 'firstEp\s+(\S+)' -o |head -n1|sed 's/firstEp *//') -# parse first ep host and port -FIRST_EP_HOST=${FIRSET_EP%:*} -FIRST_EP_PORT=${FIRSET_EP#*:} - -# in case of custom server port -SERVER_PORT=$(taosd -C|grep -E 'serverPort\s+(\S+)' -o |head -n1|sed 's/serverPort *//') -SERVER_PORT=${SERVER_PORT:-6030} - -set +e -ulimit -c unlimited -# set core files pattern, maybe failed -sysctl -w kernel.core_pattern=/corefile/core-$FQDN-%e-%p >/dev/null >&1 -set -e - -if [ $# -gt 0 ]; then - exec "$@" - exit 0 -fi - -NEEDS_INITDB=0 - -# if dnode has been created or has mnode ep set or the host is first ep or not for cluster, just start. -if [ -f "$DATA_DIR/dnode/dnode.json" ] || - [ -f "$DATA_DIR/dnode/mnodeEpSet.json" ] || - [ "$FQDN" = "$FIRST_EP_HOST" ]; then - echo "start taosd with mnode ep set" - taosd & - while true; do - es=$(taos -h $FIRST_EP_HOST -P $FIRST_EP_PORT --check | grep "^[0-9]*:") - echo ${es} - if [ "${es%%:*}" -eq 2 ]; then - - # Initialization scripts should only work in first node. - if [ "$FQDN" = "$FIRST_EP_HOST" ]; then - if [ ! -f "${DATA_DIR}/.docker-entrypoint-root-password-changed" ]; then - if [ "$TAOS_ROOT_PASSWORD" != "taosdata" ]; then - # change default root password - taos -s "ALTER USER root PASS '$TAOS_ROOT_PASSWORD'" - touch "${DATA_DIR}/.docker-entrypoint-root-password-changed" - fi - fi - # Initialization scripts should only work in first node. - if [ ! -f "${DATA_DIR}/.docker-entrypoint-inited" ]; then - NEEDS_INITDB=1 - fi - fi - - break - fi - sleep 1s - done -# others will first wait the first ep ready. -else - if [ "$TAOS_FIRST_EP" = "" ]; then - echo "run TDengine with single node." - taosd & - fi - until taos -h $FIRST_EP_HOST -p$TAOS_ROOT_PASSWORD -P $FIRST_EP_PORT -s "show databases"; do - echo "Waiting for first ep to be ready..." - sleep 1s - done - res=$(sh -c "taos -p'$TAOS_ROOT_PASSWORD' -h $FIRST_EP_HOST -P $FIRST_EP_PORT -s 'create dnode \"$FQDN:$SERVER_PORT\";'" 2>&1) - if [[ "$res" == *"Create OK"* ]]; then - echo "create dnode success" - elif [[ "$res" == *"already exists"* ]]; then - echo "dnode already exists" - else - echo "create dnode failed: $res" - exit 1 - fi - if ps aux | grep -v grep | grep taosd > /dev/null; then - echo "TDengine is running" - else - taosd & - fi -fi - -if [ "$DISABLE_ADAPTER" = "0" ]; then - which taosadapter >/dev/null && taosadapter -c /etc/taos-adapter/taosadapter.toml & - # wait for 6041 port ready - for _ in $(seq 1 20); do - nc -z localhost 6041 && break - sleep 0.5 - done -fi - -if [ "$DISABLE_KEEPER" = "0" ]; then - sleep 3 - which taoskeeper >/dev/null && taoskeeper & - # wait for 6043 port ready - for _ in $(seq 1 20); do - nc -z localhost 6043 && break - sleep 0.5 - done -fi - -if [ "$DISABLE_EXPLORER" = "0" ]; then - which taos-explorer >/dev/null && taos-explorer & - # wait for 6060 port ready - for _ in $(seq 1 20); do - nc -z localhost 6060 && break - sleep 0.5 - done -fi - -if [ "$NEEDS_INITDB" = "1" ]; then - # check if initdb.d exists - if [ -d "${INITDB_DIR}" ]; then - # execute initdb scripts in sql - for FILE in "$INITDB_DIR"*.sql; do - echo "Initialize db with file $FILE" - MAX_RETRIES=5 - RETRY_COUNT=0 - SUCCESS=0 - while [ $RETRY_COUNT -lt $MAX_RETRIES ] && [ "$SUCCESS" = "0" ]; do - set -x - OUTPUT=$(sh -c "taos -f $FILE -p'$TAOS_ROOT_PASSWORD'") - set +x - echo $OUTPUT - if [[ "$OUTPUT" =~ "DB error" ]]; then - echo "Retrying in 2 seconds..." - sleep 2 - else - SUCCESS=1 - fi - done - done - fi - - touch "${DATA_DIR}/.docker-entrypoint-inited" -fi - -while true; do sleep 1000; done diff --git a/addons/tdengine/scripts/member-leave.sh b/addons/tdengine/scripts/member-leave.sh deleted file mode 100644 index 62d28b4b2..000000000 --- a/addons/tdengine/scripts/member-leave.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -endpoint=$KB_LEAVE_MEMBER_POD_NAME.${TAOS_COMPONENT_NAME}-headless.${CLUSTER_NAMESPACE}.svc.${CLUSTER_DOMAIN}:${TAOS_SERVICE_PORT} -res=$(taos -p$TAOS_ROOT_PASSWORD -s "select id from information_schema.ins_dnodes where endpoint='${endpoint}'") -if [[ "$res" == *"Query OK, 0 row(s) in set"* ]]; then - echo "No dnode found for endpoint $endpoint, nothing to do, exit 0" - exit 0 -elif [[ "$res" != *"Query OK, 1 row(s) in set"* ]]; then - echo "Failed to query dnode id for endpoint $endpoint, res: $res" - exit 1 -fi -res=$(echo "$res" | tail -n 3 | head -n 1) -dnode_id=$(echo $res | tr -d '|' | xargs | tr -d '\n') -echo "start to drop dnode with id: $dnode_id" -res=$(taos -p$TAOS_ROOT_PASSWORD -s "drop dnode ${dnode_id}") -if [[ "$res" == *"Drop OK"* ]]; then - echo "drop dnode success, dnode id: $dnode_id" - exit 0 -fi -exit 1 \ No newline at end of file diff --git a/addons/tdengine/scripts/reload-parameter.sh b/addons/tdengine/scripts/reload-parameter.sh deleted file mode 100644 index 72eac3c18..000000000 --- a/addons/tdengine/scripts/reload-parameter.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -paramName="${1:?missing param name}" -paramValue="${2:?missing value}" -res=$(taos -p$TAOS_ROOT_PASSWORD -s "alter all dnodes '${paramName} ${paramValue}'") -if [[ "$res" == *"Query OK"* ]]; then - exit 0 -fi -exit 1 \ No newline at end of file diff --git a/addons/tdengine/scripts/role-probe.sh b/addons/tdengine/scripts/role-probe.sh deleted file mode 100644 index 390ae9753..000000000 --- a/addons/tdengine/scripts/role-probe.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -endpoint=$KB_AGENT_POD_NAME.${TAOS_COMPONENT_NAME}-headless.${CLUSTER_NAMESPACE}.svc.${CLUSTER_DOMAIN}:${TAOS_SERVICE_PORT} -res=$(taos -p$TAOS_ROOT_PASSWORD -s "select status from information_schema.ins_dnodes where endpoint='${endpoint}'") -if [[ "$res" != *"Query OK, 1 row(s) in set"* ]]; then - echo "" | tr -d '\n' - exit 0 -fi -res=$(echo "$res" | tail -n 3 | head -n 1) -echo $res | tr -d '|' | xargs | tr -d '\n' \ No newline at end of file diff --git a/addons/tdengine/scripts/start-keeper.sh b/addons/tdengine/scripts/start-keeper.sh deleted file mode 100644 index 25b480b92..000000000 --- a/addons/tdengine/scripts/start-keeper.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -set -e -until curl -L -u root:${TAOS_ROOT_PASSWORD} localhost:${TAOS_ADAPTER_PORT}/rest/sql -d "show databases"; do sleep 1; done - -override_config="/var/lib/taoskeeper.toml" -cp /etc/taos/taoskeeper.toml $override_config - -instanceId=${CURRENT_POD_NAME##*-} -sed -i '/^password = /c\password = "'"$TAOS_ROOT_PASSWORD"'"' $override_config -sed -i "s|^instanceId = .*|instanceId = ${instanceId}|g" $override_config - -exec taoskeeper -c $override_config \ No newline at end of file diff --git a/addons/tdengine/scripts/taos-adapter-check.sh.tpl b/addons/tdengine/scripts/taos-adapter-check.sh.tpl deleted file mode 100644 index 22607facb..000000000 --- a/addons/tdengine/scripts/taos-adapter-check.sh.tpl +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -set -ex -echo "Waiting for taosAdapter service to be ready..." -until curl -L -u ${TAOS_ADAPTER_USERNAME}:${TAOS_ADAPTER_PASSWORD} -d "select name, ntables, status from information_schema.ins_databases;" localhost:${TAOS_ADAPTER_PORT}/rest/sql; do sleep 5; done -echo "Start taosAdapter service succeeded!" \ No newline at end of file diff --git a/addons/tdengine/templates/_helpers.tpl b/addons/tdengine/templates/_helpers.tpl deleted file mode 100644 index 557e910a7..000000000 --- a/addons/tdengine/templates/_helpers.tpl +++ /dev/null @@ -1,132 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "tdengine.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "tdengine.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "tdengine.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "tdengine.labels" -}} -helm.sh/chart: {{ include "tdengine.chart" . }} -{{ include "tdengine.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "tdengine.selectorLabels" -}} -app.kubernetes.io/name: {{ include "tdengine.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{/* -Common annotations -*/}} -{{- define "tdengine.annotations" -}} -{{ include "kblib.helm.resourcePolicy" . }} -{{ include "tdengine.apiVersion" . }} -{{- end }} - -{{/* -API version annotation -*/}} -{{- define "tdengine.apiVersion" -}} -kubeblocks.io/crd-api-version: apps.kubeblocks.io/v1 -{{- end }} - -{{/* -Define tdengine component definition name -*/}} -{{- define "tdengine.cmpdName" -}} -tdengine-{{ .Chart.Version }} -{{- end -}} - -{{/* -Define tdengine component version name -*/}} -{{- define "tdengine.cmpvName" -}} -tdengine -{{- end -}} - -{{/* -Define tdengine component definition regex pattern -*/}} -{{- define "tdengine.cmpdRegexPattern" -}} -^tdengine- -{{- end -}} - -{{/* -Define tdengine component configuration template name -*/}} -{{- define "tdengine.configurationTemplate" -}} -tdengine-config-template -{{- end -}} - -{{/* -Define tdengine scripts configMap template name -*/}} -{{- define "tdengine.scriptsTemplate" -}} -tdengine-scripts-template -{{- end -}} - -{{/* -Define tdengine component metrice configuration name -*/}} -{{- define "tdengine.metricsConfiguration" -}} -tdengine-metrics-configuration-template -{{- end -}} - - -{{/* -Define tdengine component adapter configuration name -*/}} -{{- define "tdengine.adapterConfiguration" -}} -tdengine-adapter-config-template -{{- end -}} - - -{{/* -Define tdengine component parameter definition name -*/}} -{{- define "tdengine.parameterDefinitionName" -}} -tdengine-pd -{{- end -}} - - -{{/* -Define tdengine component parameter config renderer -*/}} -{{- define "tdengine.parameterConfigRenderer" -}} -tdengine-pcr-{{ .Chart.Version }} -{{- end -}} diff --git a/addons/tdengine/templates/actionset.yaml b/addons/tdengine/templates/actionset.yaml deleted file mode 100644 index f494389cb..000000000 --- a/addons/tdengine/templates/actionset.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: dataprotection.kubeblocks.io/v1alpha1 -kind: ActionSet -metadata: - name: tdengine-dump - labels: - {{- include "tdengine.labels" . | nindent 4 }} -spec: - backupType: Full - env: - - name: BACKUP_DIR - value: /var/log/taos/backup - backup: - preBackup: [] - postBackup: [] - backupData: - image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:{{ .Values.image.tag }} - runOnTargetPodNode: true - command: - - bash - - -c - - | - {{- .Files.Get "dataprotection/dump-backup.sh" | nindent 10 }} - syncProgress: - enabled: true - intervalSeconds: 5 - restore: - postReady: - - job: - image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:{{ .Values.image.tag }} - runOnTargetPodNode: true - command: - - bash - - -c - - | - {{- .Files.Get "dataprotection/dump-restore.sh" | nindent 12 }} diff --git a/addons/tdengine/templates/backuppolicytemplate.yaml b/addons/tdengine/templates/backuppolicytemplate.yaml deleted file mode 100644 index d24040246..000000000 --- a/addons/tdengine/templates/backuppolicytemplate.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: dataprotection.kubeblocks.io/v1alpha1 -kind: BackupPolicyTemplate -metadata: - name: tdengine-backup-policy-template - labels: - {{- include "tdengine.labels" . | nindent 4 }} -spec: - serviceKind: TDEngine - compDefs: - - ^tdengine.*$ - target: - role: ready - account: root - backupMethods: - - name: dump - snapshotVolumes: false - actionSetName: tdengine-dump - targetVolumes: - volumeMounts: - - name: arch - mountPath: /var/log/taos - schedules: - - backupMethod: dump - enabled: false - cronExpression: "0 18 * * *" - retentionPeriod: 7d \ No newline at end of file diff --git a/addons/tdengine/templates/cmpd.yaml b/addons/tdengine/templates/cmpd.yaml deleted file mode 100644 index 00fe5b5cc..000000000 --- a/addons/tdengine/templates/cmpd.yaml +++ /dev/null @@ -1,205 +0,0 @@ -apiVersion: apps.kubeblocks.io/v1 -kind: ComponentDefinition -metadata: - name: {{ include "tdengine.cmpdName" . }} - labels: - {{- include "tdengine.labels" . | nindent 4 }} - annotations: - {{- include "tdengine.annotations" . | nindent 4 }} -spec: - provider: ApeCloud - description: {{ .Chart.Description }} - serviceKind: tdengine - serviceVersion: {{ .Chart.AppVersion }} - podManagementPolicy: Parallel - minReadySeconds: 10 - services: - - name: taosd - serviceName: taosd - roleSelector: ready - spec: - ports: - - name: taosd - port: 6030 - targetPort: taosd - - name: taos-adapter - port: 6041 - targetPort: taos-adapter - configs: - - name: tdengine-taos-config - template: {{ include "tdengine.configurationTemplate" . }} - volumeName: taos-config - namespace: {{ .Release.Namespace }} - externalManaged: true - - name: tdengine-adapter-config - template: {{ include "tdengine.adapterConfiguration" . }} - volumeName: adapter-config - namespace: {{ .Release.Namespace }} - defaultMode: 0644 - restartOnFileChange: true - - name: metrics-configuration - template: {{ include "tdengine.metricsConfiguration" . }} - namespace: {{ .Release.Namespace }} - volumeName: metrics-configuration - defaultMode: 0444 - restartOnFileChange: true - scripts: - - name: taos-scripts - template: {{ include "tdengine.scriptsTemplate" . }} - namespace: {{ .Release.Namespace }} - volumeName: scripts - defaultMode: 0555 - systemAccounts: - - name: root - initAccount: true - passwordGenerationPolicy: - length: 12 - letterCase: MixedCases - numDigits: 5 - # 3.3.6支持长密码和特殊字符串 - numSymbols: 0 - roles: - - name: ready - updatePriority: 1 - participatesInQuorum: false - lifecycleActions: - roleProbe: - initialDelaySeconds: 5 - timeoutSeconds: 60 - exec: - container: tdengine - command: - - /bin/bash - - -c - - | - /scripts/role-probe.sh - postProvision: - exec: - targetPodSelector: Any - container: tdengine - command: - - /bin/bash - - -c - - | - /scripts/create-mnode.sh - preCondition: ComponentReady - memberLeave: - exec: - container: tdengine - targetPodSelector: Any - command: - - bash - - -c - - | - /scripts/member-leave.sh - vars: - - name: COMPONENT_REPLICAS - valueFrom: - componentVarRef: - optional: false - replicas: Required - - name: TDENGINE_POD_FQDN_LIST - valueFrom: - componentVarRef: - compDef: tdengine - optional: false - podFQDNs: Required - - name: CLUSTER_NAME - valueFrom: - clusterVarRef: - clusterName: Required - - name: TAOS_ROOT_PASSWORD - valueFrom: - credentialVarRef: - name: root - optional: false - password: Required - - name: CLUSTER_NAMESPACE - valueFrom: - clusterVarRef: - namespace: Required - - name: TAOS_COMPONENT_NAME - valueFrom: - componentVarRef: - optional: false - componentName: Required - - name: CLUSTER_DOMAIN - value: {{ .Values.clusterDomain }} - - name: TAOS_FIRST_EP - value: "$(TAOS_COMPONENT_NAME)-0.$(TAOS_COMPONENT_NAME)-headless.$(CLUSTER_NAMESPACE).svc.$(CLUSTER_DOMAIN):6030" - # valueFrom: - # credentialVarRef: - # name: {{ .Values.defaultAuth.username }} - # optional: false - # password: Required - - name: TAOS_DISABLE_KEEPER - value: "1" - - name: TAOS_DISABLE_EXPLORER - value: "1" - - name: TAOS_SERVICE_PORT - value: "6030" - - name: TAOS_ADAPTER_PORT - value: "6041" - # valueFrom: - # credentialVarRef: - # name: {{ .Values.defaultAuth.username }} - # optional: false - # password: Required - # systemAccounts: - # - name: {{ .Values.defaultAuth.username }} - # initAccount: true - runtime: - terminationGracePeriodSeconds: 60 - containers: - - name: tdengine - imagePullPolicy: IfNotPresent - ports: - - name: taosd - containerPort: 6030 - - name: taos-adapter - containerPort: 6041 - env: - - name: TZ - value: {{ .Values.timeZone }} - - name: CURRENT_POD_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.name - livenessProbe: - exec: - command: - - taos-check - initialDelaySeconds: 15 - periodSeconds: 10 - volumeMounts: - - name: taos-config - mountPath: /etc/taos - - name: adapter-config - mountPath: /etc/taos-adapter - - name: data - mountPath: /var/lib/taos - - name: arch - mountPath: /var/log/taos - - name: scripts - mountPath: /scripts - - name: metrics - imagePullPolicy: {{ .Values.image.pullPolicy | quote }} - command: ["bash"] - args: ["-c", "/scripts/start-keeper.sh"] - env: - - name: TAOS_SERVICE_PORT - value: "6030" - - name: CURRENT_POD_NAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.name - ports: - - name: http-metrics - containerPort: 6043 - volumeMounts: - - name: metrics-configuration - mountPath: /etc/taos/ - - name: scripts - mountPath: /scripts diff --git a/addons/tdengine/templates/cmpv.yaml b/addons/tdengine/templates/cmpv.yaml deleted file mode 100644 index e8410098a..000000000 --- a/addons/tdengine/templates/cmpv.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: apps.kubeblocks.io/v1 -kind: ComponentVersion -metadata: - name: {{ include "tdengine.cmpvName" . }} - labels: - {{- include "tdengine.labels" . | nindent 4 }} - annotations: - {{- include "tdengine.apiVersion" . | nindent 4 }} -spec: - compatibilityRules: - - compDefs: - - {{ include "tdengine.cmpdRegexPattern" . }} - releases: - - 3.3.6-9 - releases: - - name: 3.3.6-9 - changes: - serviceVersion: 3.3.6-9 - images: - tdengine: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:3.3.6.9 - metrics: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:3.3.6.9 - postProvision: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:3.3.6.9 - memberLeave: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:3.3.6.9 - roleProbe: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:3.3.6.9 diff --git a/addons/tdengine/templates/configuration-template.yaml b/addons/tdengine/templates/configuration-template.yaml deleted file mode 100644 index 03d945675..000000000 --- a/addons/tdengine/templates/configuration-template.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ include "tdengine.adapterConfiguration" . }} - labels: - {{- include "tdengine.labels" . | nindent 4 }} -data: - taosadapter.toml: |- - {{- .Files.Get "configs/tdengine-taosadapter-config.tpl" | nindent 4 }} ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ include "tdengine.configurationTemplate" . }} - labels: - {{- include "tdengine.labels" . | nindent 4 }} -data: - taos.cfg: |- - {{- .Files.Get "configs/tdengine-taos-config.tpl" | nindent 4 }} diff --git a/addons/tdengine/templates/metrics-configmap.yaml b/addons/tdengine/templates/metrics-configmap.yaml deleted file mode 100644 index 651c59cc6..000000000 --- a/addons/tdengine/templates/metrics-configmap.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ include "tdengine.metricsConfiguration" . }} - labels: - {{- include "tdengine.labels" . | nindent 4 }} -data: - taoskeeper.toml: |- - {{- .Files.Get "configs/tdengine-taoskeeper-config.tpl" | nindent 4 }} diff --git a/addons/tdengine/templates/paramsdef.yaml b/addons/tdengine/templates/paramsdef.yaml deleted file mode 100644 index d7170d04d..000000000 --- a/addons/tdengine/templates/paramsdef.yaml +++ /dev/null @@ -1,61 +0,0 @@ -{{- $cc := .Files.Get "configs/tdengine-taos-config-effect-scope.yaml" | fromYaml }} -apiVersion: parameters.kubeblocks.io/v1alpha1 -kind: ParametersDefinition -metadata: - name: {{ include "tdengine.parameterDefinitionName" . }} - labels: - {{- include "tdengine.labels" . | nindent 4 }} -spec: - reloadAction: - shellTrigger: - sync: true - command: - - "reload-parameter.sh" - scriptConfig: - scriptConfigMapRef: tdengine-scripts-template - namespace: {{ .Release.Namespace }} - toolsSetup: - mountPoint: /kb_tools - toolConfigs: - - name: kb-tools - asContainerImage: true - image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:{{ .Values.image.tag }} - - fileName: taos.cfg - - # ConfigurationSchema that impose restrictions on engine parameter's rule - parametersSchema: - # top level clickhouse configuration type - topLevelKey: TaosParameter - - # schemaInJSON: auto generate from cue scripts - # example: ../../pkg/configuration/testdata/mysql_openapi.json - cue: |- - {{- .Files.Get "configs/tdengine-taos-config-constraint.cue" | nindent 6 }} - - ## define static parameter list - {{- if hasKey $cc "staticParameters" }} - staticParameters: - {{- $params := get $cc "staticParameters" }} - {{- range $params }} - - {{ . }} - {{- end }} - {{- end}} - - ## define dynamic parameter list - {{- if hasKey $cc "dynamicParameters" }} - dynamicParameters: - {{- $params := get $cc "dynamicParameters" }} - {{- range $params }} - - {{ . }} - {{- end }} - {{- end}} - - ## define immutable parameter list, this feature is not currently supported. - {{- if hasKey $cc "immutableParameters" }} - immutableParameters: - {{- $params := get $cc "immutableParameters" }} - {{- range $params }} - - {{ . }} - {{- end }} - {{- end}} diff --git a/addons/tdengine/templates/pcr.yaml b/addons/tdengine/templates/pcr.yaml deleted file mode 100644 index 8d13e4bf8..000000000 --- a/addons/tdengine/templates/pcr.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: parameters.kubeblocks.io/v1alpha1 -kind: ParamConfigRenderer -metadata: - name: {{ include "tdengine.parameterConfigRenderer" . }} - labels: - {{- include "tdengine.labels" . | nindent 4 }} - annotations: - {{- include "tdengine.annotations" . | nindent 4 }} -spec: - componentDef: {{ include "tdengine.cmpdName" . }} - parametersDefs: - - {{ include "tdengine.parameterDefinitionName" . }} - - configs: - - name: taos.cfg - fileFormatConfig: - format: redis \ No newline at end of file diff --git a/addons/tdengine/templates/scripts-template.yaml b/addons/tdengine/templates/scripts-template.yaml deleted file mode 100644 index a1419e42f..000000000 --- a/addons/tdengine/templates/scripts-template.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ include "tdengine.scriptsTemplate" . }} - labels: - {{- include "tdengine.labels" . | nindent 4 }} -data: - taos-adapter-check.sh: | - {{- .Files.Get "scripts/taos-adapter-check.sh.tpl" | nindent 4 }} - entrypoint.sh: | - {{- .Files.Get "scripts/entrypoint.sh" | nindent 4 }} - start-keeper.sh: | - {{- .Files.Get "scripts/start-keeper.sh" | nindent 4 }} - reload-parameter.sh: | - {{- .Files.Get "scripts/reload-parameter.sh" | nindent 4 }} - create-mnode.sh: | - {{- .Files.Get "scripts/create-mnode.sh" | nindent 4 }} - role-probe.sh: | - {{- .Files.Get "scripts/role-probe.sh" | nindent 4 }} - member-leave.sh: | - {{- .Files.Get "scripts/member-leave.sh" | nindent 4 }} \ No newline at end of file diff --git a/addons/tdengine/values.yaml b/addons/tdengine/values.yaml deleted file mode 100644 index 3eeed308a..000000000 --- a/addons/tdengine/values.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Default values for tdengine. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -## @param nameOverride -nameOverride: "" - -## @param fullnameOverride -fullnameOverride: "" - -image: - registry: docker.io - repository: tdengine/tdengine - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "3.3.6.9" - -imagePullSecrets: [] - -defaultAuth: - username: root - password: taosdata - -timeZone: Asia/Shanghai - -clusterDomain: cluster.local diff --git a/examples/tdengine/README.md b/examples/tdengine/README.md deleted file mode 100644 index f5940b55f..000000000 --- a/examples/tdengine/README.md +++ /dev/null @@ -1,132 +0,0 @@ -# TDengine - -TDengine™ is a next generation data historian purpose-built for Industry 4.0 and Industrial IoT. It enables real-time data ingestion, storage, analysis, and distribution of petabytes per day, generated by billions of sensors and data collectors. - -## Features In KubeBlocks - -### Lifecycle Management - -| Horizontal
scaling | Vertical
scaling | Expand
volume | Restart | Stop/Start | Configure | Expose | Switchover | -|------------------------|-----------------------|-------------------|-----------|------------|-----------|--------|------------| -| Yes (Scale-out) | Yes | Yes | Yes | Yes | No | Yes | N/A | - -### Versions - -| Versions | -|----------| -| 3.0.5.0 | - -## Prerequisites - -- Kubernetes cluster >= v1.21 -- `kubectl` installed, refer to [K8s Install Tools](https://kubernetes.io/docs/tasks/tools/) -- Helm, refer to [Installing Helm](https://helm.sh/docs/intro/install/) -- KubeBlocks installed and running, refer to [Install Kubeblocks](../docs/prerequisites.md) -- TDengine™ Addon Enabled, refer to [Install Addons](../docs/install-addon.md) -- Create K8s Namespace `demo`, to keep resources created in this tutorial isolated: - - ```bash - kubectl create ns demo - ``` - -## Examples - -### [Create](cluster.yaml) - -Create a tdengine cluster: - -```bash -kubectl apply -f examples/tdengine/cluster.yaml -``` - -When the cluster status is `Running`, you can access the TDengine service by login to the pod and show the dnodes - -```bash -kubectl exec -i -t tdengine-cluster-tdengine-0 -- taos -s "show dnodes" -``` - -You will see there are 3 dnodes in the cluster as we defined in the cluster.yaml - -### Horizontal scaling - -#### [Scale-out](scale-out.yaml) - -Horizontal scaling out by adding ONE more replica: - -```bash -kubectl apply -f examples/tdengine/scale-out.yaml -``` - -#### [Scale-in](scale-in.yaml) - -> [!WARNING] -> This operation is not fully supported by TDEngine. -> Even though you can scale-in through API, it is not recommended to scale-in the cluster, as per documentation of TDEngine.[^1] - -#### Scale-in/out using Cluster API - -Alternatively, you can update the `replicas` field in the `spec.componentSpecs.replicas` section to your desired non-zero number. - -```yaml -# snippet of cluster.yaml -apiVersion: apps.kubeblocks.io/v1 -kind: Cluster -spec: - componentSpecs: - - name: tdengine - replicas: 1 # Set the number of replicas to your desired number -``` - -### [Vertical scaling](verticalscale.yaml) - -Vertical scaling up or down specified components requests and limits cpu or memory resource in the cluster - -```bash -kubectl apply -f examples/tdengine/verticalscale.yaml -``` - -### [Expand volume](volumeexpand.yaml) - -Increase size of volume storage with the specified components in the cluster - -```bash -kubectl apply -f examples/tdengine/volumeexpand.yaml -``` - -### [Restart](restart.yaml) - -Restart the specified components in the cluster - -```bash -kubectl apply -f examples/tdengine/restart.yaml -``` - -### [Stop](stop.yaml) - -Stop the cluster and release all the pods of the cluster, but the storage will be reserved - -```bash -kubectl apply -f examples/tdengine/stop.yaml -``` - -### [Start](start.yaml) - -Start the stopped cluster - -```bash -kubectl apply -f examples/tdengine/start.yaml -``` - -### Delete - -If you want to delete the cluster and all its resource, you can modify the termination policy and then delete the cluster - -```bash -kubectl patch cluster -n demo tdengine-cluster -p '{"spec":{"terminationPolicy":"WipeOut"}}' --type="merge" - -kubectl delete cluster -n demo tdengine-cluster -``` - -## References - -[^1]: Deploy TDengine on K8s using Helm, diff --git a/examples/tdengine/cluster.yaml b/examples/tdengine/cluster.yaml deleted file mode 100644 index 3feeddc9f..000000000 --- a/examples/tdengine/cluster.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: apps.kubeblocks.io/v1 -kind: Cluster -metadata: - name: tdengine-cluster - namespace: demo -spec: - terminationPolicy: Delete - componentSpecs: - - name: tdengine - componentDef: tdengine - replicas: 3 - resources: - limits: - cpu: "2" - memory: "2Gi" - requests: - cpu: "1" - memory: "1Gi" - # Specifies a list of PersistentVolumeClaim templates that define the storage - # requirements for the Component. - volumeClaimTemplates: - # Refers to the name of a volumeMount defined in - # `componentDefinition.spec.runtime.containers[*].volumeMounts - - name: data - spec: - # The name of the StorageClass required by the claim. - # If not specified, the StorageClass annotated with - # `storageclass.kubernetes.io/is-default-class=true` will be used by default - storageClassName: "" - accessModes: - - ReadWriteOnce - resources: - requests: - # Set the storage size as needed - storage: 20Gi # Specifies a list of PersistentVolumeClaim templates that define the storage diff --git a/examples/tdengine/restart.yaml b/examples/tdengine/restart.yaml deleted file mode 100644 index aef83cba3..000000000 --- a/examples/tdengine/restart.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: operations.kubeblocks.io/v1alpha1 -kind: OpsRequest -metadata: - name: tdengine-restart - namespace: demo -spec: - # Specifies the name of the Cluster resource that this operation is targeting. - clusterName: tdengine-cluster - type: Restart - # Lists Components to be restarted. ComponentOps specifies the Component to be operated on. - restart: - # Specifies the name of the Component. - - componentName: tdengine diff --git a/examples/tdengine/scale-out.yaml b/examples/tdengine/scale-out.yaml deleted file mode 100644 index b2dc3d17e..000000000 --- a/examples/tdengine/scale-out.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: operations.kubeblocks.io/v1alpha1 -kind: OpsRequest -metadata: - name: tdengine-horizontalscaling - namespace: demo -spec: - # Specifies the name of the Cluster resource that this operation is targeting. - clusterName: tdengine-cluster - type: HorizontalScaling - # Lists HorizontalScaling objects, each specifying scaling requirements for a Component, including desired total replica counts, configurations for new instances, modifications for existing instances, and instance downscaling options - horizontalScaling: - # Specifies the name of the Component. - - componentName: tdengine - # Specifies the replica changes for scaling in components - scaleIn: - # Specifies the replica changes for the component. - # add one more replica to current component - replicaChanges: 1 diff --git a/examples/tdengine/start.yaml b/examples/tdengine/start.yaml deleted file mode 100644 index d904a5f41..000000000 --- a/examples/tdengine/start.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: operations.kubeblocks.io/v1alpha1 -kind: OpsRequest -metadata: - name: tdengine-start - namespace: demo -spec: - # Specifies the name of the Cluster resource that this operation is targeting. - clusterName: tdengine-cluster - type: Start diff --git a/examples/tdengine/stop.yaml b/examples/tdengine/stop.yaml deleted file mode 100644 index f6f6003fb..000000000 --- a/examples/tdengine/stop.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: operations.kubeblocks.io/v1alpha1 -kind: OpsRequest -metadata: - name: tdengine-stop - namespace: demo -spec: - # Specifies the name of the Cluster resource that this operation is targeting. - clusterName: tdengine-cluster - type: Stop diff --git a/examples/tdengine/verticalscale.yaml b/examples/tdengine/verticalscale.yaml deleted file mode 100644 index 9f8abfe06..000000000 --- a/examples/tdengine/verticalscale.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: operations.kubeblocks.io/v1alpha1 -kind: OpsRequest -metadata: - name: tdengine-verticalscaling - namespace: demo -spec: - # Specifies the name of the Cluster resource that this operation is targeting. - clusterName: tdengine-cluster - type: VerticalScaling - # Lists VerticalScaling objects, each specifying a component and its desired compute resources for vertical scaling. - verticalScaling: - - componentName: tdengine - # VerticalScaling refers to the process of adjusting the compute resources (e.g., CPU, memory) allocated to a Component. It defines the parameters required for the operation. - requests: - cpu: '1' - memory: 1Gi - limits: - cpu: '1' - memory: 1Gi diff --git a/examples/tdengine/volumeexpand.yaml b/examples/tdengine/volumeexpand.yaml deleted file mode 100644 index d801472d1..000000000 --- a/examples/tdengine/volumeexpand.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: operations.kubeblocks.io/v1alpha1 -kind: OpsRequest -metadata: - name: tdengine-volumeexpansion - namespace: demo -spec: - # Specifies the name of the Cluster resource that this operation is targeting. - clusterName: tdengine-cluster - type: VolumeExpansion - # Lists VolumeExpansion objects, each specifying a component and its corresponding volumeClaimTemplates that requires storage expansion. - volumeExpansion: - # Specifies the name of the Component. - - componentName: tdengine - # volumeClaimTemplates specifies the storage size and volumeClaimTemplate name. - volumeClaimTemplates: - - name: data - storage: 30Gi