Skip to content

Commit

Permalink
metrics :: support metrics configuration (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcRiiad authored Nov 21, 2024
1 parent 1090673 commit f422bd6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
27 changes: 26 additions & 1 deletion config/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,33 @@ 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 }}
7 changes: 7 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -712,3 +712,10 @@ extraObjects: []
## data:
## - key: horizon-secret-key
## name: horizon-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 f422bd6

Please sign in to comment.