This is an automated email from the ASF dual-hosted git repository.

gongchao pushed a commit to branch helm-chart
in repository https://gitbox.apache.org/repos/asf/hertzbeat-helm-chart.git

commit cda52910bea009806b79e40bafda80c544024334
Author: tomsun28 <[email protected]>
AuthorDate: Sat Dec 2 17:04:59 2023 +0800

    add docker-compose script hertzbeat+mysql+victoria-metrics all in one 
(#1370)
    
    Signed-off-by: tomsun28 <[email protected]>
---
 hertzbeat/templates/manager/configmap.yaml | 14 ++++----------
 hertzbeat/templates/tsdb/service.yaml      |  4 ++--
 hertzbeat/templates/tsdb/statefulset.yaml  |  6 +++---
 hertzbeat/values.yaml                      |  4 ++--
 4 files changed, 11 insertions(+), 17 deletions(-)

diff --git a/hertzbeat/templates/manager/configmap.yaml 
b/hertzbeat/templates/manager/configmap.yaml
index 4e42f7d..cb68ac2 100644
--- a/hertzbeat/templates/manager/configmap.yaml
+++ b/hertzbeat/templates/manager/configmap.yaml
@@ -100,28 +100,22 @@ data:
         # 存储历史数据方式, 下方只能enabled启用一种方式
         jpa:
           enabled: false
-          # The maximum retention time for history records, after which 
records will be deleted
-          expire-time: 1h
-          # The maximum number of history records retained, if this number is 
exceeded, half of the data in this configuration item will be deleted
-          # (please set this configuration reasonably as history records can 
affect performance when it is large)
-          # 历史数据的最大保留条数,超过此数量时,将会删除一半于此配量的数据(由于历史数据较大时会影响性能,请合理设置此配置)
-          max-history-record-num: 6000
         victoria-metrics:
-          enabled: false
-          url: http://localhost:8428
+          enabled: true
+          url: http://{{ include "hertzbeat.tsdb" . }}:8428
           username: root
           password: root
         td-engine:
           enabled: false
           driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
-          url: jdbc:TAOS-RS://localhost:6041/hertzbeat
+          url: jdbc:TAOS-RS://{{ include "hertzbeat.tsdb" . }}:6041/hertzbeat
           username: root
           password: taosdata
         greptime:
           enabled: false
           endpoint: localhost:4001
         iot-db:
-          enabled: true
+          enabled: false
           host: {{ include "hertzbeat.tsdb" . }}
           rpc-port: 6667
           username: root
diff --git a/hertzbeat/templates/tsdb/service.yaml 
b/hertzbeat/templates/tsdb/service.yaml
index 73f93b1..9cb1995 100644
--- a/hertzbeat/templates/tsdb/service.yaml
+++ b/hertzbeat/templates/tsdb/service.yaml
@@ -7,8 +7,8 @@ metadata:
 spec:
   type: ClusterIP
   ports:
-    - port: 6667
-      targetPort: 6667
+    - port: 8428
+      targetPort: 8428
       protocol: TCP
   selector:
     {{- include "hertzbeat.selectorLabels" . | nindent 4 }}
diff --git a/hertzbeat/templates/tsdb/statefulset.yaml 
b/hertzbeat/templates/tsdb/statefulset.yaml
index ba2aec0..36add18 100644
--- a/hertzbeat/templates/tsdb/statefulset.yaml
+++ b/hertzbeat/templates/tsdb/statefulset.yaml
@@ -30,12 +30,12 @@ spec:
         imagePullPolicy: {{ .Values.tsdb.image.pullPolicy }}
         livenessProbe:
           tcpSocket:
-            port: 6667
+            port: 8428
           initialDelaySeconds: 300
           periodSeconds: 10
         readinessProbe:
           tcpSocket:
-            port: 6667
+            port: 8428
           initialDelaySeconds: 1
           periodSeconds: 10
         resources:
@@ -45,7 +45,7 @@ spec:
               name: "{{ include "hertzbeat.tsdb" . }}"
         volumeMounts:
         - name: data
-          mountPath: /iotdb/data
+          mountPath: /victoria-metrics-data
           subPath: ""
       volumes:
         {{- if not .Values.tsdb.persistence.enabled }}
diff --git a/hertzbeat/values.yaml b/hertzbeat/values.yaml
index b422e5b..9f10f59 100644
--- a/hertzbeat/values.yaml
+++ b/hertzbeat/values.yaml
@@ -71,10 +71,10 @@ database:
 
 tsdb:
   image:
-    repository: apache/iotdb
+    repository: victoriametrics/victoria-metrics
     pullPolicy: IfNotPresent
     # Overrides the image tag whose default is the chart appVersion.
-    tag: "1.2.2-standalone"
+    tag: "v1.95.1"
   timezone: "Asia/Shanghai"
   persistence:
     enabled: true


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to