Allow setting the metrics port name
Here, we scrape every pod that has a .*-metrics port here But the helm chart is locked to `metrics` which our Prometheus doesn't see This PR will make it configurable with a default value of `metrics` Signed-off-by: Julien Duchesne <julien.duchesne@grafana.com>
This commit is contained in:
parent
7477b33cba
commit
98d8c55e16
2 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,7 @@ spec:
|
|||
resources:
|
||||
{{- toYaml .Values.controller.resources | nindent 12 }}
|
||||
ports:
|
||||
- name: metrics
|
||||
- name: {{ .Values.controller.metricsConfig.portName }}
|
||||
containerPort: {{ .Values.controller.metricsConfig.port }}
|
||||
- containerPort: 6060
|
||||
livenessProbe: {{ .Values.controller.livenessProbe | toYaml | nindent 12 }}
|
||||
|
|
|
@ -57,6 +57,7 @@ controller:
|
|||
enabled: false
|
||||
path: /metrics
|
||||
port: 9090
|
||||
portName: metrics
|
||||
servicePort: 8080
|
||||
servicePortName: metrics
|
||||
# the controller container's securityContext
|
||||
|
|
Loading…
Reference in a new issue