diff --git a/src/common/Chart.yaml b/src/common/Chart.yaml index 38a6e4b..f7c161e 100644 --- a/src/common/Chart.yaml +++ b/src/common/Chart.yaml @@ -15,7 +15,7 @@ type: library # 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.9.8 +version: 1.9.9 # This is the version number of the application being deployed. This version number should be diff --git a/src/common/templates/_monitoring.tpl b/src/common/templates/_monitoring.tpl index c30a9dd..0fd5af6 100644 --- a/src/common/templates/_monitoring.tpl +++ b/src/common/templates/_monitoring.tpl @@ -119,6 +119,9 @@ spec: podMetricsEndpoints: - portNumber: {{ default 8889 (int $port) }} interval: {{ default "120s" $interval }} + {{- with $.Values.global.monitoring.prometheusPodMonitor.scrapeTimeout }} + scrapeTimeout: {{ . }} + {{- end }} path: {{ default "/metrics" $path | quote }} {{- include "harnesscommon.tplvalues.render" ( dict "value" ((($.Values).monitoring).PodMetricsEndpointsConfig) "context" $ ) | nindent 6 }} {{- include "harnesscommon.tplvalues.render" ( dict "value" ((($.Values).monitoring).additionalPodMetricsEndpoints) "context" $ ) | nindent 4 }}