webup commented on a change in pull request #183:
URL: https://github.com/apache/apisix-helm-chart/pull/183#discussion_r760210945



##########
File path: charts/apisix/templates/configmap.yaml
##########
@@ -226,6 +226,13 @@ data:
 
     {{- if .Values.customPlugins.enabled }}
     plugin_attr:
+      {{- if .Values.serviceMonitor.enabled }}
+      prometheus:
+        export_addr:
+          ip: 0.0.0.0

Review comment:
       Got your point, while if you check the codes, will find that no ports 
were exposed in `Service`, we only expose one essential container port in 
`Deployment`, and in this way `ServiceMonitor` could still work well.
   
   This 
[issue](https://github.com/prometheus-operator/prometheus-operator/issues/3119#issuecomment-631409690)
 may echo my understanding: "It will scrape all pods behind the service, 
because the `Service` maintains an `Endpoints` object. That's where Prometheus 
discovers the targets from."




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to