This is an automated email from the ASF dual-hosted git repository.

miaoliyao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shardingsphere-on-cloud.git


The following commit(s) were added to refs/heads/main by this push:
     new 58add77  add expose metrics annotation to ShardingSphere Proxy Helm 
charts,it will be started by .Values.compute.agent.enabled in value.yaml (#275)
58add77 is described below

commit 58add77740a2250125d9772f4ed2fe999ffaa75f
Author: moomman <[email protected]>
AuthorDate: Wed Mar 22 17:18:26 2023 +0800

    add expose metrics annotation to ShardingSphere Proxy Helm charts,it will 
be started by .Values.compute.agent.enabled in value.yaml (#275)
    
    Co-authored-by: moonman <[email protected]>
---
 charts/apache-shardingsphere-proxy-charts/templates/deployment.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/charts/apache-shardingsphere-proxy-charts/templates/deployment.yaml 
b/charts/apache-shardingsphere-proxy-charts/templates/deployment.yaml
index 157187f..5387eb7 100644
--- a/charts/apache-shardingsphere-proxy-charts/templates/deployment.yaml
+++ b/charts/apache-shardingsphere-proxy-charts/templates/deployment.yaml
@@ -38,6 +38,12 @@ spec:
     type: RollingUpdate
   template:
     metadata:
+      annotations:
+        {{- if .Values.compute.agent.enabled }}
+        prometheus.io/path: /metrics
+        prometheus.io/port: "9090"
+        prometheus.io/scrape: "true"
+        {{- end}}
       labels:
         app: {{ template "common.names.fullname" . }}
     spec:

Reply via email to