Skip to content

Commit 4973425

Browse files
romil93zanhsiehRomil Vasaniokgolove
authored
[prometheus-nats-exporter] Support customization of timeout, period for NATS probes (#5971)
Signed-off-by: Romil Vasani <[email protected]> Signed-off-by: Romil Vasani <[email protected]> Co-authored-by: MH <[email protected]> Co-authored-by: Romil Vasani <[email protected]> Co-authored-by: Mikhail Naletov <[email protected]>
1 parent 89831f1 commit 4973425

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

charts/prometheus-nats-exporter/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: v1
33
appVersion: 0.17.3
44
description: A Helm chart for prometheus-nats-exporter
55
name: prometheus-nats-exporter
6-
version: 2.20.1
6+
version: 2.20.2
77
home: https://github.com/nats-io/prometheus-nats-exporter
88
sources:
99
- https://github.com/nats-io/prometheus-nats-exporter

charts/prometheus-nats-exporter/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,14 @@ spec:
7070
httpGet:
7171
path: /metrics
7272
port: http
73+
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
74+
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
7375
readinessProbe:
7476
httpGet:
7577
path: /metrics
7678
port: http
79+
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
80+
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
7781
resources:
7882
{{ toYaml .Values.resources | indent 12 }}
7983
{{- with .Values.nodeSelector }}

charts/prometheus-nats-exporter/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ service:
1717
port: 80
1818
targetPort: 7777
1919

20+
livenessProbe:
21+
timeoutSeconds: 1
22+
periodSeconds: 10
23+
readinessProbe:
24+
timeoutSeconds: 1
25+
periodSeconds: 10
26+
2027
serviceMonitor:
2128
enabled: false
2229
additionalLabels: {}

0 commit comments

Comments
 (0)