Skip to content

Commit

Permalink
feat(metrics): support metrics configuration (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcRiiad authored Nov 21, 2024
1 parent 9bee33f commit 066db31
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
23 changes: 22 additions & 1 deletion config/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,29 @@ play {
}
}

{{- if .Values.metrics.enabled }}
kamon {
modules {
apm-reporter.enabled = no
prometheus-reporter.enabled = yes
host-metrics.enabled = no
jvm-metrics {
enabled = no
}
}
prometheus {
include-environment-tags = true
embedded-server {
hostname = 0.0.0.0
port = {{ .Values.metrics.port }}
}
}
init.hide-banner = yes
}
{{- end }}

{{- if .Values.extraConfig }}

# Extra configuration injected by extraConfig
{{ .Values.extraConfig | nindent 2 }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -605,3 +605,9 @@ extraObjects:
## - key: stream-secret-key
## name: stream-secret-name

## Enable Prometheus metrics
metrics:
## @param metrics.enabled Whether to enable Prometheus metrics
enabled: false
## @param metrics.port Prometheus metrics port
port: 9095

0 comments on commit 066db31

Please sign in to comment.