Skip to content

Commit

Permalink
Enabled Metrics Port and Service Support + updated elastalert-server …
Browse files Browse the repository at this point in the history
…image
  • Loading branch information
k4kratik committed Mar 17, 2023
1 parent ed10878 commit 89c9d64
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ spec:
- name: ws
containerPort: 3333
protocol: TCP
{{- if .Values.metrics.enabled }}
- name: metrics
containerPort: 9979
protocol: TCP
{{- end }}
livenessProbe:
httpGet:
path: /
Expand Down
6 changes: 6 additions & 0 deletions templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ spec:
targetPort: ws
protocol: TCP
name: ws
{{- if .Values.metrics.enabled }}
- port: {{ .Values.metrics.port | default 9979 }}
targetPort: metrics
protocol: TCP
name: metrics
{{- end}}
selector:
app.kubernetes.io/name: {{ include "elastalert.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
8 changes: 6 additions & 2 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
replicaCount: 1

image:
repository: daichi703n/elastalert
tag: 0.2.1-dev
repository: praecoapp/elastalert-server
tag: 20230219
pullPolicy: IfNotPresent

imagePullSecrets: []
Expand Down Expand Up @@ -134,3 +134,7 @@ realertIntervalMins: ""
#
# CAUTION: It is recommended to set this to `elastalert` for ES6+. Otherwise elastalert produces confusing index names due to https://github.com/Yelp/elastalert/issues/1479#issuecomment-356380179
writebackIndex: elastalert_status

metrics:
enabled: false
port: 9979

0 comments on commit 89c9d64

Please sign in to comment.