Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Commit b3048c1

Browse files
author
Bennu
authored
Make the parameter interval of serviceMonitor configurable (#288)
Signed-off-by: Bennu <yunmei.li@zilliz.com>
1 parent be00d1e commit b3048c1

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

charts/milvus/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: milvus
33
appVersion: "2.0.0-pre-ga"
44
kubeVersion: "^1.10.0-0"
55
description: Milvus is an open-source vector database built to power AI applications and vector similarity search.
6-
version: 2.4.25
6+
version: 2.4.26
77
keywords:
88
- milvus
99
- elastic

charts/milvus/templates/servicemonitor.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ metadata:
1414
spec:
1515
endpoints:
1616
- honorLabels: true
17-
interval: 30s
17+
interval: {{ .Values.metrics.serviceMonitor.interval }}
1818
path: /metrics
1919
port: metrics
2020
namespaceSelector:
@@ -44,7 +44,7 @@ metadata:
4444
spec:
4545
endpoints:
4646
- honorLabels: true
47-
interval: 30s
47+
interval: {{ .Values.metrics.serviceMonitor.interval }}
4848
path: /metrics
4949
port: metrics
5050
namespaceSelector:

charts/milvus/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ metrics:
7777
serviceMonitor:
7878
# Set this to `true` to create ServiceMonitor for Prometheus operator
7979
enabled: false
80-
80+
interval: "30s"
8181
# Additional labels that can be used so ServiceMonitor will be discovered by Prometheus
8282
additionalLabels: {}
8383

0 commit comments

Comments
 (0)