Skip to content

Commit

Permalink
Prometheus Metrics (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryDodzin authored Dec 12, 2024
1 parent 5a5f508 commit a2a3441
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mirrord-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ spec:
- name: OPERATOR_APPLICATION_PAUSE_AUTO_SYNC
value: "true"
{{- end }}
- name: OPERATOR_METRICS_ENABLED
value: {{ .Values.operator.metrics | ternary "true" "false" | quote }}
- name: OPERATOR_JSON_LOG
value: {{ .Values.operator.jsonLog | ternary "true" "false" | quote }}
- name: OPERATOR_AGENT_CONFIG
Expand Down Expand Up @@ -128,6 +130,10 @@ spec:
ports:
- containerPort: {{ .Values.operator.port }}
name: https
{{- if .Values.operator.metrics }}
- containerPort: 9000
name: metrics
{{- end }}
readinessProbe:
httpGet:
path: /health
Expand Down
2 changes: 2 additions & 0 deletions mirrord-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ operator:
kafkaSplitting: false
# Has to be set to `true` in order to use the argocd application auto-sync pause feature.
applicationPauseAutoSync: false
# Enable prometheus metrics endpoint
metrics: false

# imagePullSecrets:
# - name: value
Expand Down

0 comments on commit a2a3441

Please sign in to comment.