Skip to content

Commit a1ef252

Browse files
DrFaust92zeritti
andauthored
[prometheus-nginx-exporter] bump to 1.4.0 (#5093)
* bump to 1.4.0 Signed-off-by: drfaust92 <ilia.lazebnik@gmail.com> * Add an option in CI test case Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com> * Correct and update comments at options Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com> * Use new flag format Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com> * Add an upgrade note Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com> * Insert namespaceOverride in values.yaml Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com> * Set app version label from image tag first if present Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com> --------- Signed-off-by: drfaust92 <ilia.lazebnik@gmail.com> Signed-off-by: zeritti <47476160+zeritti@users.noreply.github.com> Co-authored-by: zeritti <47476160+zeritti@users.noreply.github.com>
1 parent eb7ab52 commit a1ef252

File tree

7 files changed

+30
-13
lines changed

7 files changed

+30
-13
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: nginx
33
repository: https://charts.bitnami.com/bitnami
4-
version: 15.3.4
5-
digest: sha256:c5ee96dcdfa5a8ef4aa0a91e734ddedeb3c43f04fa29775a9ec6465f5eeb0192
6-
generated: "2023-10-15T13:18:06.969016+03:00"
4+
version: 18.3.1
5+
digest: sha256:0c9d53b23d2d09220457f35ba99516e7fe3a6f1ca71e2d165139d5a83db8430f
6+
generated: "2024-12-24T10:01:22.264584-05:00"

charts/prometheus-nginx-exporter/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
apiVersion: v2
33
description: A Helm chart for NGINX Prometheus Exporter
44
name: prometheus-nginx-exporter
5-
version: 0.2.2
6-
appVersion: 0.11.0
5+
version: 1.0.0
6+
appVersion: 1.4.0
77
home: https://github.com/nginxinc/nginx-prometheus-exporter
88
sources:
99
- https://github.com/nginxinc/nginx-prometheus-exporter
@@ -30,6 +30,6 @@ annotations:
3030
type: application
3131
dependencies:
3232
- name: nginx
33-
version: "15.3.4"
33+
version: "18.3.1"
3434
repository: https://charts.bitnami.com/bitnami
3535
condition: nginx.enabled

charts/prometheus-nginx-exporter/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ helm upgrade [RELEASE_NAME] prometheus-community/prometheus-nginx-exporter --ins
4444

4545
_See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command documentation._
4646

47+
### To 1.0
48+
49+
Chart release 1.0 reflects a major bump of the default NGINX Exporter image tag from major number 0 to 1.
50+
51+
This release has switched to using flags in the new format (`--flag`) but still supports the
52+
deprecated format (`-flag`) transparently for NGINX Exporter below release 1.0.0.
53+
4754
## Configuring
4855

4956
See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing). To see all configurable options with detailed comments, visit the chart's [values.yaml](./values.yaml), or run these configuration commands:

charts/prometheus-nginx-exporter/ci/ci-values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ nginx:
2121
stub_status on;
2222
}
2323
}
24+
25+
options:
26+
nginx.timeout: 10s

charts/prometheus-nginx-exporter/templates/_helpers.tpl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
6262
app.kubernetes.io/component: metrics
6363
app.kubernetes.io/part-of: {{ template "prometheus-nginx-exporter.name" . }}
6464
{{- include "prometheus-nginx-exporter.selectorLabels" . }}
65-
{{- if .Chart.AppVersion }}
66-
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
67-
{{- end }}
65+
app.kubernetes.io/version: {{ default .Chart.AppVersion .Values.image.tag | quote }}
6866
{{- if .Values.additionalLabels }}
6967
{{ toYaml .Values.additionalLabels }}
7068
{{- end }}

charts/prometheus-nginx-exporter/templates/deployment.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,17 @@ spec:
3737
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3838
imagePullPolicy: {{ .Values.image.pullPolicy }}
3939
args:
40+
{{- if semverCompare ">=1.0.0-0" (coalesce .Values.image.tag .Chart.AppVersion) }}
41+
- "--nginx.scrape-uri={{ tpl .Values.nginxServer . }}"
42+
{{- range $key, $value := .Values.options }}
43+
- "--{{ $key }}{{ if $value }}={{ $value }}{{ end }}"
44+
{{- end }}
45+
{{- else }}
4046
- "-nginx.scrape-uri={{ tpl .Values.nginxServer . }}"
4147
{{- range $key, $value := .Values.options }}
4248
- "-{{ $key }}{{ if $value }}={{ $value }}{{ end }}"
43-
{{- end }}
49+
{{- end}}
50+
{{- end}}
4451
ports:
4552
- name: http
4653
containerPort: {{ .Values.service.port }}

charts/prometheus-nginx-exporter/values.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@ image:
2727
nameOverride: ""
2828
fullnameOverride: ""
2929

30+
# Overide deployment namespace
31+
namespaceOverride: ""
32+
3033
# Add your nginx server details here
3134
nginxServer: "http://{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local:8080/stub_status"
3235
# nginxServer: "http://frontend.default.svc.cluster.local:8080/stub_status"
3336

3437
# Arguments - https://github.com/nginxinc/nginx-prometheus-exporter#command-line-arguments
3538
options: {}
36-
# -nginx.plus
37-
# -nginx.retries int
39+
# nginx.plus:
40+
# nginx.timeout: 5s
3841

3942
livenessProbe:
4043
httpGet:
@@ -57,7 +60,6 @@ service:
5760

5861
podAnnotations: {}
5962

60-
6163
resources: {}
6264
# We usually recommend not to specify default resources and to leave this as a conscious
6365
# choice for the user. This also increases chances charts run on environments with little

0 commit comments

Comments
 (0)