File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed
charts/prometheus-mongodb-exporter Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ maintainers:
1818name : prometheus-mongodb-exporter
1919sources :
2020 - https://github.com/percona/mongodb_exporter
21- version : 3.12.1
21+ version : 3.13.0
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ Verify the application is working by running these commands:
22{{if contains "NodePort" .Values.service.type }}
33 NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
44 NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "prometheus-mongodb-exporter.fullname" . }})
5- curl http://$NODE_IP:$NODE_PORT/metrics
5+ curl http://$NODE_IP:$NODE_PORT{{ .Values.serviceMonitor.telemetryPath }}
66{{- else if contains "LoadBalancer" .Values.service.type }}
77 # NOTE: It may take a few minutes for the LoadBalancer IP to be available.
88 SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "prometheus-mongodb-exporter.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
9- curl http://$SERVICE_IP:{{ .Values.service.port }}/metrics
9+ curl http://$SERVICE_IP:{{ .Values.service.port }}{{ .Values.serviceMonitor.telemetryPath }}
1010{{- else if contains "ClusterIP" .Values.service.type }}
1111 kubectl port-forward service/{{ include "prometheus-mongodb-exporter.fullname" . }} {{ .Values.service.port }}
12- curl http://127.0.0.1:{{ .Values.service.port }}/metrics
12+ curl http://127.0.0.1:{{ .Values.service.port }}{{ .Values.serviceMonitor.telemetryPath }}
1313{{- end }}
Original file line number Diff line number Diff line change 4444 {{- end }}
4545 {{- else }}
4646 - port : {{ .Values.service.portName }}
47+ path : {{ .Values.serviceMonitor.telemetryPath }}
4748 interval : {{ .Values.serviceMonitor.interval }}
4849 scrapeTimeout : {{ .Values.serviceMonitor.scrapeTimeout }}
4950 {{- with .Values.serviceMonitor.metricRelabelings }}
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ service:
9494 type : ClusterIP
9595 portName : metrics
9696
97+
9798serviceAccount :
9899 create : true
99100 # If create is true and name is not set, then a name is generated using the
@@ -133,6 +134,7 @@ serviceMonitor:
133134 metricRelabelings : []
134135 scheme : " "
135136 tlsConfig : {}
137+ telemetryPath : /metrics
136138
137139tolerations : []
138140
You can’t perform that action at this time.
0 commit comments