You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "coolstim (via GitHub)" <gi...@apache.org> on 2023/03/08 08:01:40 UTC

[GitHub] [solr-operator] coolstim commented on issue #483: Servicemonitor for prometheus exporter is referring to cluster port instead of metrics pod port

coolstim commented on issue #483:
URL: https://github.com/apache/solr-operator/issues/483#issuecomment-1459690342

   > We are having the same issue. The `prometheus.io/port` annotation is set to port `80`, which doesn't correspond with the port of the pod. This causes Prometheus to fail to scrape the service endpoint.
   > 
   > We've also bypassed the problem by enabling scraping of the pods directly:
   > 
   > ```
   >   customKubeOptions:
   >     podOptions:
   >       annotations:
   >         prometheus.io/port: "8080"
   >         prometheus.io/path: /metrics
   >         prometheus.io/scrape: "true"
   >         prometheus.io/scheme: http
   > ```
   > 
   > The Prometheus scraping config we use is the default `kubernetes-service-endpoints` job from the [default config](https://github.com/prometheus/prometheus/blob/main/documentation/examples/prometheus-kubernetes.yml#L146).
   
   Indeed, this is a valid workaround 


-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org