diff --git a/charts/blockscout-stack/CHANGELOG.md b/charts/blockscout-stack/CHANGELOG.md index 92e3cac..236c907 100644 --- a/charts/blockscout-stack/CHANGELOG.md +++ b/charts/blockscout-stack/CHANGELOG.md @@ -1,5 +1,11 @@ # ChangeLog +## 1.5.0 + +### Feature + +- Add PodMonitor for frontend + ## 1.4.4 ### Feature diff --git a/charts/blockscout-stack/Chart.yaml b/charts/blockscout-stack/Chart.yaml index 4d8e88a..5004dd1 100644 --- a/charts/blockscout-stack/Chart.yaml +++ b/charts/blockscout-stack/Chart.yaml @@ -15,10 +15,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.4.4 +version: 1.5.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "6.1.0" +appVersion: "6.3.0" diff --git a/charts/blockscout-stack/templates/frontend-deployment.yaml b/charts/blockscout-stack/templates/frontend-deployment.yaml index 0472d6f..92546d8 100644 --- a/charts/blockscout-stack/templates/frontend-deployment.yaml +++ b/charts/blockscout-stack/templates/frontend-deployment.yaml @@ -76,6 +76,10 @@ spec: - name: NEXT_PUBLIC_STATS_API_HOST value: "https://{{ .Values.stats.ingress.hostname }}" {{- end }} + {{- if .Values.config.prometheus.enabled }} + - name: PROMETHEUS_METRICS_ENABLED + value: "true" + {{- end }} {{- range $key, $value := .Values.frontend.env }} - name: {{ $key }} value: {{ $value | quote }} diff --git a/charts/blockscout-stack/templates/frontend-podmonitor.yaml b/charts/blockscout-stack/templates/frontend-podmonitor.yaml new file mode 100644 index 0000000..038d5e4 --- /dev/null +++ b/charts/blockscout-stack/templates/frontend-podmonitor.yaml @@ -0,0 +1,15 @@ +{{- if and .Values.frontend.enabled .Values.config.prometheus.enabled }} +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: {{ include "blockscout-stack.fullname" . }}-frontend-podmonitor + labels: + {{- include "blockscout-stack.labels" . | nindent 4 }} +spec: + podMetricsEndpoints: + - port: http + path: /node-api/metrics + selector: + matchLabels: + app: {{ .Release.Name }}-frontend +{{- end }}